SPECS: synce-librapi2.spec - added python bcond - added TODO - packaged BUG...

sls sls at pld-linux.org
Sun Oct 19 00:49:11 CEST 2008


Author: sls                          Date: Sat Oct 18 22:49:11 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added python bcond
- added TODO
- packaged BUGS ChangeLog

---- Files affected:
SPECS:
   synce-librapi2.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: SPECS/synce-librapi2.spec
diff -u SPECS/synce-librapi2.spec:1.24 SPECS/synce-librapi2.spec:1.25
--- SPECS/synce-librapi2.spec:1.24	Fri Oct 17 19:31:16 2008
+++ SPECS/synce-librapi2.spec	Sun Oct 19 00:49:05 2008
@@ -1,4 +1,10 @@
 # $Revision$, $Date$
+# TODO:
+#	rm libstdc++-devel dependency - required only for tests programs
+#
+# Conditional build:
+%bcond_without	python	# build without python bindings
+#
 Summary:	SynCE RAPI library
 Summary(pl.UTF-8):	Biblioteka SynCE RAPI
 Name:		synce-librapi2
@@ -12,8 +18,11 @@
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1.4
 BuildRequires:	libtool
+BuildRequires:	libstdc++-devel
+%if %{with python}
 BuildRequires:	python-Pyrex
 BuildRequires:	python-devel
+%endif
 BuildRequires:	rpmbuild(macros) >= 1.213
 BuildRequires:	synce-libsynce-devel >= %{version}
 %requires_eq_to synce-libsynce synce-libsynce-devel
@@ -85,7 +94,7 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{py_sitedir}/pyrapi2.{la,a}
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/pyrapi2.{la,a}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -95,7 +104,7 @@
 
 %files
 %defattr(644,root,root,755)
-%doc README* TODO
+%doc BUGS ChangeLog README* TODO
 %attr(755,root,root) %{_bindir}/pcp
 %attr(755,root,root) %{_bindir}/pkillall
 %attr(755,root,root) %{_bindir}/pls
@@ -128,9 +137,11 @@
 %defattr(644,root,root,755)
 %{_libdir}/librapi.a
 
+%if %{with python}
 %files -n python-pyrapi2
 %defattr(644,root,root,755)
 %{py_sitedir}/pyrapi2.so
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -138,6 +149,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2008/10/18 22:49:05  sls
+- added python bcond
+- added TODO
+- packaged BUGS ChangeLog
+
 Revision 1.24  2008/10/17 17:31:16  megabajt
 - release 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/synce-librapi2.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list