File libgexiv2.spec of Package libgexiv2
#
# spec file for package libgexiv2
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define tarname gexiv2
Name: libgexiv2
Version: 0.10.4
Release: 0
Summary: A GObject-based Exiv2 wrapper
License: GPL-2.0+
Group: Development/Libraries/C and C++
Url: https://wiki.gnome.org/Apps/Shotwell
Source: http://ftp.gnome.org/pub/gnome/sources/gexiv2/0.10/%{tarname}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM libgexiv2-fix-typelib-vapi-install.patch zaitor@opensuse.org -- Fix install dir of typelib and ensure vapi file is installed.
Patch0: libgexiv2-fix-typelib-vapi-install.patch
# PATCH-FIX-UPSTREAM get_orientation-Fix-abort-on-Minolta-meta-data.patch bgo#776233 kkaempf@suse.com -- Fix abort on Minolta meta-data
Patch1: get_orientation-Fix-abort-on-Minolta-meta-data.patch
BuildRequires: gcc-c++
BuildRequires: gobject-introspection
BuildRequires: libtool
BuildRequires: python-devel
BuildRequires: python-gobject
BuildRequires: python3-devel
BuildRequires: python3-gobject
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(vapigen)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
%package -n libgexiv2-2
Summary: A GObject-based Exiv2 wrapper
Group: System/Libraries
%description -n libgexiv2-2
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
%package -n typelib-1_0-GExiv2-0_10
Summary: A GObject-based Exiv2 wrapper - Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GExiv2-0_10
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package provides the GObject Introspection bindings for the
libgexiv2 library.
%package devel
Summary: A GObject-based Exiv2 wrapper -- Development Files
Group: Development/Libraries/C and C++
Requires: libgexiv2-2 = %{version}
%description devel
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
%package -n python-gexiv2
Summary: A GObject-based Exiv2 wrapper
Group: Development/Libraries/Python
Requires: python-gobject
%description -n python-gexiv2
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package provides the Python 2 bindings for the libgexiv2 library.
%package -n python3-gexiv2
Summary: A GObject-based Exiv2 wrapper
Group: Development/Libraries/Python
Requires: python3-gobject
%description -n python3-gexiv2
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package provides the Python 3 bindings for the libgexiv2 library.
%prep
%setup -q -n %{tarname}-%{version}
%patch0 -p1
%patch1 -p1
%build
# Needed for patch0
autoreconf -fiv
%configure --enable-introspection
make %{?_smp_mflags}
%install
%makeinstall LIB=%{_lib}
%__rm %{buildroot}%{_libdir}/libgexiv2.*a
%post -n libgexiv2-2 -p /sbin/ldconfig
%postun -n libgexiv2-2 -p /sbin/ldconfig
%files -n libgexiv2-2
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README THANKS
%{_libdir}/libgexiv2.so.*
%files -n typelib-1_0-GExiv2-0_10
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GExiv2-0.10.typelib
%files devel
%defattr(-,root,root)
%{_datadir}/gir-1.0/GExiv2-0.10.gir
%{_includedir}/gexiv2/
%{_libdir}/libgexiv2.so
%{_libdir}/pkgconfig/gexiv2.pc
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gexiv2.vapi
%files -n python-gexiv2
%defattr(-,root,root)
%{python_sitearch}/*
%files -n python3-gexiv2
%defattr(-,root,root)
%{python3_sitearch}/*
%changelog