SPECS: syck.spec - make without_python bcond (default is with python)
agaran
agaran at pld-linux.org
Sun Jan 13 17:45:24 CET 2008
Author: agaran Date: Sun Jan 13 16:45:24 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- make without_python bcond (default is with python)
---- Files affected:
SPECS:
syck.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/syck.spec
diff -u SPECS/syck.spec:1.12 SPECS/syck.spec:1.13
--- SPECS/syck.spec:1.12 Mon Nov 26 19:08:20 2007
+++ SPECS/syck.spec Sun Jan 13 17:45:18 2008
@@ -1,4 +1,5 @@
# $Revision$, $Date$
+%bcond_without python # do not compile python bindings
Summary: Library for reading and writing YAML in scripting languages
Summary(pl.UTF-8): Biblioteka do odczytu i zapisu YAML-a w językach skryptowych
Name: syck
@@ -13,8 +14,10 @@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
+%if %{with python}
BuildRequires: python-devel >= 1:2.5
BuildRequires: rpm-pythonprov
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -79,13 +82,16 @@
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure
+
%{__make} \
CFLAGS="%{rpmcflags} -fPIC"
+%if %{with python}
cd ext/python
env CFLAGS="%{rpmcflags} -fPIC" python setup.py build
cd ..
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -93,6 +99,7 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with python}
cd ext/python
python -- setup.py install \
--root=$RPM_BUILD_ROOT \
@@ -101,6 +108,7 @@
install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
mv $RPM_BUILD_ROOT%{py_sitedir}/{*.py[co],*.egg-info} $RPM_BUILD_ROOT%{py_sitescriptdir}
find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py | xargs rm -f
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -124,6 +132,7 @@
%defattr(644,root,root,755)
%{_libdir}/libsyck.a
+%if %{with python}
%files -n python-syck
%defattr(644,root,root,755)
%doc ext/python/tests
@@ -132,6 +141,7 @@
%{py_sitescriptdir}/ypath.py[co]
%{py_sitescriptdir}/Syck-*.egg-info
%{py_sitedir}/syck.so
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -139,6 +149,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2008-01-13 16:45:18 agaran
+- make without_python bcond (default is with python)
+
Revision 1.12 2007-11-26 18:08:20 qboosh
- more verbose files
- include COPYING in files (BSD license and D&R joke)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/syck.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list