]>
Commit | Line | Data |
---|---|---|
1 | %define _rel 071103git | |
2 | %define _name fusion-icon | |
3 | Summary: Small program to control your GL Desktop | |
4 | Summary(pl.UTF-8): Mały program do kontroli pulpitu GL | |
5 | Name: compiz-%{_name} | |
6 | Version: 0.0.0 | |
7 | Release: 1.%{_rel}.1 | |
8 | Epoch: 1 | |
9 | License: GPL v2+ | |
10 | Group: X11/Window Managers/Tools | |
11 | Source0: %{_name}-%{_rel}.tar.bz2 | |
12 | # Source0-md5: 7cf51276a0fb33a357f921e3f320b86f | |
13 | URL: http://compiz-fusion.org/ | |
14 | BuildRequires: python-devel >= 1:2.5 | |
15 | BuildRequires: rpm-pythonprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.311 | |
17 | Requires(post,postun): gtk+2 | |
18 | Requires(post,postun): hicolor-icon-theme | |
19 | Requires: %{name}-interface = %{version}-%{release} | |
20 | Requires: compiz >= 0.5.1 | |
21 | Requires: python-compizconfig | |
22 | Requires: xorg-app-xvinfo | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Compiz Fusion Icon is a small program written in Python which lets you | |
28 | control your GL Desktop it handles your different decorators | |
29 | (non-GL/GL) and configurators. | |
30 | ||
31 | %description -l pl.UTF-8 | |
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. | |
35 | ||
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 | ||
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 | ||
76 | %{__python} setup.py install \ | |
77 | -O1 \ | |
78 | --skip-build \ | |
79 | --root $RPM_BUILD_ROOT | |
80 | ||
81 | %py_postclean | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post | |
87 | %update_icon_cache hicolor | |
88 | ||
89 | %postun | |
90 | %update_icon_cache hicolor | |
91 | ||
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 | |
97 | %{py_sitescriptdir}/FusionIcon/*.py[co] | |
98 | %{py_sitescriptdir}/fusion_icon-*.egg-info | |
99 | %{_iconsdir}/hicolor/*x*/apps/fusion-icon.png | |
100 | %{_iconsdir}/hicolor/scalable/apps/fusion-icon.svg | |
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] |