From 07584f5060ef6f5b59f2dc661fd8ce6ae94417ca Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 18 Feb 2024 00:49:57 +0100 Subject: Update to 1.2.5. and SPEC file from src.fp.o. --- .gitignore | 7 +++---- Makefile | 11 +++++++++++ bogofilter-1.2.5.repack.tar.gz | Bin 0 -> 1180342 bytes bogofilter.spec | 14 ++++++++++++-- 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 Makefile create mode 100644 bogofilter-1.2.5.repack.tar.gz diff --git a/.gitignore b/.gitignore index 1aa96b0..513da4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -bogofilter-1.2.2.tar.gz -/bogofilter-1.2.3.tar.gz -/bogofilter-1.2.3.repack.tar.gz -/bogofilter-1.2.4.repack.tar.gz +*.rpm +Makefile.* +download.copr.fedorainfracloud.org.zip diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..586ae08 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +# Run as +# make -f /.copr/Makefile srpm outdir="" spec="" +srpm: + echo $(outdir) + rpmbuild --eval '%undefine scl' \ + --define "_sourcedir $(shell pwd)" \ + --define "_srcrpmdir $(shell pwd)" \ + --define "_rpmdir $(shell pwd)" \ + --define "_topdir $(shell pwd)" \ + --define "_builddir $(shell pwd)/build" \ + -bs "./bogofilter.spec" diff --git a/bogofilter-1.2.5.repack.tar.gz b/bogofilter-1.2.5.repack.tar.gz new file mode 100644 index 0000000..05950e1 Binary files /dev/null and b/bogofilter-1.2.5.repack.tar.gz differ diff --git a/bogofilter.spec b/bogofilter.spec index 19c48e3..071d5c3 100644 --- a/bogofilter.spec +++ b/bogofilter.spec @@ -1,6 +1,6 @@ Summary: Fast anti-spam filtering by Bayesian statistical analysis Name: bogofilter -Version: 1.2.4 +Version: 1.2.5 Release: 1%{?dist} License: GPLv2 Group: Applications/Internet @@ -10,12 +10,14 @@ URL: http://bogofilter.sourceforge.net/ # but due to bug 912694 which identified three files with license # problems the following steps are necessary to repack bogofilter # wget http://downloads.sourceforge.net/bogofilter/bogofilter-1.2.4.tar.gz -# tar xf bogofilter-1.2.4.tar.gz +# tar xf bogofilter-1.2.4.tar.gz # rm bogofilter-1.2.4/doc/bogofilter-SA-20[0-1][0,5]-0[1,2] # tar cf bogofilter-1.2.4.repack.tar.gz bogofilter-1.2.4 Source: bogofilter-%{version}.repack.tar.gz +BuildRequires: gcc BuildRequires: flex db4-devel gsl-devel BuildRequires: /usr/bin/iconv +BuildRequires: make %description Bogofilter is a Bayesian spam filter. In its normal mode of @@ -62,6 +64,11 @@ CFLAGS="%{optflags} -I%{_includedir}/libdb4" LDFLAGS="-L%{_libdir}/libdb4" %conf %{__install} -m644 doc/*.html rpm-doc/html/ %{__chmod} -x contrib/* +%{__rm} -v contrib/bogogrep.o +%{__rm} -rfv contrib/.deps + +%check +%{__make} %{?_smp_mflags} check %files bogoupgrade %defattr(-, root, root, 0755) @@ -82,6 +89,9 @@ CFLAGS="%{optflags} -I%{_includedir}/libdb4" LDFLAGS="-L%{_libdir}/libdb4" %conf %exclude %{_mandir}/man1/bogoupgrade* %changelog +* Sun Feb 18 2024 Matej Cepl - 1.2.5-1 +- New upstream version. + * Wed Apr 23 2014 Adrian Reber - 1.2.4-1 - updated to 1.2.4 (fixes #1084359) -- cgit