]> git.pld-linux.org Git - packages/clive.git/blob - clive.spec
- cp from clive-0.4.6/setup.py
[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.12
6 License:        GPL v2+
7 Group:          Applications/System
8 Source0:        http://dl.sourceforge.net/clive/%{name}-%{version}.tar.bz2
9 # Source0-md5:  f6aec28af6b7794e2c4c833d80c8284a
10 Patch0:         %{name}-setup.patch
11 Patch1:         %{name}-delfi.patch
12 Patch2:         %{name}-spz.patch
13 URL:            http://home.gna.org/clive/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  python-devel >= 1:2.4
17 BuildRequires:  rpm-pythonprov
18 BuildRequires:  rpmbuild(macros) >= 1.219
19 %pyrequires_eq  python-libs
20 Requires:       python >= 2.4
21 Requires:       python-feedparser >= 3.3
22 Requires:       python-snack >= 0.51
23 Requires:       python-urlgrabber >= 3.0.0
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 clive is a video extraction tool for user-uploaded video hosts such as Youtube,
29 Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party
30 tools for subsequent video re-encoding and playing and playing.
31
32 %description -l pl.UTF-8
33 clive to działający z linii poleceń program do wydobywania filmów z
34 serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie
35 osadzonych filmów i może być używany zewnętrznym koderem (np.
36 ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów
37 (np. AVI, MPEG, flv).
38
39 %prep
40 %setup -q
41 #%patch0 -p1
42 #%patch1 -p1
43 #%patch2 -p1
44
45 #rm -rf src/clive/{urlgrabber,feedparser,newt}
46
47 %{__sed} -i -e 's,\(SUBDIRS = \)urlgrabber feedparser newt,\1,' src/clive/Makefile.am
48 rm -f configure aclocal.m4
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
54 %build
55 %{__aclocal}
56 %{__autoconf}
57 %{__autoheader}
58 %{__automake}
59 %configure \
60         --host=%{_arch}-pld-linux \
61         --build=%{_arch}-pld-linux \
62         --without-newt
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %py_postclean
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog README
78 %attr(755,root,root) %{_bindir}/clive
79 %dir %{py_sitescriptdir}/%{name}
80 %{py_sitescriptdir}/%{name}/*.py[co]
81
82 %if "%{py_ver}" > "2.4"
83 %{py_sitescriptdir}/clive-*.egg-info
84 %endif
85 %{_mandir}/man1/clive.1*
This page took 0.080258 seconds and 3 git commands to generate.