rpms/pyxmlsec/devel pyxmlsec.spec,1.1,1.2

Lubomir Rintel lkundrak at fedoraproject.org
Sun Apr 19 10:39:42 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/pyxmlsec/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11548/devel

Modified Files:
	pyxmlsec.spec 
Log Message:
devel/clog


Index: pyxmlsec.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pyxmlsec/devel/pyxmlsec.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pyxmlsec.spec	16 Apr 2009 05:28:49 -0000	1.1
+++ pyxmlsec.spec	19 Apr 2009 10:39:12 -0000	1.2
@@ -1,4 +1,12 @@
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%bcond_without openssl
+%bcond_with nss
+%bcond_with gnutls
+
+# Sanity check
+%if %{?with_openssl}%{?with_gnutls}%{?with_nss} != 1
+%error Exactly one cryptography backend is needed. You may want to use --without openssl
+%endif
 
 Name:           pyxmlsec
 Version:        0.3.0
@@ -12,7 +20,7 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  python-devel
-BuildRequires:  xmlsec1-nss-devel
+BuildRequires:  xmlsec1-%{?with_openssl:openssl}%{?with_gnutls:gnutls}%{?with_nss:nss}-devel
 
 %description
 PyXMLSec is a set of Python bindings for the XML Security Library, a C
@@ -31,10 +39,8 @@
 
 
 %build
-# 1. OpenSSL
-# 2. GnuTLS
-# 3. NSS
-CFLAGS="%{optflags}" echo 3 |%{__python} setup.py build
+echo %{?with_openssl:1}%{?with_gnutls:2}%{?with_nss:3} |
+       CFLAGS="%{optflags}" %{__python} setup.py build
 
 
 %install
@@ -53,6 +59,9 @@
 
 
 %changelog
+* Sun Apr 19 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 0.3.0-3
+- bcond the cryptography backend, default to OpenSSL
+
 * Wed Apr 15 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 0.3.0-2
 - Fix AUTHORs file location for conversion (Marek Mahut)
 




More information about the scm-commits mailing list