]>
Commit | Line | Data |
---|---|---|
5d562c9e PZ |
1 | Summary: A simple free media server |
2 | Name: gcoherence | |
3 | Version: 0.1.0 | |
c3cbb3a1 | 4 | Release: 2 |
5d562c9e PZ |
5 | License: GPL v3 |
6 | Group: X11/Applications | |
7 | Source0: http://29a.ch/gcoherence/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: fe71cb048cb19e0947e7f1c78b37e48d | |
9 | URL: http://29a.ch/gcoherence/ | |
10 | BuildRequires: python-devel >= 1:2.3.0 | |
11 | BuildRequires: python-pygtk-devel | |
12 | BuildRequires: rpmbuild(macros) >= 1.219 | |
13 | Requires(post,postun): desktop-file-utils | |
c3cbb3a1 | 14 | Requires(post,postun): gtk-update-icon-cache |
5d562c9e PZ |
15 | Requires(post,postun): hicolor-icon-theme |
16 | Requires: python-coherence | |
17 | Requires: python-pygtk-gtk | |
18 | Requires: python-pyxdg | |
19 | %pyrequires_eq python-modules | |
f5c3c394 | 20 | BuildArch: noarch |
5d562c9e PZ |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | A simple free media server. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
30 | %{__python} setup.py build | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__python} setup.py install \ | |
36 | --optimize=2 \ | |
37 | --root=$RPM_BUILD_ROOT | |
38 | ||
39 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps | |
40 | mv $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/{,apps/}gcoherence.png | |
41 | ||
42 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
43 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
44 | %py_postclean | |
45 | ||
46 | %find_lang gcoherence --with-gnome | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post | |
5d562c9e | 52 | %update_desktop_database_post |
f5c3c394 | 53 | %update_icon_cache hicolor |
5d562c9e PZ |
54 | |
55 | %postun | |
5d562c9e | 56 | %update_desktop_database_postun |
f5c3c394 | 57 | %update_icon_cache hicolor |
5d562c9e PZ |
58 | |
59 | %files -f gcoherence.lang | |
60 | %defattr(644,root,root,755) | |
61 | %attr(755,root,root) %{_bindir}/gcoherence | |
62 | %{py_sitescriptdir}/x29a | |
63 | %{py_sitescriptdir}/%{name}-%{version}-py*.egg-info | |
64 | %{_desktopdir}/gcoherence.desktop | |
65 | %{_iconsdir}/hicolor/*/apps/gcoherence.png | |
66 | %{_pixmapsdir}/gcoherence.png |