]> git.pld-linux.org Git - packages/clive.git/blame - clive.spec
- outdated
[packages/clive.git] / clive.spec
CommitLineData
228e09f9 1Summary: Video extraction utility for YouTube and Google Video
b5c98a45 2Summary(pl.UTF-8): Narzędzie do wydobywania filmów z YouTube i Google Video
228e09f9 3Name: clive
60552a11 4Version: 0.4.11
427f32be 5Release: 0.3
653e1c1c 6License: GPL v2+
228e09f9 7Group: Applications/System
60552a11
AM
8Source0: http://download.gna.org/clive/0.4/src/%{name}-%{version}.tar.bz2
9# Source0-md5: dc483bd1dfd9e1192b97995b0a2a2146
1b778b30 10Source1: %{name}-setup.py
f9a33831
ER
11Patch0: %{name}-delfi.patch
12Patch1: %{name}-spz.patch
228e09f9 13URL: http://home.gna.org/clive/
8e6f4ee7 14BuildRequires: python-devel >= 1:2.4
b5c98a45 15BuildRequires: rpm-pythonprov
0c701cd2 16BuildRequires: rpmbuild(macros) >= 1.219
b5c98a45 17%pyrequires_eq python-libs
8e6f4ee7
ER
18Requires: python >= 2.4
19Requires: python-feedparser >= 3.3
20Requires: python-snack >= 0.51
21Requires: python-urlgrabber >= 3.0.0
975ce4e0 22BuildArch: noarch
228e09f9
AM
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
8e6f4ee7
ER
26clive is a video extraction tool for user-uploaded video hosts such as Youtube,
27Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party
28tools for subsequent video re-encoding and playing and playing.
b5c98a45
JB
29
30%description -l pl.UTF-8
31clive to działający z linii poleceń program do wydobywania filmów z
32serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie
33osadzonych filmów i może być używany zewnętrznym koderem (np.
34ffmpegiem) 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
43cp %{SOURCE1} setup.py
8e6f4ee7 44rm -f configure aclocal.m4
1b778b30
ER
45
46# get rid of bundled packages
47rm -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 55python setup.py build
228e09f9
AM
56
57%install
58rm -rf $RPM_BUILD_ROOT
1b778b30
ER
59python setup.py install \
60 --optimize=2 \
61 --root=$RPM_BUILD_ROOT
228e09f9 62
0c701cd2 63%py_postclean
228e09f9
AM
64
65%clean
66rm -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
This page took 0.037063 seconds and 4 git commands to generate.