fix license tag, package cleanups

This commit is contained in:
Tom Callaway 2008-08-07 15:28:22 +00:00
parent a185a25c9b
commit f5d13b28ef

View File

@ -1,14 +1,11 @@
%define DATE 080731 Summary: A performance monitoring library for Linux
%define libpfm_release 1
Summary: A performance monitoring library for Linux/ia64
Name: libpfm Name: libpfm
Version: 3.5 Version: 3.5
Release: %{libpfm_release}%{?dist} Release: 2%{?dist}
License: MIT-style License: MIT
Group: Development/Libraries Group: Development/Libraries
ExclusiveArch: ia64 %{ix86} x86_64 ppc ppc64 ExclusiveArch: ia64 %{ix86} x86_64 ppc ppc64
ExclusiveOS: linux ExclusiveOS: linux
AutoReqProv: no
Source: http://prdownloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz Source: http://prdownloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz
URL: http://sourceforge.net/projects/perfmon2/ URL: http://sourceforge.net/projects/perfmon2/
@ -28,6 +25,7 @@ various processors.
%package devel %package devel
Summary: the Linux performance library (libpfm) development files. Summary: the Linux performance library (libpfm) development files.
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel %description devel
The performance monitoring library (libpfm) is used to develop The performance monitoring library (libpfm) is used to develop
@ -52,26 +50,31 @@ make PREFIX=/usr DESTDIR=%{buildroot} LIBDIR=%{_libdir}
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot} mkdir -p %{buildroot}
make install PREFIX=/usr DESTDIR=%{buildroot} LIBDIR=%{_libdir} make install PREFIX=/usr DESTDIR=%{buildroot} LIBDIR=%{_libdir}
# If we need this static library, make a -static subpackage for it.
rm -rf %{buildroot}/%{_libdir}/*.a
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc README %doc README COPYRIGHT
%attr(755,root,root) %{_libdir}/*.so* %attr(755,root,root) %{_libdir}/*.so.*
%{_libdir}/*.so*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root,-)
%doc README %{_mandir}/man3/*
%doc %{_mandir}/man3/* %{_libdir}/libpfm.so
%{_libdir}/libpfm.a %{_includedir}/*
%{_prefix}/include/*
%changelog %changelog
* Thu Aug 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.5-2
- fix license tag
- package cleanups (drop static library, package shared bits correctly)
* Thu Jul 31 2008 Will Cohen <wcohen@redhat.com> - 3.5-1 * Thu Jul 31 2008 Will Cohen <wcohen@redhat.com> - 3.5-1
- Update to libpfm-3.5. - Update to libpfm-3.5.