]>
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 |
dddd92f9 | 4 | Version: 1.0.2 |
5 | Release: 1 | |
653e1c1c | 6 | License: GPL v2+ |
228e09f9 | 7 | Group: Applications/System |
5f0f4456 | 8 | Source0: http://download.gna.org/clive/1.0.x/%{name}-%{version}.tar.bz2 |
dddd92f9 | 9 | # Source0-md5: ff617c65ba447bf2f3ef050d02a93dd3 |
1b778b30 | 10 | Source1: %{name}-setup.py |
f9a33831 ER |
11 | Patch0: %{name}-delfi.patch |
12 | Patch1: %{name}-spz.patch | |
1e22635d | 13 | Patch2: %{name}-reporter.patch |
228e09f9 | 14 | URL: http://home.gna.org/clive/ |
8e6f4ee7 | 15 | BuildRequires: python-devel >= 1:2.4 |
b5c98a45 | 16 | BuildRequires: rpm-pythonprov |
0c701cd2 | 17 | BuildRequires: rpmbuild(macros) >= 1.219 |
b5c98a45 | 18 | %pyrequires_eq python-libs |
8e6f4ee7 ER |
19 | Requires: python >= 2.4 |
20 | Requires: python-feedparser >= 3.3 | |
21 | Requires: python-snack >= 0.51 | |
22 | Requires: python-urlgrabber >= 3.0.0 | |
975ce4e0 | 23 | BuildArch: noarch |
228e09f9 AM |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
8e6f4ee7 ER |
27 | clive is a video extraction tool for user-uploaded video hosts such as Youtube, |
28 | Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party | |
29 | tools for subsequent video re-encoding and playing and playing. | |
b5c98a45 JB |
30 | |
31 | %description -l pl.UTF-8 | |
32 | clive to działający z linii poleceń program do wydobywania filmów z | |
33 | serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie | |
34 | osadzonych filmów i może być używany zewnętrznym koderem (np. | |
35 | ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów | |
36 | (np. AVI, MPEG, flv). | |
228e09f9 AM |
37 | |
38 | %prep | |
39 | %setup -q | |
f9a33831 ER |
40 | %patch0 -p1 |
41 | %patch1 -p1 | |
1e22635d | 42 | %patch2 -p1 |
8e6f4ee7 | 43 | |
1b778b30 ER |
44 | # switch back to python install. we don't need autofoo as we don't build newt |
45 | cp %{SOURCE1} setup.py | |
8e6f4ee7 | 46 | rm -f configure aclocal.m4 |
1b778b30 ER |
47 | |
48 | # get rid of bundled packages | |
49 | rm -rf src/clive/{urlgrabber,feedparser,newt} | |
50 | # fix imports to use system pkgs | |
8e6f4ee7 ER |
51 | %{__sed} -i -e 's,\(from\|import\) clive.\(newt\|urlgrabber\),\1 \2,' src/clive/*.py |
52 | %{__sed} -i -e 's,from clive\.feedparser ,,' src/clive/*.py | |
427f32be | 53 | %{__sed} -i -e 's,from newt \(import snack as newt\),\1,' src/clive/*.py |
8e6f4ee7 ER |
54 | %{__sed} -i -e 's,\(import\) clive\.feedparser\.,\1 ,' src/clive/*.py |
55 | ||
228e09f9 | 56 | %build |
1b778b30 | 57 | python setup.py build |
228e09f9 AM |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
1b778b30 ER |
61 | python setup.py install \ |
62 | --optimize=2 \ | |
63 | --root=$RPM_BUILD_ROOT | |
228e09f9 | 64 | |
0c701cd2 | 65 | %py_postclean |
228e09f9 AM |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
653e1c1c JB |
72 | %doc AUTHORS ChangeLog README |
73 | %attr(755,root,root) %{_bindir}/clive | |
1b778b30 | 74 | %{_mandir}/man1/clive.1* |
228e09f9 AM |
75 | %dir %{py_sitescriptdir}/%{name} |
76 | %{py_sitescriptdir}/%{name}/*.py[co] | |
8e6f4ee7 ER |
77 | |
78 | %if "%{py_ver}" > "2.4" | |
653e1c1c | 79 | %{py_sitescriptdir}/clive-*.egg-info |
8e6f4ee7 | 80 | %endif |