From 953a2e5a1b0e7686862c7d0bf9acdbfd5923c4ff Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: May 15 2013 05:50:30 +0000 Subject: import libgexiv2-0.5.0-7.el7.src.rpm --- diff --git a/.libgexiv2.metadata b/.libgexiv2.metadata new file mode 100644 index 0000000..6a3f758 --- /dev/null +++ b/.libgexiv2.metadata @@ -0,0 +1 @@ +6550713178c12e29d61e18d90f8083bae70b1c02 SOURCES/libgexiv2-0.5.0.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-pkgconf.patch b/SOURCES/libgexiv2-pkgconf.patch new file mode 100644 index 0000000..e948c05 --- /dev/null +++ b/SOURCES/libgexiv2-pkgconf.patch @@ -0,0 +1,13 @@ +diff -up libgexiv2-0.4.1/gexiv2.m4.pkgconfig libgexiv2-0.4.1/gexiv2.m4 +--- libgexiv2-0.4.1/gexiv2.m4.pkgconfig 2012-03-28 17:41:52.000000000 -0500 ++++ libgexiv2-0.4.1/gexiv2.m4 2012-05-03 08:07:39.951487246 -0500 +@@ -5,7 +5,7 @@ includedir=${prefix}/include + + 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: _VERSION_ + Libs: -L${libdir} -lgexiv2 + Cflags: -I${includedir}/gexiv2 -I${libdir}/gexiv2/include + diff --git a/SPECS/libgexiv2.spec b/SPECS/libgexiv2.spec new file mode 100644 index 0000000..76bcc2d --- /dev/null +++ b/SPECS/libgexiv2.spec @@ -0,0 +1,191 @@ +Name: libgexiv2 +Version: 0.5.0 +Release: 7%{?dist} +Summary: Gexiv2 is a GObject-based wrapper around the Exiv2 library + +Group: System Environment/Libraries +License: GPLv2+ +URL: http://trac.yorba.org/wiki/gexiv2 +Source0: http://yorba.org/download/gexiv2/0.5/%{name}-%{version}.tar.xz +Patch0: %{name}-pkgconf.patch + +BuildRequires: exiv2-devel +BuildRequires: gobject-introspection-devel +BuildRequires: libtool +BuildRequires: python-devel +BuildRequires: pygobject3-base +%if !0%{?rhel} +BuildRequires: python3-devel +BuildRequires: python3-gobject +%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} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: vala + +%description devel +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} +Requires: pygobject3-base + +%description python2 +This package contains the python2 bindings for %{name} + +%if !0%{?rhel} +%package python3 +Summary: Python3 bindings for %{name} +Requires: %{name} = %{version}-%{release} +Requires: python3-gobject + +%description python3 +This package contains the python3 bindings for %{name} +%endif + +%prep +%setup -q +%patch0 -p1 + +%build +CFLAGS="%{optflags}"; export CFLAGS +CXXFLAGS="%{optflags}"; export CXXFLAGS +FFLAGS="%{optflags} -I/usr/lib64/gfortran/modules"; export FFLAGS +LDFLAGS="-Wl,-z,relro"; export LDFLAGS + +# it is not an autotool generated configure script +./configure --release --enable-introspection --prefix=/usr +make %{?_smp_mflags} + +%install +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 {} ';' + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%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/ +%{_libdir}/libgexiv2.so +%{_libdir}/pkgconfig/gexiv2.pc +%{_datadir}/vala/vapi/gexiv2.vapi + + +%files python2 +%{python_sitearch}/gi/overrides/GExiv2.py* + +%if !0%{?rhel} +%files python3 +%{python3_sitearch}/gi/overrides/GExiv2.py +%{python3_sitearch}/gi/overrides/__pycache__/GExiv2* +%endif + +%changelog +* 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