]>
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 | |
7366c9a3 | 12 | BuildRequires: rpm-pythonprov |
febbdba5 | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
5d562c9e | 14 | Requires(post,postun): desktop-file-utils |
c3cbb3a1 | 15 | Requires(post,postun): gtk-update-icon-cache |
5d562c9e PZ |
16 | Requires(post,postun): hicolor-icon-theme |
17 | Requires: python-coherence | |
18 | Requires: python-pygtk-gtk | |
19 | Requires: python-pyxdg | |
20 | %pyrequires_eq python-modules | |
f5c3c394 | 21 | BuildArch: noarch |
5d562c9e PZ |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | A simple free media server. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
67b7c4f9 | 31 | %py_build |
5d562c9e PZ |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
67b7c4f9 | 36 | %py_install |
5d562c9e PZ |
37 | |
38 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps | |
39 | mv $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/{,apps/}gcoherence.png | |
40 | ||
41 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
42 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
43 | %py_postclean | |
44 | ||
45 | %find_lang gcoherence --with-gnome | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
5d562c9e | 51 | %update_desktop_database_post |
f5c3c394 | 52 | %update_icon_cache hicolor |
5d562c9e PZ |
53 | |
54 | %postun | |
5d562c9e | 55 | %update_desktop_database_postun |
f5c3c394 | 56 | %update_icon_cache hicolor |
5d562c9e PZ |
57 | |
58 | %files -f gcoherence.lang | |
59 | %defattr(644,root,root,755) | |
60 | %attr(755,root,root) %{_bindir}/gcoherence | |
61 | %{py_sitescriptdir}/x29a | |
62 | %{py_sitescriptdir}/%{name}-%{version}-py*.egg-info | |
63 | %{_desktopdir}/gcoherence.desktop | |
64 | %{_iconsdir}/hicolor/*/apps/gcoherence.png | |
65 | %{_pixmapsdir}/gcoherence.png |