summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-02-18 00:49:57 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-02-18 00:49:57 +0100
commit07584f5060ef6f5b59f2dc661fd8ce6ae94417ca (patch)
tree3a3d7ff6f9fac579121c3baabff175e43de84820
parent9eeb6456a38ee4348f140ac37b3f65c30d2609fd (diff)
downloadbogofilter_EL6-07584f5060ef6f5b59f2dc661fd8ce6ae94417ca.tar.gz
Update to 1.2.5. and SPEC file from src.fp.o.
-rw-r--r--.gitignore7
-rw-r--r--Makefile11
-rw-r--r--bogofilter-1.2.5.repack.tar.gzbin0 -> 1180342 bytes
-rw-r--r--bogofilter.spec14
4 files changed, 26 insertions, 6 deletions
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 <cloned_repodir>/.copr/Makefile srpm outdir="<outdir>" spec="<spec_path>"
+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
--- /dev/null
+++ b/bogofilter-1.2.5.repack.tar.gz
Binary files 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 <mcepl@suse.com> - 1.2.5-1
+- New upstream version.
+
* Wed Apr 23 2014 Adrian Reber <adrian@lisas.de> - 1.2.4-1
- updated to 1.2.4 (fixes #1084359)