]>
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 | 4 | Version: 0.4.10 |
f9a33831 | 5 | Release: 0.15 |
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 | |
1b778b30 | 10 | Source1: %{name}-setup.py |
f9a33831 ER |
11 | Patch0: %{name}-delfi.patch |
12 | Patch1: %{name}-spz.patch | |
228e09f9 | 13 | URL: http://home.gna.org/clive/ |
8e6f4ee7 | 14 | BuildRequires: python-devel >= 1:2.4 |
b5c98a45 | 15 | BuildRequires: rpm-pythonprov |
0c701cd2 | 16 | BuildRequires: rpmbuild(macros) >= 1.219 |
b5c98a45 | 17 | %pyrequires_eq python-libs |
8e6f4ee7 ER |
18 | Requires: python >= 2.4 |
19 | Requires: python-feedparser >= 3.3 | |
20 | Requires: python-snack >= 0.51 | |
21 | Requires: python-urlgrabber >= 3.0.0 | |
975ce4e0 | 22 | BuildArch: noarch |
228e09f9 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
8e6f4ee7 ER |
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. | |
b5c98a45 JB |
29 | |
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 | |
35 | (np. AVI, MPEG, flv). | |
228e09f9 AM |
36 | |
37 | %prep | |
38 | %setup -q | |
f9a33831 ER |
39 | %patch0 -p1 |
40 | %patch1 -p1 | |
8e6f4ee7 | 41 | |
1b778b30 ER |
42 | # switch back to python install. we don't need autofoo as we don't build newt |
43 | cp %{SOURCE1} setup.py | |
8e6f4ee7 | 44 | rm -f configure aclocal.m4 |
1b778b30 ER |
45 | |
46 | # get rid of bundled packages | |
47 | rm -rf src/clive/{urlgrabber,feedparser,newt} | |
48 | # fix imports to use system pkgs | |
8e6f4ee7 ER |
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 | 53 | %build |
1b778b30 | 54 | python setup.py build |
228e09f9 AM |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
1b778b30 ER |
58 | python setup.py install \ |
59 | --optimize=2 \ | |
60 | --root=$RPM_BUILD_ROOT | |
228e09f9 | 61 | |
0c701cd2 | 62 | %py_postclean |
228e09f9 AM |
63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
653e1c1c JB |
69 | %doc AUTHORS ChangeLog README |
70 | %attr(755,root,root) %{_bindir}/clive | |
1b778b30 | 71 | %{_mandir}/man1/clive.1* |
228e09f9 AM |
72 | %dir %{py_sitescriptdir}/%{name} |
73 | %{py_sitescriptdir}/%{name}/*.py[co] | |
8e6f4ee7 ER |
74 | |
75 | %if "%{py_ver}" > "2.4" | |
653e1c1c | 76 | %{py_sitescriptdir}/clive-*.egg-info |
8e6f4ee7 | 77 | %endif |