Browse Source

bogofilter: rebuild with gsl-2.6

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12268 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 4 years ago
parent
commit
59e378619e
1 changed files with 38 additions and 33 deletions
  1. 38 33
      b/bogofilter/bogofilter-vl.spec

+ 38 - 33
b/bogofilter/bogofilter-vl.spec

@@ -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:  mecab-devel
 BuildRequires:  gsl-devel
 BuildRequires:  gsl-devel
 BuildRequires:  flex
 BuildRequires:  flex
@@ -45,42 +45,43 @@ export LIBS="`mecab-config --libs`"
 make install DESTDIR=$RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 
 %__cp -p %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
 %__cp -p %{buildroot}%{_sysconfdir}/bogofilter.cf.example \
-	%{buildroot}%{_sysconfdir}/bogofilter.cf
+      %{buildroot}%{_sysconfdir}/bogofilter.cf
 
 
 for n in xml html ; do
 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
 done
 
 
 #for d in contrib ; do
 #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
 #done
 %{__chmod} -x contrib/*
 %{__chmod} -x contrib/*
 
 
 for README in contrib randomtrain ; do
 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
 done
 
 
 # drop executable bit from contrib/* to avoid unneeded dependencies
 # drop executable bit from contrib/* to avoid unneeded dependencies
 #%{_bindir}/find %{buildroot}%{_datadir}/%{name}/contrib -type f \
 #%{_bindir}/find %{buildroot}%{_datadir}/%{name}/contrib -type f \
-#	-exec %__chmod -x '{}' \;
+#  -exec %__chmod -x '{}' \;
 
 
 %clean
 %clean
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 
 
+
 %files
 %files
 %defattr(-,root,root)
 %defattr(-,root,root)
 %doc AUTHORS COPYING INSTALL NEWS
 %doc AUTHORS COPYING INSTALL NEWS
@@ -110,7 +111,11 @@ done
 %{_mandir}/man1/bf_copy.1*
 %{_mandir}/man1/bf_copy.1*
 %{_mandir}/man1/bf_tar.1*
 %{_mandir}/man1/bf_tar.1*
 
 
+
 %changelog
 %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
 * Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 1.2.4-4
 - rebuild under gsl-2.4
 - rebuild under gsl-2.4