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 Patch0: %{name}-setup.patch
11 Patch1: %{name}-delfi.patch
12 Patch2: %{name}-spz.patch
13 URL: http://home.gna.org/clive/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: python-devel >= 1:2.4
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
19 %pyrequires_eq python-libs
20 Requires: python >= 2.4
21 Requires: python-feedparser >= 3.3
22 Requires: python-snack >= 0.51
23 Requires: python-urlgrabber >= 3.0.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 clive is a video extraction tool for user-uploaded video hosts such as Youtube,
29 Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party
30 tools for subsequent video re-encoding and playing and playing.
32 %description -l pl.UTF-8
33 clive to działający z linii poleceń program do wydobywania filmów z
34 serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie
35 osadzonych filmów i może być używany zewnętrznym koderem (np.
36 ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów
45 #rm -rf src/clive/{urlgrabber,feedparser,newt}
47 %{__sed} -i -e 's,\(SUBDIRS = \)urlgrabber feedparser newt,\1,' src/clive/Makefile.am
48 rm -f configure aclocal.m4
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
60 --host=%{_arch}-pld-linux \
61 --build=%{_arch}-pld-linux \
66 rm -rf $RPM_BUILD_ROOT
68 DESTDIR=$RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog README
78 %attr(755,root,root) %{_bindir}/clive
79 %dir %{py_sitescriptdir}/%{name}
80 %{py_sitescriptdir}/%{name}/*.py[co]
82 %if "%{py_ver}" > "2.4"
83 %{py_sitescriptdir}/clive-*.egg-info
85 %{_mandir}/man1/clive.1*