From 163a423ac23798346e5cb0f1cfa9bcb6b869ddc4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:15:53 +0000 Subject: import libgexiv2-0.10.4-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbe1da5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gexiv2-0.10.4.tar.xz diff --git a/.libgexiv2.metadata b/.libgexiv2.metadata new file mode 100644 index 0000000..f7c1709 --- /dev/null +++ b/.libgexiv2.metadata @@ -0,0 +1 @@ +bfb8e3d0fb76cef04c13eb9dea1988af485ab2d9 SOURCES/gexiv2-0.10.4.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libgexiv2-Adapt-to-Exiv2-BasicIo-API-change.patch b/SOURCES/libgexiv2-Adapt-to-Exiv2-BasicIo-API-change.patch new file mode 100644 index 0000000..45ba96d --- /dev/null +++ b/SOURCES/libgexiv2-Adapt-to-Exiv2-BasicIo-API-change.patch @@ -0,0 +1,45 @@ +From d0d8ccd051edf0691a6a309143979507fe29c466 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray +Date: Wed, 10 May 2017 17:22:33 +0200 +Subject: [PATCH] Adapt to Exiv2::BasicIo API change + +Exiv2::BasicIo::size now returns a size_t instead of long: +http://dev.exiv2.org/issues/1175 + +Bump minimum Exiv2 version to 0.26. + +https://bugzilla.gnome.org/show_bug.cgi?id=782449 +--- + gexiv2/gexiv2-stream-io.cpp | 2 +- + gexiv2/gexiv2-stream-io.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gexiv2/gexiv2-stream-io.cpp b/gexiv2/gexiv2-stream-io.cpp +index 0ae33241f31a..39445013c13b 100644 +--- a/gexiv2/gexiv2-stream-io.cpp ++++ b/gexiv2/gexiv2-stream-io.cpp +@@ -142,7 +142,7 @@ long StreamIo::tell () const { + return cb->Position (cb->handle); + } + +-long StreamIo::size () const { ++size_t StreamIo::size () const { + return cb->Length (cb->handle); + } + +diff --git a/gexiv2/gexiv2-stream-io.h b/gexiv2/gexiv2-stream-io.h +index 76621a9e520b..430ac01c9e3d 100644 +--- a/gexiv2/gexiv2-stream-io.h ++++ b/gexiv2/gexiv2-stream-io.h +@@ -39,7 +39,7 @@ public: + virtual Exiv2::byte* mmap (bool isWriteable = false); + virtual int munmap (); + virtual long tell () const; +- virtual long size () const; ++ virtual size_t size () const; + virtual bool isopen () const; + virtual int error () const; + virtual bool eof () const; +-- +2.9.3 + diff --git a/SOURCES/libgexiv2-pkgconf.patch b/SOURCES/libgexiv2-pkgconf.patch new file mode 100644 index 0000000..978badc --- /dev/null +++ b/SOURCES/libgexiv2-pkgconf.patch @@ -0,0 +1,12 @@ +diff -up gexiv2-0.10.4/gexiv2.pc.in.pkgconfig gexiv2-0.10.4/gexiv2.pc.in +--- gexiv2-0.10.4/gexiv2.pc.in.pkgconfig 2017-02-23 13:46:04.475186766 -0500 ++++ gexiv2-0.10.4/gexiv2.pc.in 2017-02-23 13:46:38.078412322 -0500 +@@ -5,7 +5,7 @@ includedir=@includedir@ + + Name: GExiv2 + Description: GObject bindings for exiv2 +-Requires: exiv2 glib-2.0 gobject-2.0 ++Requires.private: exiv2 glib-2.0 gobject-2.0 + Version: @GEXIV2_VERSION@ + Libs: -L${libdir} -l@PACKAGE_NAME@ + Cflags: -I${includedir} diff --git a/SPECS/libgexiv2.spec b/SPECS/libgexiv2.spec new file mode 100644 index 0000000..a6b51a3 --- /dev/null +++ b/SPECS/libgexiv2.spec @@ -0,0 +1,231 @@ +Name: libgexiv2 +Version: 0.10.4 +Release: 4%{?dist} +Summary: Gexiv2 is a GObject-based wrapper around the Exiv2 library + +License: GPLv2+ +URL: http://trac.yorba.org/wiki/gexiv2 +Source0: https://download.gnome.org/sources/gexiv2/0.10/gexiv2-%{version}.tar.xz + +Patch0: %{name}-pkgconf.patch + +# https://bugzilla.redhat.com/show_bug.cgi?id=1486570 +Patch1: %{name}-Adapt-to-Exiv2-BasicIo-API-change.patch + +BuildRequires: exiv2-devel >= 0.26 +BuildRequires: gobject-introspection-devel +BuildRequires: libtool +BuildRequires: python2-devel +BuildRequires: python-gobject-base + +# For tests +BuildRequires: vala + +%if !0%{?rhel} +BuildRequires: python3-devel +BuildRequires: python3-gobject-base +%endif + +%description +libgexiv2 is a GObject-based wrapper around the Exiv2 library. +It makes the basic features of Exiv2 available to GNOME applications. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package -n python2-gexiv2 +Summary: Python2 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python-gobject-base%{?_isa} +# For upgrade path from F24 +Provides: libgexiv2-python2 = %{name}-%{version} +Obsoletes: libgexiv2-python2 < 0.10.4 + +%description -n python2-gexiv2 +This package contains the python2 bindings for %{name} + +%if !0%{?rhel} +%package -n python3-gexiv2 +Summary: Python3 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python3-gobject-base%{?_isa} +# For upgrade path from F24 +Provides: libgexiv2-python3 = %{name}-%{version} +Obsoletes: libgexiv2-python3 < 0.10.4 + +%description -n python3-gexiv2 +This package contains the python3 bindings for %{name} +%endif + +%prep +%setup -q -n gexiv2-%{version} +%patch0 -p1 +%patch1 -p1 + +%build +%configure --enable-tests --enable-introspection --enable-static=no --enable-shared=yes +%make_build + +%install +%make_install +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +# move introspection typelib to correct location +mkdir -p $RPM_BUILD_ROOT%{_libdir}/girepository-1.0 +mv $RPM_BUILD_ROOT%{_datadir}/gir-1.0/GExiv2-0.10.typelib \ + $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/GExiv2-0.10.typelib + +# Can't get this to work at the moment +# https://bugzilla.gnome.org/show_bug.cgi?id=723790 +#%check +#make tests + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%license COPYING +%doc AUTHORS THANKS README +%{_libdir}/libgexiv2.so.2* +%{_libdir}/girepository-1.0/GExiv2-0.10.typelib + +%files devel +%{_includedir}/gexiv2/ +%{_datadir}/gir-1.0/GExiv2-0.10.gir +%{_libdir}/libgexiv2.so +%{_libdir}/pkgconfig/gexiv2.pc +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/gexiv2.vapi + +%files -n python2-gexiv2 +%{python2_sitearch}/gi/overrides/GExiv2.py* + +%if !0%{?rhel} +%files -n python3-gexiv2 +%{python3_sitearch}/gi/overrides/GExiv2.py +%{python3_sitearch}/gi/overrides/__pycache__/GExiv2* +%endif + +%changelog +* Wed Oct 11 2017 Debarshi Ray - 0.10.4-4 +- Ensure that the new exiv2 soname is used during the build +- Adapt to Exiv2::BasicIo API change + Resolves: rhbz#1486570 + +* Tue Sep 19 2017 Richard Hughes - 0.10.4-3 +- Rebuild against the rebased exiv2 +- Resolves: rhbz#1486570 + +* Fri May 19 2017 Debarshi Ray - 0.10.4-2 +- Add Provides to retain compatibility + Resolves: rhbz#1387004 + +* Thu Feb 23 2017 Matthias Clasen - 0.10.4-1 +- Rebase to 0.10.4 + Resolves: rhbz#1387004 + +* Fri Jan 24 2014 Daniel Mach - 0.5.0-9 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 0.5.0-8 +- Mass rebuild 2013-12-27 + +* Wed May 08 2013 Richard Hughes 0.5.0-7 +- RHEL7 does not have python3 + +* Wed Mar 20 2013 Ankur Sinha 0.5.0-6 +- Fix requires + +* Wed Mar 20 2013 Ankur Sinha 0.5.0-5 +- Fix python bindings generation +- Add new subpackages for python2,3 bindings + +* Tue Mar 19 2013 Ankur Sinha 0.5.0-4 +- Add patch to remove overlinking rhbz#818587 + +* Mon Mar 11 2013 Ankur Sinha 0.5.0-3 +- Enable introspection for py support +- add new files for introspection + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jan 06 2013 Ankur Sinha 0.5.0-1 +- Update to 0.5.0 +- rhbz#890402 + +* Thu Jul 19 2012 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 02 2012 Rex Dieter - 0.4.1-2 +- rebuild (exiv2) + +* Tue Apr 03 2012 Kalev Lember - 0.4.1-1 +- Update to 0.4.1 + +* Thu Feb 23 2012 Ankur Sinha - 0.3.91-1 +- Update to 0.3.91 +- rhbz #796278 +- remove patches + +* Fri Jan 13 2012 Fedora Release Engineering - 0.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Oct 14 2011 Rex Dieter - 0.2.2-3 +- rebuild (exiv2) + +* Tue Feb 08 2011 Fedora Release Engineering - 0.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jan 01 2011 Rex Dieter - 0.2.2-1 +- 0.2.2 +- exiv2-0.21 patch + +* Tue Aug 24 2010 Ankur Sinha - 0.2.0-1 +- update to latest upstream release + +* Sun Aug 08 2010 Ankur Sinha - 0.1.90-1 +- update to latest upstream release + +* Tue Jul 13 2010 Ankur Sinha - 0.1.0-1 +- update to latest upstream release + +* Mon Jun 14 2010 Ankur Sinha - 0.0.91-2 +- changed file section so package owns the directory containing headers too + +* Fri Jun 11 2010 Ankur Sinha - 0.0.91-1 +- updated to latest release +- removed patch - it was included in this release + +* Sat Jun 05 2010 Ankur Sinha - 0.0.90-5 +- changed configure macro as per bug report comment + +* Sat Jun 05 2010 Ankur Sinha - 0.0.90-4 +- changed configure portion +- added Requires: vala for devel +- made the file section more precise +- bugzilla #599097 +- changed patch to include a default LIB setting + +* Fri Jun 04 2010 Ankur Sinha - 0.0.90-3 +- patched makefile + +* Thu Jun 03 2010 Ankur Sinha - 0.0.90-2 +- some fixes in spec +- moved *.vapi to devel +- removed INSTALL from doc +- added comment to yorba ticket link +- corrected typo in description + +* Wed Jun 02 2010 Ankur Sinha - 0.0.90-1 +- initial rpmbuild