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