]>
Commit | Line | Data |
---|---|---|
94ef2086 | 1 | %define _rel 080712git |
48182a08 | 2 | %define _name fusion-icon |
d6c8d69c JB |
3 | Summary: Small program to control your GL Desktop |
4 | Summary(pl.UTF-8): Mały program do kontroli pulpitu GL | |
48182a08 | 5 | Name: compiz-%{_name} |
94ef2086 | 6 | Version: 0.1.0 |
3436c452 | 7 | Release: 0.%{_rel}.3 |
54a5447f | 8 | Epoch: 1 |
48182a08 RT |
9 | License: GPL v2+ |
10 | Group: X11/Window Managers/Tools | |
94ef2086 | 11 | # It's from git://anongit.compiz-fusion.org/users/crdlb/fusion-icon |
48182a08 | 12 | Source0: %{_name}-%{_rel}.tar.bz2 |
94ef2086 | 13 | # Source0-md5: 767c3ec198b780eb83656c48f92add1d |
7215b3b7 JB |
14 | URL: http://compiz-fusion.org/ |
15 | BuildRequires: python-devel >= 1:2.5 | |
b0d15329 | 16 | BuildRequires: rpm-pythonprov |
17aeb208 | 17 | BuildRequires: rpmbuild(macros) >= 1.311 |
48182a08 RT |
18 | Requires(post,postun): gtk+2 |
19 | Requires(post,postun): hicolor-icon-theme | |
835e5d6b | 20 | Requires: %{name}-interface = %{epoch}:%{version}-%{release} |
48182a08 | 21 | Requires: compiz >= 0.5.1 |
8ae5451f | 22 | Requires: python-compizconfig |
8e8102d9 | 23 | Requires: xorg-app-xvinfo |
48182a08 RT |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
d6c8d69c | 28 | Compiz Fusion Icon is a small program written in Python which lets you |
48182a08 RT |
29 | control your GL Desktop it handles your different decorators |
30 | (non-GL/GL) and configurators. | |
31 | ||
32 | %description -l pl.UTF-8 | |
d6c8d69c JB |
33 | Compiz Fusion Icon jest małym programem napisanym w Pythonie, który |
34 | pozwala na kontrolę pulpitu GL. Obsługuje różne dekoratory (GL/nie-GL) | |
35 | i konfiguratory. | |
48182a08 | 36 | |
7215b3b7 JB |
37 | %package interface-gtk |
38 | Summary: GTK+ interface for Compiz Fusion Icon | |
39 | Summary(pl.UTF-8): Compiz Fusion Icon - interfejs GTK+ | |
40 | Group: X11/Window Managers/Tools | |
835e5d6b | 41 | Requires: %{name} = %{epoch}:%{version}-%{release} |
7215b3b7 JB |
42 | Requires: python-pygtk-gtk >= 2:2.10.0 |
43 | Suggests: compizconfig-backend-gconf | |
835e5d6b | 44 | Provides: %{name}-interface = %{epoch}:%{version}-%{release} |
7215b3b7 JB |
45 | |
46 | %description interface-gtk | |
47 | GTK+ interface for Compiz Fusion Icon. | |
48 | ||
49 | %description interface-gtk -l pl.UTF-8 | |
50 | Compiz Fusion Icon - interfejs GTK+. | |
51 | ||
52 | %package interface-qt4 | |
53 | Summary: Qt4 interface for Compiz Fusion Icon | |
54 | Summary(pl.UTF-8): Compiz Fusion Icon - interfejs Qt4+ | |
55 | Group: X11/Window Managers/Tools | |
835e5d6b | 56 | Requires: %{name} = %{epoch}:%{version}-%{release} |
7215b3b7 JB |
57 | Requires: python-PyQt4 |
58 | Suggests: compizconfig-backend-kconfig | |
835e5d6b | 59 | Provides: %{name}-interface = %{epoch}:%{version}-%{release} |
7215b3b7 JB |
60 | |
61 | %description interface-qt4 | |
62 | Qt4 interface for Compiz Fusion Icon. | |
63 | ||
64 | %description interface-qt4 -l pl.UTF-8 | |
65 | Compiz Fusion Icon - interfejs Qt4. | |
66 | ||
48182a08 RT |
67 | %prep |
68 | %setup -q -n %{_name} | |
69 | ||
70 | %build | |
71 | %{__python} setup.py build | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
d6c8d69c JB |
77 | %{__python} setup.py install \ |
78 | -O1 \ | |
79 | --skip-build \ | |
80 | --root $RPM_BUILD_ROOT | |
48182a08 | 81 | |
7215b3b7 | 82 | %py_postclean |
48182a08 RT |
83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
7215b3b7 JB |
87 | %post |
88 | %update_icon_cache hicolor | |
89 | ||
90 | %postun | |
91 | %update_icon_cache hicolor | |
92 | ||
48182a08 RT |
93 | %files |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_bindir}/fusion-icon | |
96 | %{_desktopdir}/fusion-icon.desktop | |
97 | %dir %{py_sitescriptdir}/FusionIcon | |
7215b3b7 JB |
98 | %{py_sitescriptdir}/FusionIcon/*.py[co] |
99 | %{py_sitescriptdir}/fusion_icon-*.egg-info | |
48182a08 RT |
100 | %{_iconsdir}/hicolor/*x*/apps/fusion-icon.png |
101 | %{_iconsdir}/hicolor/scalable/apps/fusion-icon.svg | |
7215b3b7 JB |
102 | |
103 | %files interface-gtk | |
104 | %defattr(644,root,root,755) | |
105 | %dir %{py_sitescriptdir}/FusionIcon/interface_gtk | |
106 | %{py_sitescriptdir}/FusionIcon/interface_gtk/*.py[co] | |
107 | ||
108 | %files interface-qt4 | |
109 | %defattr(644,root,root,755) | |
110 | %dir %{py_sitescriptdir}/FusionIcon/interface_qt4 | |
111 | %{py_sitescriptdir}/FusionIcon/interface_qt4/*.py[co] |