]>
Commit | Line | Data |
---|---|---|
93d890d9 JB |
1 | Summary: Fake keyboard/mouse input |
2 | Summary(pl.UTF-8): Sztuczne źródło klawiatury/myszy | |
4d701919 | 3 | Name: xdotool |
9b438866 | 4 | Version: 3.20211022.1 |
66dc2854 | 5 | Release: 1 |
4d701919 | 6 | License: BSD-like |
7 | Group: X11/Window Managers/Tools | |
74cbad1f | 8 | Source0: https://github.com/jordansissel/xdotool/releases/download/v%{version}/%{name}-%{version}.tar.gz |
9b438866 | 9 | # Source0-md5: 9fd993a251a7c38b32381503544b0dd7 |
4d701919 | 10 | URL: http://www.semicomplete.com/projects/xdotool/ |
b6a1c078 | 11 | BuildRequires: perl-tools-pod |
27f412c6 | 12 | BuildRequires: sed >= 4.0 |
4d701919 | 13 | BuildRequires: xorg-lib-libX11-devel |
27f412c6 JP |
14 | BuildRequires: xorg-lib-libXi-devel |
15 | BuildRequires: xorg-lib-libXinerama-devel | |
b6a1c078 | 16 | BuildRequires: xorg-lib-libXtst-devel |
27f412c6 | 17 | BuildRequires: xorg-lib-libxkbcommon-devel |
76278943 | 18 | Requires: %{name}-libs = %{version}-%{release} |
4d701919 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | xdotool lets you programatically (or manually) simulate keyboard input | |
23 | and mouse activity, move and resize windows, etc. It does this using | |
24 | X11's XTEST extension and other Xlib functions. | |
25 | ||
93d890d9 JB |
26 | %description -l pl.UTF-8 |
27 | xdotool pozwala programowo (lub ręcznie) symulować aktywność wejściową | |
28 | klawiatury i myszy, przesuwać okienka, zmieniać ich rozmiary itp. | |
29 | Dzieje się to przy użyciu rozszerzenia X11 XTEST orz innych funkcji | |
30 | biblioteki Xlib. | |
31 | ||
76278943 | 32 | %package libs |
93d890d9 JB |
33 | Summary: Shared libxdo library |
34 | Summary(pl.UTF-8): Biblioteka współdzielona libxdo | |
76278943 | 35 | Group: Libraries |
36 | ||
37 | %description libs | |
93d890d9 JB |
38 | Shared libxdo library. |
39 | ||
40 | %description libs -l pl.UTF-8 | |
41 | Biblioteka współdzielona libxdo. | |
76278943 | 42 | |
43 | %package devel | |
74cbad1f ER |
44 | Summary: Header files for libxdo library |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxdo | |
76278943 | 46 | Group: Development/Libraries |
47 | Requires: %{name}-libs = %{version}-%{release} | |
48 | ||
49 | %description devel | |
74cbad1f | 50 | Header files for libxdo library. |
76278943 | 51 | |
52 | %description devel -l pl.UTF-8 | |
74cbad1f | 53 | Pliki nagłówkowe biblioteki libxdo. |
76278943 | 54 | |
4d701919 | 55 | %prep |
73ebbac1 | 56 | %setup -q |
4d701919 | 57 | |
93d890d9 | 58 | %{__sed} -i -e 's#^libdir=.*#libdir=%{_libdir}#' \ |
27f412c6 JP |
59 | -e 's#^includedir=.*#includedir=%{_includedir}#' \ |
60 | libxdo.pc | |
61 | ||
4d701919 | 62 | %build |
76278943 | 63 | CFLAGS="%{rpmcflags}" \ |
64 | LDFLAGS="%{rpmldflags}" \ | |
50213d88 | 65 | %{__make} \ |
66 | CC="%{__cc}" | |
4d701919 | 67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
50213d88 | 70 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}} |
4d701919 | 71 | |
72 | %{__make} install \ | |
74cbad1f ER |
73 | PREFIX=%{_prefix} \ |
74 | INSTALLLIB=%{_libdir} \ | |
75 | INSTALLMAN=%{_mandir} \ | |
76 | LDCONFIG=/bin/true \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
4d701919 | 78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
74cbad1f | 82 | %post libs -p /sbin/ldconfig |
76278943 | 83 | %postun libs -p /sbin/ldconfig |
84 | ||
4d701919 | 85 | %files |
86 | %defattr(644,root,root,755) | |
27f412c6 | 87 | %doc COPYRIGHT CHANGELIST README.md examples |
4d701919 | 88 | %attr(755,root,root) %{_bindir}/xdotool |
89 | %{_mandir}/man1/xdotool.1* | |
76278943 | 90 | |
91 | %files libs | |
270ece33 | 92 | %defattr(644,root,root,755) |
74cbad1f | 93 | %attr(755,root,root) %{_libdir}/libxdo.so.3 |
76278943 | 94 | |
95 | %files devel | |
270ece33 | 96 | %defattr(644,root,root,755) |
76278943 | 97 | %attr(755,root,root) %{_libdir}/libxdo.so |
50213d88 | 98 | %{_includedir}/xdo.h |
27f412c6 | 99 | %{_pkgconfigdir}/libxdo.pc |