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