[libgexiv2] * Completed py bindings in spec and created subpkgs

Ankur Sinha ankursinha at fedoraproject.org
Tue Mar 19 15:34:12 UTC 2013


commit 54fad3ef63e1f3168fe0d8a6141900900b3edcda
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur at gmail.com>
Date:   Wed Mar 20 02:31:59 2013 +1100

    * Completed py bindings in spec and created subpkgs
    
    The spec wasn't complete enough and didn't create py bindings correctly.
    I've made required changes and we now have both py2 and py3 bindings in
    their respective subpackages libgexiv2-python{2,3}.
    
    I thank Daniel P. Berrange for pointing out the missing binding files.

 libgexiv2.spec |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/libgexiv2.spec b/libgexiv2.spec
index 25d2136..a0bc526 100644
--- a/libgexiv2.spec
+++ b/libgexiv2.spec
@@ -1,6 +1,6 @@
 Name:           libgexiv2
 Version:        0.5.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Gexiv2 is a GObject-based wrapper around the Exiv2 library
 
 Group:          System Environment/Libraries
@@ -11,6 +11,7 @@ Patch0:         %{name}-pkgconf.patch
 
 
 BuildRequires:  exiv2-devel gobject-introspection-devel libtool
+BuildRequires:  python-devel python3-devel pygobject3-base python3-gobject
 
 %description
 libgexiv2 is a GObject-based wrapper around the Exiv2 library. 
@@ -27,6 +28,19 @@ Requires:       vala
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+%package    python2
+Summary:    Python2 bindings for %{name}
+Requires:   %{name} = %{version}-%{release}
+
+%description    python2
+This package contains the python2 bindings for %{name}
+
+%package    python3
+Summary:    Python3 bindings for %{name}
+Requires:   %{name} = %{version}-%{release}
+
+%description    python3
+This package contains the python3 bindings for %{name}
 
 %prep
 %setup -q
@@ -56,6 +70,8 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
 %files
 %doc AUTHORS COPYING MAINTAINERS 
 %{_libdir}/libgexiv2.so.*
+%{_datadir}/gir-1.0/GExiv2-0.4.gir
+%{_libdir}/girepository-1.0/GExiv2-0.4.typelib
 
 %files devel
 %{_includedir}/gexiv2/
@@ -63,11 +79,19 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
 %{_libdir}/pkgconfig/gexiv2.pc
 %{_datadir}/vala/vapi/gexiv2.vapi
 
-%{_datadir}/gir-1.0/GExiv2-0.4.gir
-%{_libdir}/girepository-1.0/GExiv2-0.4.typelib
 
+%files python2
+%{python_sitearch}/gi/overrides/GExiv2.py*
+
+%files python3
+%{python3_sitearch}/gi/overrides/GExiv2.py
+%{python3_sitearch}/gi/overrides/__pycache__/GExiv2*
 
 %changelog
+* Wed Mar 20 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-5
+- Fix python bindings generation
+- Add new subpackages for python2,3 bindings
+
 * Tue Mar 19 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-4
 - Add patch to remove overlinking rhbz#818587
 


More information about the scm-commits mailing list