]>
Commit | Line | Data |
---|---|---|
3831e9e4 | 1 | %define snap 20160811 |
ed9cb077 JP |
2 | # |
3 | Summary: Compositor for X11 | |
e3101873 | 4 | Summary(pl.UTF-8): Zarządca kompozycji dla X11 |
ed9cb077 JP |
5 | Name: compton |
6 | Version: 0.0.1 | |
e3101873 JB |
7 | %define rel 2 |
8 | Release: 0.%{snap}.%{rel} | |
ed9cb077 JP |
9 | License: MIT |
10 | Group: X11/Applications | |
e3101873 | 11 | #Source0Download: https://github.com/chjj/compton/releases |
ed9cb077 | 12 | Source0: %{name}-%{snap}.tar.xz |
b7e6d461 | 13 | # Source0-md5: 92ed60a5d5f94211852e0d9b005b75ec |
ed9cb077 JP |
14 | URL: https://github.com/chjj/compton |
15 | BuildRequires: OpenGL-devel | |
16 | BuildRequires: asciidoc | |
17 | BuildRequires: dbus-devel | |
18 | BuildRequires: libconfig-devel | |
19 | BuildRequires: libdrm-devel | |
20 | BuildRequires: pcre-devel | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: xorg-lib-libX11-devel | |
23 | BuildRequires: xorg-lib-libXcomposite-devel | |
24 | BuildRequires: xorg-lib-libXdamage-devel | |
25 | BuildRequires: xorg-lib-libXext-devel | |
26 | BuildRequires: xorg-lib-libXfixes-devel | |
27 | BuildRequires: xorg-lib-libXinerama-devel | |
28 | BuildRequires: xorg-lib-libXrandr-devel | |
29 | BuildRequires: xorg-lib-libXrandr-devel | |
30 | BuildRequires: xorg-proto-xproto-devel | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | Compositor for X11. | |
35 | ||
e3101873 JB |
36 | %description -l pl.UTF-8 |
37 | Zarządca kompozycji dla X11. | |
38 | ||
ed9cb077 JP |
39 | %prep |
40 | %setup -q -n %{name} | |
41 | ||
42 | %build | |
43 | CC="%{__cc}" \ | |
44 | CFLAGS="%{rpmcflags}" \ | |
45 | LDFLAGS="%{rpmldflags}" \ | |
46 | COMPTON_VERSION="%{snap}" \ | |
47 | %{__make} | |
e3101873 | 48 | |
ed9cb077 JP |
49 | %{__make} docs |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | PREFIX="%{_prefix}" \ | |
55 | MANDIR="%{_mandir}/man1" \ | |
56 | APPDIR="%{_desktopdir}" \ | |
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc README.md compton.sample.conf | |
66 | %attr(755,root,root) %{_bindir}/compton | |
67 | %attr(755,root,root) %{_bindir}/compton-trans | |
68 | %{_desktopdir}/compton.desktop | |
c1193e01 JP |
69 | %{_iconsdir}/hicolor/*/apps/compton.png |
70 | %{_iconsdir}/hicolor/scalable/apps/compton.svg | |
ed9cb077 JP |
71 | %{_mandir}/man1/compton.1* |
72 | %{_mandir}/man1/compton-trans.1* |