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