Minor spec file cleanup

This commit is contained in:
Kalev Lember 2016-08-17 11:33:36 +02:00
parent 5e79377957
commit d834cf45b9

View File

@ -3,12 +3,10 @@ Version: 0.10.4
Release: 1%{?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: https://download.gnome.org/sources/gexiv2/0.10/gexiv2-%{version}.tar.xz
Patch0: %{name}-pkgconf.patch
#Patch1: %{name}-%{version}-Makefile.patch
BuildRequires: exiv2-devel
BuildRequires: gobject-introspection-devel
@ -59,18 +57,14 @@ This package contains the python3 bindings for %{name}
%prep
%setup -q -n gexiv2-%{version}
%patch0 -p0
#%patch1 -p0
%build
%configure --enable-tests --enable-introspection --enable-static=no --enable-shared=yes
make %{?_smp_mflags}
%install
#make install DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib}
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
# move introspection typelib to correct location
mkdir -p $RPM_BUILD_ROOT%{_libdir}/girepository-1.0
@ -103,7 +97,6 @@ mv $RPM_BUILD_ROOT%{_datadir}/gir-1.0/GExiv2-0.10.typelib \
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gexiv2.vapi
%files python2
%{python_sitearch}/gi/overrides/GExiv2.py*