]>
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 |
60552a11 | 4 | Version: 0.4.11 |
427f32be | 5 | Release: 0.3 |
653e1c1c | 6 | License: GPL v2+ |
228e09f9 | 7 | Group: Applications/System |
60552a11 AM |
8 | Source0: http://download.gna.org/clive/0.4/src/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: dc483bd1dfd9e1192b97995b0a2a2146 | |
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 | |
427f32be | 51 | %{__sed} -i -e 's,from newt \(import snack as newt\),\1,' src/clive/*.py |
8e6f4ee7 ER |
52 | %{__sed} -i -e 's,\(import\) clive\.feedparser\.,\1 ,' src/clive/*.py |
53 | ||
228e09f9 | 54 | %build |
1b778b30 | 55 | python setup.py build |
228e09f9 AM |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
1b778b30 ER |
59 | python setup.py install \ |
60 | --optimize=2 \ | |
61 | --root=$RPM_BUILD_ROOT | |
228e09f9 | 62 | |
0c701cd2 | 63 | %py_postclean |
228e09f9 AM |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
653e1c1c JB |
70 | %doc AUTHORS ChangeLog README |
71 | %attr(755,root,root) %{_bindir}/clive | |
1b778b30 | 72 | %{_mandir}/man1/clive.1* |
228e09f9 AM |
73 | %dir %{py_sitescriptdir}/%{name} |
74 | %{py_sitescriptdir}/%{name}/*.py[co] | |
8e6f4ee7 ER |
75 | |
76 | %if "%{py_ver}" > "2.4" | |
653e1c1c | 77 | %{py_sitescriptdir}/clive-*.egg-info |
8e6f4ee7 | 78 | %endif |