[packages/pyzor] - up to 1.0.0
arekm
arekm at pld-linux.org
Mon Feb 16 13:20:15 CET 2015
commit b75745ee4f52c487973f2be06b76ef4453da5d90
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Feb 16 13:20:10 2015 +0100
- up to 1.0.0
pyzor.spec | 35 +++++++++++++++++++++++++++--------
1 file changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/pyzor.spec b/pyzor.spec
index 00e95c0..ca1958f 100644
--- a/pyzor.spec
+++ b/pyzor.spec
@@ -1,18 +1,23 @@
+#
+%bcond_without doc
+#
%define module pyogg
+%define dver 1-0-0
Summary: Pyzor - a collaborative system to detect and block spam
Summary(pl.UTF-8): Pyzor - współpracujący system do wykrywania i blokowania spamu
Name: pyzor
-Version: 0.5.0
-Release: 2
+Version: 1.0.0
+Release: 1
License: GPL v2
Group: Applications/Mail
-Source0: http://downloads.sourceforge.net/pyzor/%{name}-%{version}.tar.bz2
-# Source0-md5: 21f5ed92470ab12a7658cc46bf59a3e9
-URL: http://pyzor.sourceforge.net/
+Source0: https://github.com/SpamExperts/pyzor/archive/release-%{dver}.tar.gz
+# Source0-md5: 82b351cbf7594974240d655e2e98f20c
+URL: http://pyzor.org/
BuildRequires: python-devel
BuildRequires: python-modules
BuildRequires: rpm-pythonprov
-%pyrequires_eq python-modules
+%{?with_doc:BuildRequires: sphinx-pdg}
+Requires: python-modules
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -34,7 +39,7 @@ zaimplementować Pyzora z nowym protokołem i wydać cały system jako
oprogramowanie wolnodostępne z otwartymi źródłami.
%prep
-%setup -q
+%setup -q -n %{name}-release-%{dver}
%build
python setup.py build
@@ -47,13 +52,27 @@ python setup.py install \
--root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/pyzor/*.py
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/pyzor/*/*.py
+
+%if %{with doc}
+cd docs
+%{__make} -j1 html
+rm -rf _build/html/_sources
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc NEWS README THANKS UPGRADING docs/*
+%doc README.rst THANKS %{?with_doc:docs/.build/html}
%attr(755,root,root) %{_bindir}/*
%dir %{py_sitescriptdir}/pyzor
%{py_sitescriptdir}/pyzor/*.py[co]
+%dir %{py_sitescriptdir}/pyzor/engines
+%{py_sitescriptdir}/pyzor/engines/*.py[co]
+%dir %{py_sitescriptdir}/pyzor/hacks
+%{py_sitescriptdir}/pyzor/hacks/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/pyzor-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pyzor.git/commitdiff/b75745ee4f52c487973f2be06b76ef4453da5d90
More information about the pld-cvs-commit
mailing list