%global forgeurl https://github.com/SpamExperts/pyzor %global commit 2be00c3f802d541f6b86afb4fc3a84a9820eddb5 Name: pyzor Version: 1.0.0 Release: 40%{?dist} Summary: Collaborative spam filtering system License: GPL-2.0-only %forgemeta URL: %forgeurl Source0: %forgesource Patch0: https://github.com/SpamExperts/pyzor/pull/168.patch#/pyzor-1.0.0-python-3.13.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-setuptools # No python3-redis (yet?) in EPEL, only in Fedora %if 0%{?fedora} BuildRequires: python%{python3_pkgversion}-redis %endif %description Pyzor is a collaborative, networked system to detect and block spam using identifying digests of messages. Pyzor is similar to Vipul's Razor except implemented in python, and using fully open source servers. Pyzor can be used either standalone, or to augment the spam filtering ability of spamassassin. spamassassin is highly recommended. %prep %forgeautosetup -p1 %build %py3_build %install %py3_install install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} # Tests are failing without python3-redis, even it's optional %if 0%{?fedora} %check %pytest tests/unit/ %endif %files %license COPYING %doc config/ README.rst THANKS %dir %{_sysconfdir}/%{name}/ %{_bindir}/%{name} %{_bindir}/%{name}-migrate %{_bindir}/%{name}d %{python3_sitelib}/%{name}* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.0.0-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Robert Scheck - 1.0.0-39 - Added patch due to logger method removal to fix Python 3.13 build * Fri Jun 07 2024 Python Maint - 1.0.0-38 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.0.0-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.0-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 1.0.0-34 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Nov 12 2022 Robert Scheck - 1.0.0-32 - Updated license identifier to SPDX expression - Added missing build dependency on python3-setuptools (#2142035) * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.0-30 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 23 2021 Robert Scheck - 1.0.0-28 - Added patch for unittests to fix Python 3.11 build (#2026772) * Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.0-26 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 29 2020 Jason L Tibbitts III - 1.0.0-23.20200530gitf46159b - Update to current git snapshot (fixes python 3.9 build). - Remove merged patch. * Tue May 26 2020 Miro Hrončok - 1.0.0-22 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.0.0-20 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.0.0-19 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-17.git2b8d76d - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 24 2018 Jason L Tibbitts III - 1.0.0-16.20180724git2b8d76d - Update to current git snapshot, which has some python3 fixes. - Include an additional python3 fix. - Use modern py3 macros. - Use forge macros. - Minor spec cleanups. * Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-15.20160210gitf16e1b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0.0-14.20160210gitf16e1b6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-13.20160210gitf16e1b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-12.20160210gitf16e1b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.0-11.20160210gitf16e1b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.0-10.20160210gitf16e1b6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.0-9.20160210gitf16e1b6 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 10 2016 Jason L Tibbitts III - 1.0.0-8.20160210git - Call as much of the test suite as we can. * Wed Feb 10 2016 Jason L Tibbitts III - 1.0.0-7.20160210git - Update to current git snapshot. * Thu Feb 04 2016 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Dec 07 2015 Jason L Tibbitts III - 1.0.0-5 - Use github site as upstream instead of sourceforge. * Tue Nov 10 2015 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Mar 06 2015 Jason L Tibbitts III - 1.0.0-2 - Upstream clarified that the license is indeed GPLv2: https://github.com/SpamExperts/pyzor/issues/35 * Thu Mar 05 2015 Jason L Tibbitts III - 1.0.0-1 - Update to 1.0.0. - Clean up and greatly simplify the specfile. - Use python3 as the program supports it. * Sun Jun 08 2014 Fedora Release Engineering - 0.5.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.5.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Nov 05 2009 Warren Togami - 0.5.0-3 - -Wignore::DeprecationWarning to make it work (#531653) * Sun Jul 26 2009 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu May 14 2009 Andreas Thienemann - 0.5.0-1 - Update to new upstream release 0.5.0 - Dropped unnecessary patches * Thu Feb 26 2009 Fedora Release Engineering - 0.4.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.4.0-14 - Rebuild for Python 2.6 * Thu Aug 14 2008 Jason L Tibbitts III - 0.4.0-13 - Fix failing build too. * Thu Aug 14 2008 Jason L Tibbitts III - 0.4.0-12 - Fix license tag. * Sat Dec 23 2006 Jason L Tibbitts III - 0.4.0-11 - Rebuild with Python 2.5. * Fri Sep 08 2006 Andreas Thienemann - 0.4.0-10 - FE6 Rebuild - Feature enhancements by including certain patches from swinog. * Mon Feb 07 2005 Toshio Kuratomi - 0.4.0-8 - %%ghost *.pyo files. * Sat Feb 05 2005 Toshio Kuratomi - 0.4.0-7 - Use python_sitelib macro to fix building on x86_64. - Change byte compile argumetns so we don't encode the buildroot into the byte compiled python files. - Use python-abi for Requires instead of python package. * Sat Nov 13 2004 Warren Togami - 0.4.0-6 - bump release * Fri May 21 2004 Warren Togami - 0.4.0-0.fdr.5 - generalize python version * Fri Jul 11 2003 Warren Togami - 0.4.0-0.fdr.4 - Change to __python macro * Fri Jun 27 2003 Warren Togami - 0.4.0-0.fdr.3 - #360 add more docs * Sat Jun 21 2003 Warren Togami - 0.4.0-0.fdr.2 - Fix some directory macros - #360 Include .pyc and .pyo so package removes cleanly - #360 install -p preserve timestamps * Sun Jun 08 2003 Warren Togami - 0:0.4.0-0.fdr.1 - Convert to Fedora * Fri Jan 31 2003 Shad L. Lords - 0.4.0-1 - inital release