Cleaned up the spec file for modern rpmbuild
This commit is contained in:
parent
d7b5bd351d
commit
570af648b4
@ -10,7 +10,6 @@ Group: System Environment/Libraries
|
|||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://libsigc.sourceforge.net/
|
URL: http://libsigc.sourceforge.net/
|
||||||
Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{release_version}/libsigc++-%{version}.tar.xz
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{release_version}/libsigc++-%{version}.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: m4
|
BuildRequires: m4
|
||||||
|
|
||||||
@ -57,27 +56,20 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc AUTHORS COPYING README NEWS ChangeLog TODO
|
%doc AUTHORS COPYING README NEWS ChangeLog TODO
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/sigc++-2.0/
|
%{_libdir}/sigc++-2.0/
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
@ -85,7 +77,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc %{_datadir}/doc/libsigc++-2.0/
|
%doc %{_datadir}/doc/libsigc++-2.0/
|
||||||
# according guidelines, we can co-own this, since devhelp is not required
|
# according guidelines, we can co-own this, since devhelp is not required
|
||||||
# for accessing documentation
|
# for accessing documentation
|
||||||
@ -95,6 +86,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Jul 25 2011 Kalev Lember <kalevlember@gmail.com> - 2.2.10-1
|
* Mon Jul 25 2011 Kalev Lember <kalevlember@gmail.com> - 2.2.10-1
|
||||||
- Update to 2.2.10
|
- Update to 2.2.10
|
||||||
|
- Cleaned up the spec file for modern rpmbuild
|
||||||
|
|
||||||
* Wed Mar 09 2011 Kalev Lember <kalev@smartlink.ee> - 2.2.9-1
|
* Wed Mar 09 2011 Kalev Lember <kalev@smartlink.ee> - 2.2.9-1
|
||||||
- Update to 2.2.9
|
- Update to 2.2.9
|
||||||
|
Loading…
Reference in New Issue
Block a user