Browse Source

libgexiv2: update to 0.10.8

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11815 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 5 years ago
parent
commit
2658d7a804
1 changed files with 41 additions and 11 deletions
  1. 41 11
      lib/libg/libgexiv2/libgexiv2-vl.spec

+ 41 - 11
lib/libg/libgexiv2/libgexiv2-vl.spec

@@ -1,7 +1,7 @@
 Name:           libgexiv2
 Summary:        Gexiv2 is a GObject-based wrapper around the Exiv2 library
 Summary(ja):    Exiv2 ライブラリの GObject ベースのラッパー
-Version:        0.10.6
+Version:        0.10.8
 Release:        1%{?_dist_release}
 
 Group:          System Environment/Libraries
@@ -19,6 +19,14 @@ BuildRequires:  expat-devel
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  libtool
 
+BuildRequires:  vala-devel vala-tools
+BuildRequires:  python-devel
+BuildRequires:  pygobject3
+BuildRequires:  python3-devel
+BuildRequires:  python3-pygobject
+BuildRequires:  python3-rpm-macros
+
+
 %description
 libgexiv2 is a GObject-based wrapper around the Exiv2 library.
 It makes the basic features of Exiv2 available to GNOME applications.
@@ -40,6 +48,22 @@ Requires:       glib2-devel
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+%package -n     python-gexiv2
+Summary:        Python2 bindings for %{name}
+Requires:       %{name} = %{version}-%{release}
+Requires:       pygobject3
+
+%description -n python-gexiv2
+This package contains the python bindings for %{name}
+
+%package -n     python3-gexiv2
+Summary:        Python3 bindings for %{name}
+Requires:       %{name} = %{version}-%{release}
+Requires:       python3-pygobject
+
+%description -n python3-gexiv2
+This package contains the python3 bindings for %{name}
+
 
 %prep
 %setup -q -n gexiv2-%{version}
@@ -48,23 +72,19 @@ developing applications that use %{name}.
 ## configure fails with the error:
 ## configure: Invalid argument --program-prefix=
 ## http://trac.yorba.org:8000/ticket/2001
-
-echo '%{configure}' | sed '/--program-prefix=/d' >build.tmp
-echo 'make %{?_smp_mflags}' >>build.tmp
+echo '%configure' |  sed '/--program-prefix=/d' > build.tmp
+echo 'make %{?_smp_mflags}' >> build.tmp
 sh build.tmp
 
 %install
-%{__rm} -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib}
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{make_install}
+find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} ';'
 
 %clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
+%{__rm} -rf ${RPM_BUILD_ROOT}
 
 %post -p %{_syssbindir}/ldconfig
-
 %postun -p %{_syssbindir}/ldconfig
 
 
@@ -83,8 +103,18 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
 %{_datadir}/gtk-doc/
 %{_datadir}/vala/vapi/gexiv2.vapi
 
+%files -n python-gexiv2
+%{python_sitearch}/gi/overrides/GExiv2.py*
+
+%files -n python3-gexiv2
+%{python3_sitearch}/gi/overrides/GExiv2.py
+
 
 %changelog
+* Mon Oct 08 2018 Toshiaki Ara <ara_t@384.jp> 0.10.8-1
+- update to 0.10.8
+- add new subpackages for python2/python3 bindings
+
 * Tue Oct 02 2018 Toshiaki Ara <ara_t@384.jp> 0.10.6-1
 - update to 0.10.6