X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=canto.spec;h=f1f7aaf0084271df8a50811c357611de48e2b304;hb=4e8de1743da818faf7b701ae54dc4d514e921f3c;hp=34adbc60e86606e9ac7dc3bee95d2e4f8f0ae523;hpb=03dd4639f4ff5dfe1f3a5d8b077c34cf536b56b6;p=packages%2Fcanto.git diff --git a/canto.spec b/canto.spec index 34adbc6..f1f7aaf 100644 --- a/canto.spec +++ b/canto.spec @@ -1,15 +1,18 @@ Summary: Canto is an Atom/RSS feed reader for the console Summary(hu.UTF-8): Canto egy Atom/RSS hírolvasó konzolra Name: canto -Version: 0.4.5 -Release: 0.1 +Version: 0.5.3 +Release: 2 License: GPL v2 Group: Applications/Networking Source0: http://codezen.org/static/%{name}-%{version}.tar.gz -# Source0-md5: 167ed02e36488ff773cf818e01f150ea +# Source0-md5: 75dff6e151a08221ca0f8a3f8bdb3792 URL: http://www.codezen.org/canto BuildRequires: ncurses-devel BuildRequires: python-devel >= 2.4.0 +BuildRequires: rpmbuild(macros) >= 1.219 +Requires: python-chardet +Requires: python-feedparser Obsoletes: nrss BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -32,13 +35,24 @@ bővíthető a Python programozási nyelv segítségével. %setup -q %build +%{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT -./setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT + +%{__python} setup.py install \ + --prefix=%{_prefix} \ + --root=$RPM_BUILD_ROOT + +# Hack to set correctly VERSION_TUPLE +rm -f $RPM_BUILD_ROOT%{py_sitedir}/canto/*.py{c,o} +%py_comp $RPM_BUILD_ROOT%{py_sitedir}/canto +%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/canto + +%py_postclean %clean -rm -rf $RPM_BUILD_ROOT +#rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) @@ -47,7 +61,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/%{name}-fetch %{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}-fetch.1* +%{py_sitedir}/Canto-*.egg-info %dir %{py_sitedir}/canto -%dir %{py_sitedir}/canto_fetch -%{py_sitedir}/canto/* -%{py_sitedir}/canto_fetch/* +%attr(755,root,root) %{py_sitedir}/canto/widecurse.so +%{py_sitedir}/canto/*.py[co]