Spec clean up for recent rpmbuild

None of this is needed with the version of rpm in current Fedora
releases.
This commit is contained in:
Kalev Lember 2012-04-03 15:12:52 +03:00
parent bffac070bf
commit 945f2b0676

View File

@ -7,7 +7,6 @@ Group: System Environment/Libraries
License: GPLv2
URL: http://trac.yorba.org/wiki/gexiv2
Source0: http://yorba.org/download/gexiv2/0.4/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: exiv2-devel gobject-introspection-devel libtool
@ -41,13 +40,9 @@ LDFLAGS="--Wl,-z,relro"; export LDFLAGS
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
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 {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
@ -56,12 +51,10 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING MAINTAINERS
%{_libdir}/libgexiv2.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/gexiv2/
%{_libdir}/libgexiv2.so
%{_libdir}/pkgconfig/gexiv2.pc