]> git.pld-linux.org Git - packages/clive.git/blob - clive.spec
- updated to 0.5.0
[packages/clive.git] / clive.spec
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
3 Name:           clive
4 Version:        0.5.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/System
8 Source0:        http://download.gna.org/clive/0.5/%{name}-%{version}.tar.bz2
9 # Source0-md5:  f2ca6d73059c57b110045db3c382f501
10 Source1:        %{name}-setup.py
11 Patch0:         %{name}-delfi.patch
12 Patch1:         %{name}-spz.patch
13 Patch2:         %{name}-reporter.patch
14 URL:            http://home.gna.org/clive/
15 BuildRequires:  python-devel >= 1:2.4
16 BuildRequires:  rpm-pythonprov
17 BuildRequires:  rpmbuild(macros) >= 1.219
18 %pyrequires_eq  python-libs
19 Requires:       python >= 2.4
20 Requires:       python-feedparser >= 3.3
21 Requires:       python-snack >= 0.51
22 Requires:       python-urlgrabber >= 3.0.0
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
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).
37
38 %prep
39 %setup -q
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43
44 # switch back to python install. we don't need autofoo as we don't build newt
45 cp %{SOURCE1} setup.py
46 rm -f configure aclocal.m4
47
48 # get rid of bundled packages
49 rm -rf src/clive/{urlgrabber,feedparser,newt}
50 # fix imports to use system pkgs
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
53 %{__sed} -i -e 's,from newt \(import snack as newt\),\1,' src/clive/*.py
54 %{__sed} -i -e 's,\(import\) clive\.feedparser\.,\1 ,' src/clive/*.py
55
56 %build
57 python setup.py build
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 python setup.py install \
62         --optimize=2 \
63         --root=$RPM_BUILD_ROOT
64
65 %py_postclean
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc AUTHORS ChangeLog README
73 %attr(755,root,root) %{_bindir}/clive
74 %{_mandir}/man1/clive.1*
75 %dir %{py_sitescriptdir}/%{name}
76 %{py_sitescriptdir}/%{name}/*.py[co]
77
78 %if "%{py_ver}" > "2.4"
79 %{py_sitescriptdir}/clive-*.egg-info
80 %endif
This page took 0.05778 seconds and 3 git commands to generate.