]>
Commit | Line | Data |
---|---|---|
7115a686 ER |
1 | Summary: Internet television application |
2 | Name: democracy | |
3 | Version: 0.9.2.2 | |
489a05ab | 4 | Release: 0.2 |
7115a686 ER |
5 | License: GPL |
6 | Group: Applications/Multimedia | |
7 | Source0: ftp://ftp.osuosl.org/pub/pculture.org/democracy/src/Democracy-%{version}.tar.gz | |
8 | # Source0-md5: 0b92aa3efb2a93e7c066152137fcf9fa | |
8f9c0edd | 9 | Patch0: %{name}-lib64.patch |
7115a686 ER |
10 | URL: http://www.getdemocracy.com/ |
11 | BuildRequires: boost-python-devel | |
12 | BuildRequires: libfame | |
7115a686 ER |
13 | BuildRequires: python-Pyrex |
14 | BuildRequires: python-devel >= 1:2.4 | |
15 | BuildRequires: python-pygtk-devel | |
16 | BuildRequires: xine-lib-devel | |
489a05ab | 17 | BuildRequires: xulrunner-devel |
7115a686 | 18 | Requires: python-dbus |
489a05ab | 19 | Requires: python-gnome-vfs |
7115a686 ER |
20 | %pyrequires_eq python |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Democracy Player (also known as Democracy and DTV) is an Internet | |
25 | television application developed by the Participatory Culture | |
26 | Foundation (PCF). It can automatically download videos from RSS-based | |
27 | "channels", as well as managing and playing the videos collected from | |
28 | these channels. | |
29 | ||
30 | Democracy Player integrates an RSS aggregator, a BitTorrent client, | |
31 | and VLC media player (or Xine Media Player under GNU/Linux). | |
32 | ||
33 | %prep | |
34 | %setup -q -n Democracy-%{version} | |
8f9c0edd ER |
35 | %if "%{_lib}" != "lib" |
36 | %patch0 -p1 | |
37 | %endif | |
7115a686 ER |
38 | |
39 | mv platform/gtk-x11/README README.gtk-x11 | |
40 | ||
41 | %build | |
42 | cd platform/gtk-x11 | |
43 | ||
8f9c0edd ER |
44 | CC="%{__cc}" \ |
45 | CFLAGS="%{rpmcflags}" \ | |
46 | %{__python} setup.py build | |
7115a686 ER |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | cd platform/gtk-x11 | |
52 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT | |
53 | cd ../.. | |
54 | ||
55 | %py_postclean $RPM_BUILD_ROOT%{py_sitedir}/democracy | |
56 | ||
57 | %find_lang democracyplayer | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files -f democracyplayer.lang | |
63 | %defattr(644,root,root,755) | |
64 | %doc CREDITS README README.gtk-x11 | |
65 | %attr(755,root,root) %{_bindir}/democracyplayer | |
66 | ||
67 | %dir %{py_sitedir}/democracy | |
68 | %{py_sitedir}/democracy/*.py[co] | |
69 | %dir %{py_sitedir}/democracy/BitTorrent | |
70 | %{py_sitedir}/democracy/BitTorrent/*.py[co] | |
71 | %dir %{py_sitedir}/democracy/compiled_templates | |
72 | %{py_sitedir}/democracy/compiled_templates/*.py[co] | |
73 | %dir %{py_sitedir}/democracy/compiled_templates/unittest | |
74 | %{py_sitedir}/democracy/compiled_templates/unittest/*.py[co] | |
75 | %dir %{py_sitedir}/democracy/dl_daemon | |
76 | %{py_sitedir}/democracy/dl_daemon/*.py[co] | |
77 | %dir %{py_sitedir}/democracy/dl_daemon/private | |
78 | %{py_sitedir}/democracy/dl_daemon/private/*.py[co] | |
79 | %dir %{py_sitedir}/democracy/frontend_implementation | |
80 | %{py_sitedir}/democracy/frontend_implementation/*.py[co] | |
81 | %dir %{py_sitedir}/democracy/test | |
82 | %{py_sitedir}/democracy/test/*.py[co] | |
83 | %attr(755,root,root) %{py_sitedir}/democracy/MozillaBrowser.so | |
84 | %attr(755,root,root) %{py_sitedir}/democracy/database.so | |
85 | %attr(755,root,root) %{py_sitedir}/democracy/fasttypes.so | |
86 | %attr(755,root,root) %{py_sitedir}/democracy/sorts.so | |
87 | %attr(755,root,root) %{py_sitedir}/democracy/xine.so | |
88 | %attr(755,root,root) %{py_sitedir}/democracy/xlibhelper.so | |
89 | ||
90 | %{_desktopdir}/democracyplayer.desktop | |
91 | %{_datadir}/democracy | |
92 | %{_mandir}/man1/democracyplayer.1* | |
93 | %{_datadir}/mime/packages/democracy.xml | |
94 | %{_pixmapsdir}/democracyplayer-*.png |