|
@@ -1,17 +1,17 @@
|
|
|
-Name: bogofilter
|
|
|
-Summary: fast anti-spam filtering by Bayesian statistical analysis
|
|
|
-Summary(ja): ベイジアン解析による高速アンチスパムフィルタリング
|
|
|
-Version: 1.2.4
|
|
|
-Release: 4%{?_dist_release}
|
|
|
-License: GPLv2
|
|
|
-Group: Applications/Internet
|
|
|
-URL: http://bogofilter.sourceforge.net/
|
|
|
-Source0: http://prdownloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.bz2
|
|
|
-Source999: filter-requires-bogofilter.sh
|
|
|
-Patch10: http://www.c-wind.com/bogofilter/bogofilter-%{version}+mecab-0.1.patch.gz
|
|
|
-
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: libdb-devel
|
|
|
+Name: bogofilter
|
|
|
+Summary: fast anti-spam filtering by Bayesian statistical analysis
|
|
|
+Summary(ja): ベイジアン解析による高速アンチスパムフィルタリング
|
|
|
+Version: 1.2.4
|
|
|
+Release: 5%{?_dist_release}
|
|
|
+License: GPLv2
|
|
|
+Group: Applications/Internet
|
|
|
+URL: http://bogofilter.sourceforge.net/
|
|
|
+Source0: http://prdownloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.bz2
|
|
|
+Source999: filter-requires-bogofilter.sh
|
|
|
+Patch10: http://www.c-wind.com/bogofilter/bogofilter-%{version}+mecab-0.1.patch.gz
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRequires: libdb-devel
|
|
|
BuildRequires: mecab-devel
|
|
|
BuildRequires: gsl-devel
|
|
|
BuildRequires: flex
|
|
@@ -45,42 +45,43 @@ export LIBS="`mecab-config --libs`"
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
%__cp -p %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
|
|
|
- %{buildroot}%{_sysconfdir}/bogofilter.cf
|
|
|
+ %{buildroot}%{_sysconfdir}/bogofilter.cf
|
|
|
|
|
|
for n in xml html ; do
|
|
|
- %__install -d -m755 .inst/$n
|
|
|
- %__install -p -m644 doc/*.$n .inst/$n
|
|
|
+ %__install -d -m755 .inst/$n
|
|
|
+ %__install -p -m644 doc/*.$n .inst/$n
|
|
|
done
|
|
|
|
|
|
#for d in contrib ; do
|
|
|
-# %__install -d -m755 %{buildroot}%{_datadir}/%{name}/$d
|
|
|
-# for f in $(%{_bindir}/find $d -maxdepth 1 -type f) ; do
|
|
|
-# case $f in
|
|
|
-# *.c|*.o|*.obj|*/Makefile*)
|
|
|
-# continue
|
|
|
-# ;;
|
|
|
-# *.1)
|
|
|
-# %__cp -p $f %{buildroot}%{_mandir}/man1
|
|
|
-# ;;
|
|
|
-# *)
|
|
|
-# %__cp -p $f %{buildroot}%{_datadir}/%{name}/$d
|
|
|
-# ;;
|
|
|
-# esac
|
|
|
-# done
|
|
|
+# %__install -d -m755 %{buildroot}%{_datadir}/%{name}/$d
|
|
|
+# for f in $(%{_bindir}/find $d -maxdepth 1 -type f) ; do
|
|
|
+# case $f in
|
|
|
+# *.c|*.o|*.obj|*/Makefile*)
|
|
|
+# continue
|
|
|
+# ;;
|
|
|
+# *.1)
|
|
|
+# %__cp -p $f %{buildroot}%{_mandir}/man1
|
|
|
+# ;;
|
|
|
+# *)
|
|
|
+# %__cp -p $f %{buildroot}%{_datadir}/%{name}/$d
|
|
|
+# ;;
|
|
|
+# esac
|
|
|
+# done
|
|
|
#done
|
|
|
%{__chmod} -x contrib/*
|
|
|
|
|
|
for README in contrib randomtrain ; do
|
|
|
- %__ln_s ../../%{name}/contrib/README.$README doc/README.$README
|
|
|
+ %__ln_s ../../%{name}/contrib/README.$README doc/README.$README
|
|
|
done
|
|
|
|
|
|
# drop executable bit from contrib/* to avoid unneeded dependencies
|
|
|
#%{_bindir}/find %{buildroot}%{_datadir}/%{name}/contrib -type f \
|
|
|
-# -exec %__chmod -x '{}' \;
|
|
|
+# -exec %__chmod -x '{}' \;
|
|
|
|
|
|
%clean
|
|
|
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%doc AUTHORS COPYING INSTALL NEWS
|
|
@@ -110,7 +111,11 @@ done
|
|
|
%{_mandir}/man1/bf_copy.1*
|
|
|
%{_mandir}/man1/bf_tar.1*
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Mon Oct 14 2019 Toshiaki Ara <ara_t@384.jp> 1.2.4-5
|
|
|
+- rebuild under gsl-2.6
|
|
|
+
|
|
|
* Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 1.2.4-4
|
|
|
- rebuild under gsl-2.4
|
|
|
|