]> git.pld-linux.org Git - packages/clive.git/blobdiff - clive.spec
- full domain match
[packages/clive.git] / clive.spec
index ce13404632f75460555cdbde9db5df12a86343c6..dbedd152274b30e648116f76bd00256c5f98c874 100644 (file)
@@ -1,26 +1,32 @@
 Summary:       Video extraction utility for YouTube and Google Video
 Summary(pl.UTF-8):     Narzędzie do wydobywania filmów z YouTube i Google Video
 Name:          clive
-Version:       0.3.1
-Release:       1
-License:       GPL
+Version:       0.4.11
+Release:       0.4
+License:       GPL v2+
 Group:         Applications/System
-Source0:       http://dl.gna.org/clive/0.3/src/%{name}-%{version}.tar.gz
-# Source0-md5: 2ba7b7ea3af64177fed7748e1736ce56
+Source0:       http://download.gna.org/clive/0.4/src/%{name}-%{version}.tar.bz2
+# Source0-md5: dc483bd1dfd9e1192b97995b0a2a2146
+Source1:       %{name}-setup.py
+Patch0:                %{name}-delfi.patch
+Patch1:                %{name}-spz.patch
+Patch2:                %{name}-reporter.patch
 URL:           http://home.gna.org/clive/
-BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-devel >= 1:2.4
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
 %pyrequires_eq python-libs
-Requires:      python-urlgrabber >= 2.9.9
+Requires:      python >= 2.4
+Requires:      python-feedparser >= 3.3
+Requires:      python-snack >= 0.51
+Requires:      python-urlgrabber >= 3.0.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-clive is a command line program that extracts videos from YouTube,
-Google Video and Dailymotion websites. It supports embedded video
-extraction, and can be used with an external encoder (e.g. ffmpeg) to
-re-encode the extracted videos to different video formats (e.g. AVI,
-MPEG, flv).
+clive is a video extraction tool for user-uploaded video hosts such as Youtube,
+Google Video, Dailymotion, Guba and Metacafe. It can be chained with 3rd party
+tools for subsequent video re-encoding and playing and playing.
 
 %description -l pl.UTF-8
 clive to działający z linii poleceń program do wydobywania filmów z
@@ -31,29 +37,44 @@ ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# switch back to python install. we don't need autofoo as we don't build newt
+cp %{SOURCE1} setup.py
+rm -f configure aclocal.m4
+
+# get rid of bundled packages
+rm -rf src/clive/{urlgrabber,feedparser,newt}
+# fix imports to use system pkgs
+%{__sed} -i -e 's,\(from\|import\) clive.\(newt\|urlgrabber\),\1 \2,' src/clive/*.py
+%{__sed} -i -e 's,from clive\.feedparser ,,' src/clive/*.py
+%{__sed} -i -e 's,from newt \(import snack as newt\),\1,' src/clive/*.py
+%{__sed} -i -e 's,\(import\) clive\.feedparser\.,\1 ,' src/clive/*.py
 
 %build
 python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-
 python setup.py install \
-        --optimize=2 \
-        --root=$RPM_BUILD_ROOT
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
 
-gzip -d man/*.gz
-install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
-%attr(755,root,root) %{_bindir}/*
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_bindir}/clive
+%{_mandir}/man1/clive.1*
 %dir %{py_sitescriptdir}/%{name}
 %{py_sitescriptdir}/%{name}/*.py[co]
-%{py_sitescriptdir}/*.egg-info
-%{_mandir}/man1/clive.1*
+
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/clive-*.egg-info
+%endif
This page took 0.09551 seconds and 4 git commands to generate.