1 Summary: Video extraction utility for YouTube and Google Video
2 Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube i Google Video
7 Group: Applications/System
8 Source0: http://dl.sourceforge.net/clive/%{name}-%{version}.tar.bz2
9 # Source0-md5: f6aec28af6b7794e2c4c833d80c8284a
10 Source1: %{name}-setup.py
11 Patch0: %{name}-delfi.patch
12 Patch1: %{name}-spz.patch
13 URL: http://home.gna.org/clive/
14 BuildRequires: python-devel >= 1:2.4
15 BuildRequires: rpm-pythonprov
16 BuildRequires: rpmbuild(macros) >= 1.219
17 %pyrequires_eq python-libs
18 Requires: python >= 2.4
19 Requires: python-feedparser >= 3.3
20 Requires: python-snack >= 0.51
21 Requires: python-urlgrabber >= 3.0.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 clive is a video extraction tool for user-uploaded video hosts such as Youtube,
27 Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party
28 tools for subsequent video re-encoding and playing and playing.
30 %description -l pl.UTF-8
31 clive to działający z linii poleceń program do wydobywania filmów z
32 serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie
33 osadzonych filmów i może być używany zewnętrznym koderem (np.
34 ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów
42 # switch back to python install. we don't need autofoo as we don't build newt
43 cp %{SOURCE1} setup.py
44 rm -f configure aclocal.m4
46 # get rid of bundled packages
47 rm -rf src/clive/{urlgrabber,feedparser,newt}
48 # fix imports to use system pkgs
49 %{__sed} -i -e 's,\(from\|import\) clive.\(newt\|urlgrabber\),\1 \2,' src/clive/*.py
50 %{__sed} -i -e 's,from clive\.feedparser ,,' src/clive/*.py
51 %{__sed} -i -e 's,\(import\) clive\.feedparser\.,\1 ,' src/clive/*.py
57 rm -rf $RPM_BUILD_ROOT
58 python setup.py install \
60 --root=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc AUTHORS ChangeLog README
70 %attr(755,root,root) %{_bindir}/clive
71 %{_mandir}/man1/clive.1*
72 %dir %{py_sitescriptdir}/%{name}
73 %{py_sitescriptdir}/%{name}/*.py[co]
75 %if "%{py_ver}" > "2.4"
76 %{py_sitescriptdir}/clive-*.egg-info