/
xdotool.spec
69 lines (55 loc) · 1.8 KB
/
xdotool.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define _empty_manifest_terminate_build 0
Name: xdotool
Version: 3.20211022.1
Release: 2
Summary: fake keyboard/mouse input, window management, and more
Group: Toys
License: GPL
URL: http://www.semicomplete.com/projects/xdotool
Source: https://github.com/jordansissel/xdotool/archive/master/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xkbcommon)
%description
This tool lets you simulate keyboard input and mouse activity, move and resize
windows, etc. It does this using X11's XTEST extension and other Xlib
functions.
Additionally, you can search for windows and move, resize, hide, and modify
window properties like the title. If your window manager supports it, you can
use xdotool to switch desktops, move windows between desktops, and change the
number of desktops.
%package -n %{libname}
Summary: Libraries for %{name}
Group: System/Libraries
%description -n %{libname}
This package contains libraries for %{name}.
%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
This package contains development files for %{name}.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%make_build CFLAGS="%{optflags}" LDFLAGS="%{optflags}"
%install
%make_install \
PREFIX=%{_prefix} \
INSTALLMAN=%{_datadir}/man \
INSTALLLIB=%{_libdir}
%files
%{_bindir}/xdotool
%{_mandir}/man1/xdotool.1*
%files -n %{libname}
%{_libdir}/libxdo.so.%{major}
%files -n %{develname}
%{_libdir}/libxdo.so
%{_libdir}/pkgconfig/libxdo.pc
%{_includedir}/xdo.h