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