]> git.pld-linux.org Git - packages/clive.git/blobdiff - clive.spec
- rediffed patches. works
[packages/clive.git] / clive.spec
index c7cadd2a7419d498dda8f7119bfa505984add573..e6ab1f216e529a6f2c2698b48eddedee608cc3fe 100644 (file)
@@ -1,80 +1,71 @@
+%include       /usr/lib/rpm/macros.perl
 Summary:       Video extraction utility for YouTube and Google Video
+Summary(hu.UTF-8):     Videó letöltő a YouTube és a Google Video oldalakról
 Summary(pl.UTF-8):     Narzędzie do wydobywania filmów z YouTube i Google Video
 Name:          clive
-Version:       1.0.1
-Release:       1
+Version:       2.1.3
+Release:       0.3
 License:       GPL v2+
 Group:         Applications/System
-Source0:       http://download.gna.org/clive/1.0.x/%{name}-%{version}.tar.bz2
-# Source0-md5: 052f9f8e57fec92737faabf02c1d6567
-Source1:       %{name}-setup.py
+Source0:       http://clive.googlecode.com/files/%{name}-%{version}.tar.bz2
+# Source0-md5: 3e1cbaa365f0c0e09839dbcb85ab8415
+URL:           http://clive.sourceforge.net/
 Patch0:                %{name}-delfi.patch
-Patch1:                %{name}-spz.patch
-Patch2:                %{name}-reporter.patch
-URL:           http://home.gna.org/clive/
-BuildRequires: python-devel >= 1:2.4
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
-%pyrequires_eq python-libs
-Requires:      python >= 2.4
-Requires:      python-feedparser >= 3.3
-Requires:      python-snack >= 0.51
-Requires:      python-urlgrabber >= 3.0.0
+Patch1:                %{name}-reporter.patch
+#Patch2:       %{name}-spz.patch
+BuildRequires: perl-tools-pod
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: sed >= 4.0
+Requires:      perl-BerkeleyDB >= 0.34
+Requires:      perl-Config-Tiny >= 2.12
+Requires:      perl-HTML-TokeParser-Simple >= 2.37
+Requires:      perl-IO-Pager >= 0.05
+Requires:      perl-WWW-Curl >= 4.0.5
+Requires:      perl-XML-Simple >= 2.18
+Requires:      perl-base >= 1:5.8.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-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.
+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 hu.UTF-8
+clive egy videó letöltő eszköz felhasználó által feltöltött videó
+oldalakhoz, úgymint a YouTube, Google Video, Dailymotion, Guba és
+Metacafe. Külső eszközökkel összekapcsolható, videó újrakódolásához és
+lejátszásához.
 
 %description -l pl.UTF-8
 clive to działający z linii poleceń program do wydobywania filmów z
 serwisów YouTube, Google Video i Dailymotion. Obsługuje wyciąganie
-osadzonych filmów i może być używany zewnętrznym koderem (np.
+osadzonych filmów i może być używany wraz z zewnętrznym koderem (np.
 ffmpegiem) do przekodowywania wyciągniętych filmów do innych formatów
 (np. AVI, MPEG, flv).
 
 %prep
 %setup -q
+%{__sed} -i -e '1s,#.*perl,#!%{__perl},' clive
 %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
+#%%patch2 -p1
 
 %build
-python setup.py build
+pod2man clive > clive.1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup.py install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
-
-%py_postclean
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install %{name} $RPM_BUILD_ROOT%{_bindir}
+cp -a clive.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
+%doc AUTHORS CHANGES TODO
 %attr(755,root,root) %{_bindir}/clive
 %{_mandir}/man1/clive.1*
-%dir %{py_sitescriptdir}/%{name}
-%{py_sitescriptdir}/%{name}/*.py[co]
-
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/clive-*.egg-info
-%endif
This page took 0.194969 seconds and 4 git commands to generate.