[canl-c++/el5] Update to version 1.0.1

Mattias Ellert ellert at fedoraproject.org
Thu Nov 28 14:46:59 UTC 2013


commit 9d3507cc222b1e982a7c489b977f241d8cabc417
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date:   Thu Nov 28 15:45:24 2013 +0100

    Update to version 1.0.1
    
    - Add python bindings package

 canl-c++.spec |   35 +++++++++++++++++++++++++++++++++--
 sources       |    2 +-
 2 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/canl-c++.spec b/canl-c++.spec
index 026b22b..3e5ff36 100644
--- a/canl-c++.spec
+++ b/canl-c++.spec
@@ -1,6 +1,14 @@
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+%if %{?fedora}%{!?fedora:0} >= 7 || %{?rhel}%{!?rhel:0} >= 6
+%global python_bindings 1
+%else
+%global python_bindings 0
+%endif
+
 Name:		canl-c++
-Version:	1.0.0
-Release:	3%{?dist}
+Version:	1.0.1
+Release:	1%{?dist}
 Summary:	EMI Common Authentication library - bindings for C++
 
 Group:		System Environment/Libraries
@@ -18,6 +26,10 @@ BuildRequires:	libdb-cxx-devel
 %else
 BuildRequires:	db4-devel
 %endif
+%if %{python_bindings}
+BuildRequires:	python-devel
+BuildRequires:	swig
+%endif
 
 %description
 This is the C++ part of the EMI caNl -- the Common Authentication
@@ -32,6 +44,16 @@ Requires:	%{name}%{?_isa} = %{version}-%{release}
 This package contains development libraries and header files for EMI caNl
 C++ bindings.
 
+%if %{python_bindings}
+%package python
+Summary:	EMI Authentication Library c++ python bindings 
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description python
+EMI Authentication Library C++ python bindings.
+%endif
+
 %prep
 %setup -q
 
@@ -66,7 +88,16 @@ rm -rf %{buildroot}
 %{_includedir}/%{name}/canlxx.h
 %{_libdir}/pkgconfig/%{name}.pc
 
+%if %{python_bindings}
+%files python
+%{python_sitearch}/canl
+%endif
+
 %changelog
+* Thu Nov 28 2013 Mattias Ellert <mattias.ellert at fysast.uu.se> - 1.0.1-1
+- Update to version 1.0.1
+- Add python bindings package
+
 * Sat Jul 27 2013 Mattias Ellert <mattias.ellert at fysast.uu.se> - 1.0.0-3
 - Fix Group tag
 - Remove defattr
diff --git a/sources b/sources
index 8826afc..514dae1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-724bd91e8ebf8bb0c40a159d926bee13  canl-c++-1.0.0.tar.gz
+f58048e49be363c6c6cd4010506edc7b  canl-c++-1.0.1.tar.gz


More information about the scm-commits mailing list