packages: dspam/dspam.spec - added skip_post_check_so (libraries use symbol...

megabajt megabajt at pld-linux.org
Mon May 16 17:37:26 CEST 2011


Author: megabajt                     Date: Mon May 16 15:37:26 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added skip_post_check_so (libraries use symbols from executable)
- force make -j1 for install to fix build
- release 5

---- Files affected:
packages/dspam:
   dspam.spec (1.95 -> 1.96) 

---- Diffs:

================================================================
Index: packages/dspam/dspam.spec
diff -u packages/dspam/dspam.spec:1.95 packages/dspam/dspam.spec:1.96
--- packages/dspam/dspam.spec:1.95	Mon May 16 15:31:04 2011
+++ packages/dspam/dspam.spec	Mon May 16 17:37:21 2011
@@ -16,7 +16,7 @@
 Summary(pl.UTF-8):	Biblioteka i MDA do bayesowskiego filtrowania spamu
 Name:		dspam
 Version:	3.9.0
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		Applications/Mail
 Source0:	http://downloads.sourceforge.net/project/dspam/dspam/%{name}-%{version}/%{name}-%{version}.tar.gz
@@ -50,6 +50,9 @@
 %define		_webapps	/etc/webapps
 %define		_webapp		%{name}
 
+# symbols are provided by dspam executable
+%define		skip_post_check_so	libdspam.so.7.0.0 lib(hash\|mysql\|pgsql\|sqlite3)_drv.so.7.0.0
+
 %description
 DSPAM (as in De-Spam) is an open-source project to create a new kind
 of anti-spam mechanism, and is currently effective as both a
@@ -320,7 +323,7 @@
 install -d $RPM_BUILD_ROOT{/var/run/dspam,/etc/{rc.d/init.d,sysconfig}} \
 	$RPM_BUILD_ROOT/var/lib/%{name}/{txt,data}
 
-%{__make} install \
+%{__make} -j1 install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dspam
@@ -380,6 +383,9 @@
 install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
 touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
 
+# cleanup
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/dspam/*.{a,la}
+
 %post
 /sbin/chkconfig --add dspam
 %service dspam restart "dspam daemon"
@@ -474,16 +480,14 @@
 %files driver-hash
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/css*
-%attr(755,root,root) %{_libdir}/dspam/libhash_drv.so.7.0.0
-%{_libdir}/dspam/libhash_drv.so
+%attr(755,root,root) %{_libdir}/dspam/libhash_drv.so*
 
 %if %{with mysql}
 %files driver-mysql
 %defattr(644,root,root,755)
 %doc doc/mysql_drv.txt src/tools.mysql_drv/*.sql
 %attr(640,root,mail) %config(noreplace) /var/lib/%{name}/mysql.data
-%attr(755,root,root) %{_libdir}/dspam/libmysql_drv.so.7.0.0
-%{_libdir}/dspam/libmysql_drv.so
+%attr(755,root,root) %{_libdir}/dspam/libmysql_drv.so*
 %endif
 
 %if %{with pgsql}
@@ -492,16 +496,14 @@
 %doc doc/pgsql_drv.txt src/tools.pgsql_drv/*.sql
 %attr(640,root,mail) %config(noreplace) /var/lib/%{name}/pgsql.data
 %attr(755,root,root) %{_bindir}/%{name}_pg2int8
-%attr(755,root,root) %{_libdir}/dspam/libpgsql_drv.so.7.0.0
-%{_libdir}/dspam/libpgsql_drv.so
+%attr(755,root,root) %{_libdir}/dspam/libpgsql_drv.so*
 %endif
 
 %if %{with sqlite}
 %files driver-sqlite3
 %defattr(644,root,root,755)
 %doc doc/sqlite_drv.txt
-%attr(755,root,root) %{_libdir}/dspam/libsqlite3_drv.so.7.0.0
-%{_libdir}/dspam/libsqlite3_drv.so
+%attr(755,root,root) %{_libdir}/dspam/libsqlite3_drv.so*
 %endif
 
 %files webui
@@ -526,6 +528,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.96  2011/05/16 15:37:21  megabajt
+- added skip_post_check_so (libraries use symbols from executable)
+- force make -j1 for install to fix build
+- release 5
+
 Revision 1.95  2011/05/16 13:31:04  arekm
 - release 4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dspam/dspam.spec?r1=1.95&r2=1.96&f=u



More information about the pld-cvs-commit mailing list