Compare commits
21 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1be0070d9 | ||
|
|
60b33be9f9 | ||
|
|
7fc1c4ae1a | ||
|
|
592a34e449 | ||
|
|
36022a907c | ||
|
|
5038c22238 | ||
|
|
793eaf3f65 | ||
|
|
df24a6180e | ||
|
|
2c39489746 | ||
|
|
35c5e38347 | ||
|
|
8c34d9087b | ||
|
|
7032f37bf1 | ||
|
|
d16465e6dd | ||
|
|
c6e225d069 | ||
|
|
431e5c6a7c | ||
|
|
72218f4262 | ||
|
|
85b827cfd3 | ||
|
|
3b2d94fddc | ||
|
|
b759343691 | ||
|
|
4c45465323 | ||
|
|
6a4827cb02 |
6 changed files with 71 additions and 447 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -5,3 +5,7 @@
|
|||
/libevdevPlus-0.2.1.tar.gz
|
||||
/libuInputPlus-0.2.1.tar.gz
|
||||
/ydotool-0.2.0.tar.gz
|
||||
/ydotool-1.0.0.tar.gz
|
||||
/ydotool-1.0.1.tar.gz
|
||||
/ydotool-1.0.3.tar.gz
|
||||
/ydotool-1.0.4.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,118 +0,0 @@
|
|||
// "License": Public Domain
|
||||
// I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like.
|
||||
// In case there are jurisdictions that don't support putting things in the public domain you can also consider it to
|
||||
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it
|
||||
// an example on how to get the endian conversion functions on different platforms.
|
||||
|
||||
#ifndef PORTABLE_ENDIAN_H__
|
||||
#define PORTABLE_ENDIAN_H__
|
||||
|
||||
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
|
||||
|
||||
# define __WINDOWS__
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__CYGWIN__)
|
||||
|
||||
# include <endian.h>
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
# include <libkern/OSByteOrder.h>
|
||||
|
||||
# define htobe16(x) OSSwapHostToBigInt16(x)
|
||||
# define htole16(x) OSSwapHostToLittleInt16(x)
|
||||
# define be16toh(x) OSSwapBigToHostInt16(x)
|
||||
# define le16toh(x) OSSwapLittleToHostInt16(x)
|
||||
|
||||
# define htobe32(x) OSSwapHostToBigInt32(x)
|
||||
# define htole32(x) OSSwapHostToLittleInt32(x)
|
||||
# define be32toh(x) OSSwapBigToHostInt32(x)
|
||||
# define le32toh(x) OSSwapLittleToHostInt32(x)
|
||||
|
||||
# define htobe64(x) OSSwapHostToBigInt64(x)
|
||||
# define htole64(x) OSSwapHostToLittleInt64(x)
|
||||
# define be64toh(x) OSSwapBigToHostInt64(x)
|
||||
# define le64toh(x) OSSwapLittleToHostInt64(x)
|
||||
|
||||
# define __BYTE_ORDER BYTE_ORDER
|
||||
# define __BIG_ENDIAN BIG_ENDIAN
|
||||
# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
||||
# define __PDP_ENDIAN PDP_ENDIAN
|
||||
|
||||
#elif defined(__OpenBSD__)
|
||||
|
||||
# include <sys/endian.h>
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
|
||||
# include <sys/endian.h>
|
||||
|
||||
# define be16toh(x) betoh16(x)
|
||||
# define le16toh(x) letoh16(x)
|
||||
|
||||
# define be32toh(x) betoh32(x)
|
||||
# define le32toh(x) letoh32(x)
|
||||
|
||||
# define be64toh(x) betoh64(x)
|
||||
# define le64toh(x) letoh64(x)
|
||||
|
||||
#elif defined(__WINDOWS__)
|
||||
|
||||
# include <winsock2.h>
|
||||
# include <sys/param.h>
|
||||
|
||||
# if BYTE_ORDER == LITTLE_ENDIAN
|
||||
|
||||
# define htobe16(x) htons(x)
|
||||
# define htole16(x) (x)
|
||||
# define be16toh(x) ntohs(x)
|
||||
# define le16toh(x) (x)
|
||||
|
||||
# define htobe32(x) htonl(x)
|
||||
# define htole32(x) (x)
|
||||
# define be32toh(x) ntohl(x)
|
||||
# define le32toh(x) (x)
|
||||
|
||||
# define htobe64(x) htonll(x)
|
||||
# define htole64(x) (x)
|
||||
# define be64toh(x) ntohll(x)
|
||||
# define le64toh(x) (x)
|
||||
|
||||
# elif BYTE_ORDER == BIG_ENDIAN
|
||||
|
||||
/* that would be xbox 360 */
|
||||
# define htobe16(x) (x)
|
||||
# define htole16(x) __builtin_bswap16(x)
|
||||
# define be16toh(x) (x)
|
||||
# define le16toh(x) __builtin_bswap16(x)
|
||||
|
||||
# define htobe32(x) (x)
|
||||
# define htole32(x) __builtin_bswap32(x)
|
||||
# define be32toh(x) (x)
|
||||
# define le32toh(x) __builtin_bswap32(x)
|
||||
|
||||
# define htobe64(x) (x)
|
||||
# define htole64(x) __builtin_bswap64(x)
|
||||
# define be64toh(x) (x)
|
||||
# define le64toh(x) __builtin_bswap64(x)
|
||||
|
||||
# else
|
||||
|
||||
# error byte order not supported
|
||||
|
||||
# endif
|
||||
|
||||
# define __BYTE_ORDER BYTE_ORDER
|
||||
# define __BIG_ENDIAN BIG_ENDIAN
|
||||
# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
||||
# define __PDP_ENDIAN PDP_ENDIAN
|
||||
|
||||
#else
|
||||
|
||||
# error platform not supported
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
7
sources
7
sources
|
|
@ -1,6 +1 @@
|
|||
SHA512 (cpm.cmake-0.27.5.tar.gz) = ef3a8dac77c189f0e612acc714e27464a075b86ba3454fe3410ab043a221d0a11ccd4654b9b1d3f4b33fc7a0f0fd64a1e30322a0552e3fc13528e33b82f1b350
|
||||
SHA512 (cxxopts-2d8e17c4f88efce80e274cb03eeb902e055a91d3.tar.gz) = ff26b941bdbae999b0d476f62d4a3c0c66aee2f1dac7bd4c1e05380532fbf93b462a2355d809a89eddb2d52aa8a6c7c31625a7fa442deca494e3358fa95ea009
|
||||
SHA512 (iodash-0.1.0.tar.gz) = 3ef05b5d909276c2e1be4619d0b075fcf001b5577939234f4952dd43b81f8806089d6e5d20dbe04743e3bd0c586f659709814cd0a4eb6938ebec4f727ff617ac
|
||||
SHA512 (libevdevPlus-0.2.1.tar.gz) = 2cf4725c491631f25263d27d07722e85ddd2c4489426fd3842c75ca84e697765003083262b565d85d232f178684fae52f0f2ca3d5c89a3c0d1655d9f08a8d3d3
|
||||
SHA512 (libuInputPlus-0.2.1.tar.gz) = aeaa23c4b5631ddc0c9a54507d4cecb38d8b792015aa636d37bab3dbc3fa1229a6a02297d4c7c0d922fa512c3e3a8429b32a2432f06e1ceaeed1a91c857731cd
|
||||
SHA512 (ydotool-0.2.0.tar.gz) = e4c78e4958b49b6b03a34f9624363cb83ca918b07e530c354c0a3495b4950d41fb5871cf646872f2bd17044db747effefb11ae9353b059fe3893f1fb7c87f286
|
||||
SHA512 (ydotool-1.0.4.tar.gz) = bbf66d752aa1dce9173c930e3a71bc277b330763b1aa0e38f9fec1976c282c64330251ba5abe222a991f4bcafbabf1312a940eb4b40a34bf99f628c2a41bc4a2
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
diff -ruN ydotool-0.2.0-orig/CMakeLists.txt ydotool-0.2.0/CMakeLists.txt
|
||||
--- ydotool-0.2.0-orig/CMakeLists.txt 2021-01-09 19:31:54.000000000 +1000
|
||||
+++ ydotool-0.2.0/CMakeLists.txt 2021-01-18 16:24:57.479830987 +1000
|
||||
@@ -4,7 +4,7 @@
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
set(CPM_DOWNLOAD_VERSION 0.27.5)
|
||||
-set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
|
||||
+set(CPM_DOWNLOAD_LOCATION "CPM.cmake-${CPM_DOWNLOAD_VERSION}/cmake/CPM.cmake")
|
||||
|
||||
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
|
||||
message(STATUS "Downloading CPM.cmake")
|
||||
|
|
@ -1,234 +0,0 @@
|
|||
diff -ruN ydotool-0.2.0-orig/manpage/ydotool.1.scd ydotool-0.2.0/manpage/ydotool.1.scd
|
||||
--- ydotool-0.2.0-orig/manpage/ydotool.1.scd 2021-01-09 19:31:54.000000000 +1000
|
||||
+++ ydotool-0.2.0/manpage/ydotool.1.scd 2021-01-20 18:35:11.920031708 +1000
|
||||
@@ -6,14 +6,16 @@
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
-*ydotool* *cmd* _args..._
|
||||
+*ydotool* *cmd* _args_ [ , *cmd* _args_ ... ]
|
||||
|
||||
-*ydotool* *cmd* --help\fR
|
||||
+*ydotool* *cmd* --help
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
*ydotool* lets you programmatically (or manually) simulate keyboard input and mouse activity, etc. It does this by writing directly to _/dev/uinput_ so it generally needs to run as root.
|
||||
|
||||
+It's possible to chain multiple commands together, separated by a comma between two spaces.
|
||||
+
|
||||
Currently implemented command(s):
|
||||
|
||||
*type*
|
||||
@@ -22,19 +24,15 @@
|
||||
Press keys
|
||||
*mousemove*
|
||||
Move mouse pointer to absolute position
|
||||
-*mousemove_relative*
|
||||
- Move mouse pointer to relative position
|
||||
*click*
|
||||
Click on mouse buttons
|
||||
*recorder*
|
||||
Record/replay input events
|
||||
-*mouseup*
|
||||
- Send a mouse up event.
|
||||
-*mousedown*
|
||||
- Send a mouse down event.
|
||||
+*sleep*
|
||||
+ sleep for a while
|
||||
|
||||
# KEYBOARD COMMANDS
|
||||
-*key* [*--up*] [*--down*] [*--delay* _<ms>_] [*--key-delay* _<ms>_] [*--repeat* _<times>_] [*--repeat-delay <ms>*] [*--persist-delay <ms>*] _<key sequence>_
|
||||
+*key* [*--up*] [*--down*] [*--next-delay* _<ms>_] [*--key-delay* _<ms>_] [*--repeat* _<times>_] [*--repeat-delay <ms>*] _<key sequence>_
|
||||
|
||||
Type a given keystroke. Examples being "alt+r", "ctrl+J",
|
||||
"ctrl+alt+n", "backspace".
|
||||
@@ -59,12 +57,10 @@
|
||||
*--repeat-delay* _<ms>_
|
||||
Delay time between repetitions. Default 0ms.
|
||||
|
||||
- *--persist-delay* _<ms>_
|
||||
- Keep virtual device alive for _<ms>_ ms. Should be used in conjunction with *--down* or *--up*
|
||||
-
|
||||
Generally, any valid name from _/usr/include/linux/input-event-codes.h_ will work. Multiple keys are separated by '+'.
|
||||
|
||||
Each key sequence can be any number of modifiers and keys, separated by plus (+)
|
||||
+
|
||||
For example: alt+r Alt+F4 CTRL+alt+f3 aLT+1+2+3 ctrl+Backspace
|
||||
|
||||
Since we are emulating keyboard input, combinations like Shift+# is invalid because typing a `#' involves pressing Shift and 3.
|
||||
@@ -75,20 +71,20 @@
|
||||
Example: Close a window in graphical environment:
|
||||
ydotool key Alt+F4
|
||||
|
||||
-*type* [*--delay* _<ms>_] [*--key-delay* _<ms>_] [*--args* _<N>_] [*--file* _<filepath>_] "_something to type_"
|
||||
+*type* [*--next-delay* _<ms>_] [*--key-delay* _<ms>_] [*--texts* _arg_] [*--file* _<filepath>_] "_texts_"
|
||||
|
||||
Types text as if you had typed it on the keyboard.
|
||||
|
||||
Options:
|
||||
|
||||
- *--delay* _<ms>_
|
||||
+ *--next-delay* _<ms>_
|
||||
Delay before starting typing. Default 100ms.
|
||||
|
||||
*--key-delay* _<ms>_
|
||||
Delay time between keystrokes. Default 12ms.
|
||||
|
||||
- *--args* _<N>_
|
||||
- ????
|
||||
+ *--texts* _arg_
|
||||
+ Texts to type
|
||||
|
||||
*--file* _<filepath>_
|
||||
Specify a file, the contents of which will be typed as if passed as an argument. The filepath may also be '-' to read from stdin.
|
||||
@@ -98,43 +94,39 @@
|
||||
|
||||
# MOUSE COMMANDS
|
||||
|
||||
-*mousemove* [*--delay* _<ms>_] _<x> <y>_
|
||||
- Move the mouse to the specific X and Y coordinates on the screen.
|
||||
+*mousemove* _<x> <y>_
|
||||
+ Move the mouse to the specific relative X and Y coordinates on the screen.
|
||||
|
||||
Options:
|
||||
- *--delay* _<ms>_
|
||||
- Delay before starting move. Default 100ms.
|
||||
+ *--absolute*
|
||||
+ Use absolute position
|
||||
|
||||
Example: to move the cursor to absolute coordinates (100,100):
|
||||
- ydotool mousemove 100 100
|
||||
+ ydotool mousemove --absolute 100 100
|
||||
|
||||
-*mousemove_relative* [*--delay* _<ms>_] _<x>_ _<y>_
|
||||
- Move the mouse x,y pixels relative to the current position of the mouse cursor.
|
||||
+*click* [*--next-delay* _<ms>_] _button_
|
||||
+ Send a click. Buttons are: _left_, _right_ or _middle_
|
||||
|
||||
Options:
|
||||
- *--delay* _<ms>_
|
||||
- Delay before starting move. Default 100ms.
|
||||
|
||||
- Example: Relatively move mouse pointer to -100,100:
|
||||
- ydotool mousemove_relative -- -100 100
|
||||
+ *--next-delay* _<ms>_
|
||||
+ Delay before click. Default 100ms.
|
||||
|
||||
-*click* [*--delay* _<ms>_] _button_
|
||||
- Send a click. Buttons are: 1=left 2=right 3=middle
|
||||
+ *--up*
|
||||
+ Only mouseup
|
||||
|
||||
- Options:
|
||||
-
|
||||
- *--delay* _<ms>_
|
||||
- Delay before click. Default 100ms.
|
||||
+ *--down*
|
||||
+ Only mousedown
|
||||
|
||||
- Example: Mouse right click:
|
||||
- ydotool click 2
|
||||
+ *--buttons* _<arg>_
|
||||
+ Buttons to press (left, right, middle)
|
||||
|
||||
-*recorder* [*--delay* _<ms>_] [*--record* _<devices>_] [*--replay* _<input files>_] [*--display*] [*--duration* _<ms>_]
|
||||
+ Example: Mouse middle click:
|
||||
+ ydotool click middle
|
||||
|
||||
- Options:
|
||||
+*recorder* [*--record* _<devices>_] [*--replay* _<input files>_] [*--display*] [*--duration* _<ms>_] [*--devices* _<path>_] [*--file* _<path>_]
|
||||
|
||||
- *--delay* _<ms>_
|
||||
- Delay time before start recording/replaying. Default 5000ms.
|
||||
+ Options:
|
||||
|
||||
*--record* _<devices>_
|
||||
Devices to record from. Default is all, including non-keyboard devices.
|
||||
@@ -143,32 +135,16 @@
|
||||
The record file can't be replayed on an architecture with different endianness.
|
||||
|
||||
*--display*
|
||||
- ????
|
||||
+ Display
|
||||
|
||||
*--duration* _<ms>_
|
||||
Record duration. Otherwise use SIGINT to stop recording.
|
||||
|
||||
-*mouseup* [*--delay* _<ms>_] _button_
|
||||
- Send a mouse up event. Buttons are: 1=left 2=right 3=middle
|
||||
-
|
||||
- Options:
|
||||
-
|
||||
- *--delay* _<ms>_
|
||||
- Delay before click. Default 100ms.
|
||||
-
|
||||
- Example: Mouse right click:
|
||||
- ydotool click 2
|
||||
-
|
||||
-*mousedown* [*--delay* _<ms>_] _button_
|
||||
- Send a mouse down event. Buttons are: 1=left 2=right 3=middle
|
||||
-
|
||||
- Options:
|
||||
-
|
||||
- *--delay* _<ms>_
|
||||
- Delay before click. Default 100ms.
|
||||
+ *--devices* _<path>_
|
||||
+ Devices, separated by comma, to record from. Default is all devices (default: "")
|
||||
|
||||
- Example: Mouse right click:
|
||||
- ydotool click 2
|
||||
+ *--file* _<path>_
|
||||
+ File to record to / replay from
|
||||
|
||||
# AUTHOR
|
||||
|
||||
@@ -184,8 +160,8 @@
|
||||
|
||||
In order to solve this problem, there is a persistent background service, *ydotoold*(1), to hold a persistent virtual device, and accept input from *ydotool*(1). When *ydotoold*(1) is unavailable, *ydotool*(1) will work without it.
|
||||
|
||||
-# COPYRIGHT
|
||||
-MIT License
|
||||
+# LICENCE
|
||||
+AGPLv3
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
diff -ruN ydotool-0.2.0-orig/manpage/ydotoold.8.scd ydotool-0.2.0/manpage/ydotoold.8.scd
|
||||
--- ydotool-0.2.0-orig/manpage/ydotoold.8.scd 2021-01-09 19:31:54.000000000 +1000
|
||||
+++ ydotool-0.2.0/manpage/ydotoold.8.scd 2021-01-20 18:33:48.815128767 +1000
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
-*ydotoold*
|
||||
+*ydotoold* _[OPTION...]_
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
@@ -20,15 +20,23 @@
|
||||
|
||||
In order to solve this problem, the *ydotoold* background service holds a persistent virtual device, and accepts input from *ydotool*(1). When *ydotoold*(1) is unavailable, *ydotool*(1) will work without it.
|
||||
|
||||
+# OPTIONS
|
||||
+
|
||||
+ *--socket-path arg* _<path>_
|
||||
+ Socket path (default: /tmp/.ydotool_socket)
|
||||
+
|
||||
+ *--socket-perm arg* _<perms>_
|
||||
+ Socket permission (default: 0600)
|
||||
+
|
||||
# AUTHOR
|
||||
|
||||
*ydotool*(1) and *ydotoold*(8) were written by ReimuNotMoe.
|
||||
|
||||
This man page by bob.hepple@gmail.com
|
||||
|
||||
-# COPYRIGHT
|
||||
+# LICENCE
|
||||
|
||||
-MIT License
|
||||
+AGPLv3
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
143
ydotool.spec
143
ydotool.spec
|
|
@ -2,55 +2,20 @@
|
|||
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
%global github_url https://github.com
|
||||
%global iodash_name IODash
|
||||
%global iodash_version 0.1.0
|
||||
%global libevdevplus_name libevdevPlus
|
||||
%global libevdevplus_version 0.2.1
|
||||
%global libuinputplus_name libuInputPlus
|
||||
%global libuinputplus_version 0.2.1
|
||||
%global cxxopts_name cxxopts
|
||||
%global cxxopts_version 3.0.0
|
||||
%global cxxopts_commit 2d8e17c4f88efce80e274cb03eeb902e055a91d3
|
||||
%global cpm_cmake_name cpm.cmake
|
||||
%global cpm_cmake_version 0.27.5
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: ydotool
|
||||
Version: 0.2.0
|
||||
Release: 5%{?dist}
|
||||
Version: 1.0.4
|
||||
Release: 9%{?dist}
|
||||
Summary: Generic command-line automation tool (no X!)
|
||||
License: AGPLv3, Public Domain
|
||||
URL: %github_url/ReimuNotMoe/%{name}
|
||||
|
||||
# lacks support for TCGETS2:
|
||||
ExcludeArch: ppc64le
|
||||
|
||||
# failure in rpmbuild toolchain:
|
||||
# Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ydotool-0.2.0-1.fc34.s390x
|
||||
# Child return code was: -11
|
||||
# EXCEPTION: [Error()]
|
||||
# Traceback (most recent call last):
|
||||
# File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace
|
||||
# result = func(*args, **kw)
|
||||
# File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status
|
||||
# raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
|
||||
# mockbuild.exception.Error: Command failed:
|
||||
ExcludeArch: s390x
|
||||
# Automatically converted from old format: AGPLv3
|
||||
License: AGPL-3.0-only
|
||||
URL: https://github.com/ReimuNotMoe/%{name}
|
||||
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{github_url}/YukiWorkshop/%{iodash_name}/archive/v%{iodash_version}/%(c=%{iodash_name}; echo ${c,,})-%{iodash_version}.tar.gz
|
||||
Source2: %{github_url}/YukiWorkshop/%{libevdevplus_name}/archive/v%{libevdevplus_version}/%{libevdevplus_name}-%{libevdevplus_version}.tar.gz
|
||||
Source3: %{github_url}/YukiWorkshop/%{libuinputplus_name}/archive/v%{libuinputplus_version}/%{libuinputplus_name}-%{libuinputplus_version}.tar.gz
|
||||
Source4: %{github_url}/jarro2783/%{cxxopts_name}/archive/%{cxxopts_commit}/%{cxxopts_name}-%{cxxopts_commit}.tar.gz
|
||||
Source5: %{github_url}/TheLartians/%{cpm_cmake_name}/archive/v%{cpm_cmake_version}/%{cpm_cmake_name}-%{cpm_cmake_version}.tar.gz
|
||||
Source6: https://gist.githubusercontent.com/panzi/6856583/raw/1eca2ab34f2301b9641aa73d1016b951fff3fc39/portable_endian.h
|
||||
|
||||
Patch0: ydotool-cpm.cmake.patch
|
||||
Patch1: ydotool-new-man-pages.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: scdoc
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
|
@ -60,24 +25,6 @@ BuildRequires: systemd-rpm-macros
|
|||
Performs some of the functions of xdotool(1) without requiring X11 -
|
||||
however, it generally requires root permission (to open /dev/uinput)
|
||||
|
||||
NOTE: changes in this release:
|
||||
NOTE: --delay option is now --next-delay
|
||||
NOTE: mousemove is now relative unless --absolute is given
|
||||
NOTE: mouseup, mousedown, mousemove_relative is removed
|
||||
NOTE: click accepts left, right, middle instead of 1, 2, 3
|
||||
NOTE: sleep is a new command
|
||||
|
||||
SEE: ydotool <cmd> --help for latest info
|
||||
|
||||
Currently implemented command(s):
|
||||
|
||||
- type - Type a string
|
||||
- key - Press keys
|
||||
- mousemove - Move mouse pointer to absolute position
|
||||
- click - Click on mouse buttons
|
||||
- recorder - Record/replay input events
|
||||
- sleep - sleep ms
|
||||
|
||||
N.B. it is strongly recommended to start the ydotoold daemon with:
|
||||
|
||||
- systemctl enable ydotool
|
||||
|
|
@ -85,25 +32,9 @@ N.B. it is strongly recommended to start the ydotoold daemon with:
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
gzip -dc %{S:1} | tar xf -
|
||||
gzip -dc %{S:2} | tar xf -
|
||||
gzip -dc %{S:3} | tar xf -
|
||||
gzip -dc %{S:4} | tar xf -
|
||||
gzip -dc %{S:5} | tar xf -
|
||||
|
||||
# this is missing from IODash - I have logged a bug report upstream
|
||||
# https://github.com/YukiWorkshop/IODash/issues/1
|
||||
# it is licenced 'public domain':
|
||||
cp %{S:6} %{iodash_name}-%{iodash_version}/portable-endian.h
|
||||
|
||||
%build
|
||||
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF \
|
||||
-DCPM_%{iodash_name}_SOURCE=$PWD/%{iodash_name}-%{iodash_version} \
|
||||
-DCPM_%{libevdevplus_name}_SOURCE=$PWD/%{libevdevplus_name}-%{libevdevplus_version} \
|
||||
-DCPM_%{libuinputplus_name}_SOURCE=$PWD/%{libuinputplus_name}-%{libuinputplus_version} \
|
||||
-DCPM_%{cxxopts_name}_SOURCE=$PWD/%{cxxopts_name}-%{cxxopts_commit}
|
||||
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
|
||||
|
||||
make -C %{_vpath_builddir} -j `nproc`
|
||||
|
||||
|
|
@ -114,7 +45,7 @@ strip */%{name}d
|
|||
install -p -m 0755 */%{name} %{buildroot}/%{_bindir}
|
||||
install -p -m 0755 */%{name}d %{buildroot}/%{_bindir}
|
||||
mkdir -p %{buildroot}/%{_unitdir}
|
||||
install -p -m 0644 Daemon/%{name}.service %{buildroot}/%{_unitdir}
|
||||
install -p -m 0644 */%{name}.service %{buildroot}/%{_unitdir}
|
||||
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||
mkdir -p %{buildroot}/%{_mandir}/man8
|
||||
scdoc < manpage/%{name}.1.scd > %{buildroot}/%{_mandir}/man1/%{name}.1
|
||||
|
|
@ -138,6 +69,64 @@ scdoc < manpage/%{name}d.8.scd > %{buildroot}/%{_mandir}/man8/%{name}d.8
|
|||
%{_mandir}/man8/%{name}d.8.*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2024 Miroslav Suchý <msuchy@redhat.com> - 1.0.4-4
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jan 31 2023 Bob Hepple <bob.hepple@gmail.com> - 1.0.4-1
|
||||
- new version
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2023 Bob Hepple <bob.hepple@gmail.com> - 1.0.3-1
|
||||
- new version
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Mar 21 2022 Bob Hepple <bob.hepple@gmail.com> - 1.0.1-2
|
||||
- added new manual (also pushed upstream)
|
||||
|
||||
* Thu Feb 17 2022 Bob Hepple <bob.hepple@gmail.com> - 1.0.1-1
|
||||
- new version
|
||||
|
||||
* Sun Feb 06 2022 Bob Hepple <bob.hepple@gmail.com> - 1.0.0-2
|
||||
- now builds on all architectures without patches
|
||||
|
||||
* Sun Feb 06 2022 Bob Hepple <bob.hepple@gmail.com> - 1.0.0-1
|
||||
- new version
|
||||
|
||||
* Sun Jan 30 2022 Bob Hepple <bob.hepple@gmail.com> - 0.2.0-8
|
||||
- add -Wno-error= flags for FTBFS #2047136 in f36
|
||||
- exclude armv7hl as it fails to compile
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-5
|
||||
- Rebuilt for updated systemd-rpm-macros
|
||||
See https://pagure.io/fesco/issue/2583.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue