]> git.pld-linux.org Git - packages/xdotool.git/blob - xdotool.spec
- pl
[packages/xdotool.git] / xdotool.spec
1 Summary:        Fake keyboard/mouse input
2 Summary(pl.UTF-8):      Sztuczne źródło klawiatury/myszy
3 Name:           xdotool
4 Version:        3.20211022.1
5 Release:        1
6 License:        BSD-like
7 Group:          X11/Window Managers/Tools
8 Source0:        https://github.com/jordansissel/xdotool/releases/download/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  9fd993a251a7c38b32381503544b0dd7
10 URL:            http://www.semicomplete.com/projects/xdotool/
11 BuildRequires:  perl-tools-pod
12 BuildRequires:  sed >= 4.0
13 BuildRequires:  xorg-lib-libX11-devel
14 BuildRequires:  xorg-lib-libXi-devel
15 BuildRequires:  xorg-lib-libXinerama-devel
16 BuildRequires:  xorg-lib-libXtst-devel
17 BuildRequires:  xorg-lib-libxkbcommon-devel
18 Requires:       %{name}-libs = %{version}-%{release}
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
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
32 %package libs
33 Summary:        Shared libxdo library
34 Summary(pl.UTF-8):      Biblioteka współdzielona libxdo
35 Group:          Libraries
36
37 %description libs
38 Shared libxdo library.
39
40 %description libs -l pl.UTF-8
41 Biblioteka współdzielona libxdo.
42
43 %package devel
44 Summary:        Header files for libxdo library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libxdo
46 Group:          Development/Libraries
47 Requires:       %{name}-libs = %{version}-%{release}
48
49 %description devel
50 Header files for libxdo library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki libxdo.
54
55 %prep
56 %setup -q
57
58 %{__sed} -i -e 's#^libdir=.*#libdir=%{_libdir}#' \
59         -e 's#^includedir=.*#includedir=%{_includedir}#' \
60         libxdo.pc
61
62 %build
63 CFLAGS="%{rpmcflags}" \
64 LDFLAGS="%{rpmldflags}" \
65 %{__make} \
66         CC="%{__cc}"
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}}
71
72 %{__make} install \
73         PREFIX=%{_prefix} \
74         INSTALLLIB=%{_libdir} \
75         INSTALLMAN=%{_mandir} \
76         LDCONFIG=/bin/true \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc COPYRIGHT CHANGELIST README.md examples
88 %attr(755,root,root) %{_bindir}/xdotool
89 %{_mandir}/man1/xdotool.1*
90
91 %files libs
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libxdo.so.3
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libxdo.so
98 %{_includedir}/xdo.h
99 %{_pkgconfigdir}/libxdo.pc
This page took 0.119003 seconds and 4 git commands to generate.