Blame SPECS/libgexiv2.spec

953a2e
Name:           libgexiv2
81a31a
Version:        0.10.4
81a31a
Release:        2%{?dist}
953a2e
Summary:        Gexiv2 is a GObject-based wrapper around the Exiv2 library
953a2e
953a2e
License:        GPLv2+
953a2e
URL:            http://trac.yorba.org/wiki/gexiv2 
81a31a
Source0:        https://download.gnome.org/sources/gexiv2/0.10/gexiv2-%{version}.tar.xz
953a2e
Patch0:         %{name}-pkgconf.patch
953a2e
953a2e
BuildRequires:  exiv2-devel
953a2e
BuildRequires:  gobject-introspection-devel
953a2e
BuildRequires:  libtool
81a31a
BuildRequires:  python2-devel
81a31a
BuildRequires:  python-gobject-base
81a31a
81a31a
# For tests
81a31a
BuildRequires:  vala
81a31a
953a2e
%if !0%{?rhel}
953a2e
BuildRequires:  python3-devel
81a31a
BuildRequires:  python3-gobject-base
953a2e
%endif
953a2e
953a2e
%description
953a2e
libgexiv2 is a GObject-based wrapper around the Exiv2 library. 
953a2e
It makes the basic features of Exiv2 available to GNOME applications.
953a2e
953a2e
953a2e
%package        devel
953a2e
Summary:        Development files for %{name}
81a31a
Requires:       %{name}%{?_isa} = %{version}-%{release}
953a2e
953a2e
%description    devel
953a2e
The %{name}-devel package contains libraries and header files for
953a2e
developing applications that use %{name}.
953a2e
81a31a
%package -n     python2-gexiv2
81a31a
Summary:        Python2 bindings for %{name}
81a31a
Requires:       %{name}%{?_isa} = %{version}-%{release}
81a31a
Requires:       python-gobject-base%{?_isa}
81a31a
# For upgrade path from F24
81a31a
Provides:       libgexiv2-python2 = %{name}-%{version}
81a31a
Obsoletes:      libgexiv2-python2 < 0.10.4
953a2e
81a31a
%description -n python2-gexiv2
953a2e
This package contains the python2 bindings for %{name}
953a2e
953a2e
%if !0%{?rhel}
81a31a
%package -n     python3-gexiv2
81a31a
Summary:        Python3 bindings for %{name}
81a31a
Requires:       %{name}%{?_isa} = %{version}-%{release}
81a31a
Requires:       python3-gobject-base%{?_isa}
81a31a
# For upgrade path from F24
81a31a
Provides:       libgexiv2-python3 = %{name}-%{version}
81a31a
Obsoletes:      libgexiv2-python3 < 0.10.4
81a31a
81a31a
%description -n python3-gexiv2
953a2e
This package contains the python3 bindings for %{name}
953a2e
%endif
953a2e
953a2e
%prep
81a31a
%setup -q -n gexiv2-%{version}
953a2e
%patch0 -p1
953a2e
953a2e
%build
81a31a
%configure --enable-tests --enable-introspection --enable-static=no --enable-shared=yes
81a31a
%make_build
953a2e
953a2e
%install
81a31a
%make_install
953a2e
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
81a31a
81a31a
# move introspection typelib to correct location
81a31a
mkdir -p $RPM_BUILD_ROOT%{_libdir}/girepository-1.0
81a31a
mv $RPM_BUILD_ROOT%{_datadir}/gir-1.0/GExiv2-0.10.typelib \
81a31a
   $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/GExiv2-0.10.typelib
