]>
Commit | Line | Data |
---|---|---|
228e09f9 | 1 | Summary: Video extraction utility for YouTube and Google Video |
b5c98a45 | 2 | Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube i Google Video |
228e09f9 | 3 | Name: clive |
8e6f4ee7 ER |
4 | Version: 0.4.10 |
5 | Release: 0.12 | |
653e1c1c | 6 | License: GPL v2+ |
228e09f9 | 7 | Group: Applications/System |
8e6f4ee7 ER |
8 | Source0: http://dl.sourceforge.net/clive/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: f6aec28af6b7794e2c4c833d80c8284a | |
0c701cd2 | 10 | Patch0: %{name}-setup.patch |
56de53d2 | 11 | Patch1: %{name}-delfi.patch |
d58c37d0 | 12 | Patch2: %{name}-spz.patch |
228e09f9 | 13 | URL: http://home.gna.org/clive/ |
8e6f4ee7 ER |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
16 | BuildRequires: python-devel >= 1:2.4 | |
b5c98a45 | 17 | BuildRequires: rpm-pythonprov |
0c701cd2 | 18 | BuildRequires: rpmbuild(macros) >= 1.219 |
b5c98a45 | 19 | %pyrequires_eq python-libs |
8e6f4ee7 ER |
20 | Requires: python >= 2.4 |
21 | Requires: python-feedparser >= 3.3 | |
22 | Requires: python-snack >= 0.51 | |
23 | Requires: python-urlgrabber >= 3.0.0 | |
975ce4e0 | 24 | BuildArch: noarch |
228e09f9 AM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
8e6f4ee7 ER |
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. | |
b5c98a45 JB |
31 | |
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 | |
37 | (np. AVI, MPEG, flv). | |
228e09f9 AM |
38 | |
39 | %prep | |
40 | %setup -q | |
8e6f4ee7 ER |
41 | #%patch0 -p1 |
42 | #%patch1 -p1 | |
43 | #%patch2 -p1 | |
44 | ||
45 | #rm -rf src/clive/{urlgrabber,feedparser,newt} | |
46 | ||
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 | |
52 | ||
228e09f9 AM |
53 | |
54 | %build | |
8e6f4ee7 ER |
55 | %{__aclocal} |
56 | %{__autoconf} | |
57 | %{__autoheader} | |
58 | %{__automake} | |
59 | %configure \ | |
60 | --host=%{_arch}-pld-linux \ | |
61 | --build=%{_arch}-pld-linux \ | |
62 | --without-newt | |
63 | %{__make} | |
228e09f9 AM |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
8e6f4ee7 ER |
67 | %{__make} install \ |
68 | DESTDIR=$RPM_BUILD_ROOT | |
228e09f9 | 69 | |
0c701cd2 | 70 | %py_postclean |
228e09f9 AM |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
653e1c1c JB |
77 | %doc AUTHORS ChangeLog README |
78 | %attr(755,root,root) %{_bindir}/clive | |
228e09f9 AM |
79 | %dir %{py_sitescriptdir}/%{name} |
80 | %{py_sitescriptdir}/%{name}/*.py[co] | |
8e6f4ee7 ER |
81 | |
82 | %if "%{py_ver}" > "2.4" | |
653e1c1c | 83 | %{py_sitescriptdir}/clive-*.egg-info |
8e6f4ee7 | 84 | %endif |
228e09f9 | 85 | %{_mandir}/man1/clive.1* |