çÒÕÐÐÁ :: óÅÔÉ/ðÏÞÔÁ
ðÁËÅÔ: python-module-pyzor
çÌÁ×ÎÁÑ éÚÍÅÎÅÎÉÑ óÐÅË ðÁÔÞÉ úÁÇÒÕÚÉÔØ Bugs and FR
%def_with M24
%if_with M24
%define release alt0.M24.1
%else
%define release alt1
%endif
%define version 0.4.0
%setup_python_module pyzor
Summary: %packagename
Name: %packagename
Version: %version
Release: %release
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: Pyzor - a collaborative system to detect and block spam
Summary(pl): Pyzor - wspó³pracuj±cy system do wykrywania i blokowania spamu
License: GPL
Group: Networking/Mail
Url: http://pyzor.sourceforge.net/
Source0: http://easynews.dl.sourceforge.net/sourceforge/pyzor/%modulename-%version.tar.bz2
Patch0: pyzor-0.4.0-alt-python.patch
Patch1: pyzor-0.4.0-mdk-handle_digest_is_none.patch
Patch2: pyzor-0.4.0-mdk-handle_unknown_encoding.patch
Patch3: pyzor-0.4.0-alt-test-newline.patch
# Added on Wed Mar 08 2006
BuildRequires: python-modules-email python-modules-encodings
BuildArch: noarch
BuildPreReq: rpm-build-python >= 0.27
%description
A collaborative system to detect and block spam.
Pyzor initially started out to be merely a Python implementation of
Razor, but due to the protocol and the fact that Razor's server is not
Open Source or software libre, the author decided to impelement Pyzor
with a new protocol and release the entire system as Open Source and
software libre.
%description -l pl
Wspó³pracuj±cy system do wykrywania i blokowania spamu.
Pyzor pocz±tkowo mia³ byæ pythonow± implementacj± Razora, ale z powodu
protoko³u i faktu, ¿e serwer Razora nie jest wolnodostêpnym
oprogramowaniem z otwartymi ¼ród³ami, autor zdecydowa³ siê
zaimplementowaæ Pyzora z nowym protoko³em i wydaæ ca³y system jako
oprogramowanie wolnodostêpne z otwartymi ¼ród³ami.
%prep
%setup -q -n %modulename-%version
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%build
%__python setup.py build
%__python unittests.py
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
mkdir -p %buildroot%_sbindir
mv %buildroot%_bindir/pyzord %buildroot%_sbindir/pyzord
subst 's,%_bindir/pyzord,%_sbindir/pyzord,g' INSTALLED_FILES
subst 's,%_datadir/doc/pyzor.*,,g' INSTALLED_FILES
%files -f INSTALLED_FILES
%doc README INSTALL ChangeLog THANKS NEWS UPGRADING
%doc docs/usage.html
%changelog
…
ðÏÌÎÙÊ changelog ÍÏÖÎÏ ÐÒÏÓÍÏÔÒÅÔØ ÚÄÅÓØ
%if_with M24
%define release alt0.M24.1
%else
%define release alt1
%endif
%define version 0.4.0
%setup_python_module pyzor
Summary: %packagename
Name: %packagename
Version: %version
Release: %release
Packager: Grigory Batalov <bga at altlinux.ru>
Summary: Pyzor - a collaborative system to detect and block spam
Summary(pl): Pyzor - wspó³pracuj±cy system do wykrywania i blokowania spamu
License: GPL
Group: Networking/Mail
Url: http://pyzor.sourceforge.net/
Source0: http://easynews.dl.sourceforge.net/sourceforge/pyzor/%modulename-%version.tar.bz2
Patch0: pyzor-0.4.0-alt-python.patch
Patch1: pyzor-0.4.0-mdk-handle_digest_is_none.patch
Patch2: pyzor-0.4.0-mdk-handle_unknown_encoding.patch
Patch3: pyzor-0.4.0-alt-test-newline.patch
# Added on Wed Mar 08 2006
BuildRequires: python-modules-email python-modules-encodings
BuildArch: noarch
BuildPreReq: rpm-build-python >= 0.27
%description
A collaborative system to detect and block spam.
Pyzor initially started out to be merely a Python implementation of
Razor, but due to the protocol and the fact that Razor's server is not
Open Source or software libre, the author decided to impelement Pyzor
with a new protocol and release the entire system as Open Source and
software libre.
%description -l pl
Wspó³pracuj±cy system do wykrywania i blokowania spamu.
Pyzor pocz±tkowo mia³ byæ pythonow± implementacj± Razora, ale z powodu
protoko³u i faktu, ¿e serwer Razora nie jest wolnodostêpnym
oprogramowaniem z otwartymi ¼ród³ami, autor zdecydowa³ siê
zaimplementowaæ Pyzora z nowym protoko³em i wydaæ ca³y system jako
oprogramowanie wolnodostêpne z otwartymi ¼ród³ami.
%prep
%setup -q -n %modulename-%version
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%build
%__python setup.py build
%__python unittests.py
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
mkdir -p %buildroot%_sbindir
mv %buildroot%_bindir/pyzord %buildroot%_sbindir/pyzord
subst 's,%_bindir/pyzord,%_sbindir/pyzord,g' INSTALLED_FILES
subst 's,%_datadir/doc/pyzor.*,,g' INSTALLED_FILES
%files -f INSTALLED_FILES
%doc README INSTALL ChangeLog THANKS NEWS UPGRADING
%doc docs/usage.html
%changelog
…
ðÏÌÎÙÊ changelog ÍÏÖÎÏ ÐÒÏÓÍÏÔÒÅÔØ ÚÄÅÓØ