* 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.
This commit is contained in:
parent
a065cb6ef4
commit
54fad3ef63
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user