81a31a
81a31a
# Can't get this to work at the moment
81a31a
# https://bugzilla.gnome.org/show_bug.cgi?id=723790
81a31a
#%check
81a31a
#make tests
953a2e
953a2e
953a2e
%post -p /sbin/ldconfig
953a2e
953a2e
%postun -p /sbin/ldconfig
953a2e
953a2e
953a2e
%files
81a31a
%license COPYING
81a31a
%doc AUTHORS THANKS README
81a31a
%{_libdir}/libgexiv2.so.2*
81a31a
%{_libdir}/girepository-1.0/GExiv2-0.10.typelib
953a2e
953a2e
%files devel
953a2e
%{_includedir}/gexiv2/
81a31a
%{_datadir}/gir-1.0/GExiv2-0.10.gir
953a2e
%{_libdir}/libgexiv2.so
953a2e
%{_libdir}/pkgconfig/gexiv2.pc
81a31a
%dir %{_datadir}/vala
81a31a
%dir %{_datadir}/vala/vapi
953a2e
%{_datadir}/vala/vapi/gexiv2.vapi
953a2e
81a31a
%files -n python2-gexiv2
81a31a
%{python2_sitearch}/gi/overrides/GExiv2.py*
953a2e
953a2e
%if !0%{?rhel}
81a31a
%files -n python3-gexiv2
953a2e
%{python3_sitearch}/gi/overrides/GExiv2.py
953a2e
%{python3_sitearch}/gi/overrides/__pycache__/GExiv2*
953a2e
%endif
953a2e
953a2e
%changelog
81a31a
* Fri May 19 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.10.4-2
81a31a
- Add Provides to retain compatibility
81a31a
  Resolves: rhbz#1387004
81a31a
81a31a
* Thu Feb 23 2017 Matthias Clasen <mclasen@redhat.com> - 0.10.4-1
81a31a
- Rebase to 0.10.4
81a31a
  Resolves: rhbz#1387004
81a31a
ec7259
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.5.0-9
ec7259
- Mass rebuild 2014-01-24
ec7259
ec7259
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.0-8
ec7259
- Mass rebuild 2013-12-27
ec7259
953a2e
* Wed May 08 2013 Richard Hughes <richard@hughsie.com> 0.5.0-7
953a2e
- RHEL7 does not have python3
953a2e
953a2e
* Wed Mar 20 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-6
953a2e
- Fix requires
953a2e
953a2e
* Wed Mar 20 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-5
953a2e
- Fix python bindings generation
953a2e
- Add new subpackages for python2,3 bindings
953a2e
953a2e
* Tue Mar 19 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-4
953a2e
- Add patch to remove overlinking rhbz#818587
953a2e
953a2e
* Mon Mar 11 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-3
953a2e
- Enable introspection for py support
953a2e
- add new files for introspection
953a2e
953a2e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
953a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
953a2e
953a2e
* Sun Jan 06 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-1
953a2e
- Update to 0.5.0
953a2e
- rhbz#890402
953a2e
953a2e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
953a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
953a2e
953a2e
* Wed May 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 0.4.1-2
953a2e
- rebuild (exiv2)
953a2e
953a2e
* Tue Apr 03 2012 Kalev Lember <kalevlember@gmail.com> - 0.4.1-1
953a2e
- Update to 0.4.1
953a2e
953a2e
* Thu Feb 23 2012 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.91-1
953a2e
- Update to 0.3.91
953a2e
- rhbz #796278
953a2e
- remove patches
953a2e
953a2e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-4
953a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
953a2e
953a2e
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.2.2-3
953a2e
- rebuild (exiv2)
953a2e
953a2e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2
953a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
953a2e
953a2e
* Sat Jan 01 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.2.2-1
953a2e
- 0.2.2
953a2e
- exiv2-0.21 patch
953a2e
953a2e
* Tue Aug 24 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.0-1
953a2e
- update to latest upstream release
953a2e
953a2e
* Sun Aug 08 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.90-1
953a2e
- update to latest upstream release
953a2e
953a2e
* Tue Jul 13 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.0-1
953a2e
- update to latest upstream release
953a2e
953a2e
* Mon Jun 14 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.91-2
953a2e
- changed file section so package owns the directory containing headers too
953a2e
953a2e
* Fri Jun 11 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.91-1
953a2e
- updated to latest release
953a2e
- removed patch - it was included in this release
953a2e
953a2e
* Sat Jun 05 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.90-5
953a2e
- changed configure macro as per bug report comment
953a2e
953a2e
* Sat Jun 05 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.90-4
953a2e
- changed configure portion
953a2e
- added Requires:  vala for devel
953a2e
- made the file section more precise
953a2e
- bugzilla #599097 
953a2e
- changed patch to include a default LIB setting
953a2e
953a2e
* Fri Jun 04 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.90-3
953a2e
- patched makefile
953a2e
953a2e
* Thu Jun 03 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.90-2
953a2e
- some fixes in spec
953a2e
- moved *.vapi to devel
953a2e
- removed INSTALL from doc
953a2e
- added comment to yorba ticket link
953a2e
- corrected typo in description
953a2e
953a2e
* Wed Jun 02 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.0.90-1
953a2e
- initial rpmbuild