packages: python3-bsddb3/python3-bsddb3.spec - allow running tests after bu...

wiget wiget at pld-linux.org
Sat Aug 1 19:30:17 CEST 2009


Author: wiget                        Date: Sat Aug  1 17:30:17 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- allow running tests after build
- remove tests from binary package
- release 2

---- Files affected:
packages/python3-bsddb3:
   python3-bsddb3.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/python3-bsddb3/python3-bsddb3.spec
diff -u packages/python3-bsddb3/python3-bsddb3.spec:1.4 packages/python3-bsddb3/python3-bsddb3.spec:1.5
--- packages/python3-bsddb3/python3-bsddb3.spec:1.4	Sat May  2 17:30:57 2009
+++ packages/python3-bsddb3/python3-bsddb3.spec	Sat Aug  1 19:30:12 2009
@@ -1,10 +1,12 @@
 # $Revision$, $Date$
+%bcond_with	tests	# enble tests
+#
 %define		pname	bsddb3
 Summary:	Python interface for BerkeleyDB
 Summary(pl.UTF-8):	Interfejs Pythona do BerkeleyDB
 Name:		python3-bsddb3
 Version:	4.7.6
-Release:	1
+Release:	2
 License:	BSD-like w/o adv. clause
 Group:		Development/Languages/Python
 Source0:	http://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz
@@ -14,7 +16,7 @@
 BuildRequires:  python3
 BuildRequires:	python3-modules
 BuildRequires:	python3-devel
-BuildRequires:	rpm-build-macros >= 1.507
+BuildRequires:	rpm-build-macros >= 1.523
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,6 +47,10 @@
 	--berkeley-db=%{_prefix} \
 	build
 
+%if %{with tests}
+python3 test.py
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 python3 -- setup.py install \
@@ -52,6 +58,7 @@
 	--optimize=2
 
 # shutup check-files
+rm -rf $RPM_BUILD_ROOT/%{py3_sitedir}/bsddb3/tests
 %py3_postclean
 
 %clean
@@ -61,10 +68,8 @@
 %defattr(644,root,root,755)
 %doc *.txt docs
 %dir %{py3_sitedir}/bsddb3
-%dir %{py3_sitedir}/bsddb3/tests
 %{py3_sitedir}/*.egg-info
 %{py3_sitedir}/bsddb3/*.py[co]
-%{py3_sitedir}/bsddb3/tests/*.py[co]
 %attr(755,root,root) %{py3_sitedir}/bsddb3/*.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -73,6 +78,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2009/08/01 17:30:12  wiget
+- allow running tests after build
+- remove tests from binary package
+- release 2
+
 Revision 1.4  2009/05/02 15:30:57  wiget
 - updated to 4.7.6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python3-bsddb3/python3-bsddb3.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list