4.04, fix man page location, spec cleanup

This commit is contained in:
Tom "spot" Callaway 2011-08-09 17:09:54 -04:00
parent b4d86473a6
commit 192b176a90
3 changed files with 13 additions and 28 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
libev-3.9.tar.gz
/libev-4.01.tar.gz
/libev-4.03.tar.gz
/libev-4.04.tar.gz

View File

@ -2,17 +2,14 @@
%global inst_srcdir %{buildroot}/%{source_dir}
Name: libev
Version: 4.03
Release: 2%{?dist}
Version: 4.04
Release: 1%{?dist}
Summary: High-performance event loop/event model with lots of features
Group: System Environment/Libraries
License: BSD or GPLv2+
URL: http://software.schmorp.de/pkg/libev.html
Source0: http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz
Source1: %{name}.pc.in
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: automake libtool
%description
@ -23,7 +20,7 @@ featureful. And also smaller.
%package devel
Summary: High-performance event loop/event model with lots of features
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
@ -61,17 +58,13 @@ automake
%configure --disable-static --with-pic --includedir=%{_includedir}/%{name}
make %{?_smp_mflags}
%check
make check
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=%{buildroot} INSTALL="install -p"
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}.la
rm -rf %{buildroot}%{_libdir}/%{name}.la
# Make the source package
mkdir -p %{inst_srcdir}
@ -79,38 +72,29 @@ mkdir -p %{inst_srcdir}
find . -type f | grep -E '.*\.(c|h|am|ac|inc|m4|h.in|pc.in|man.pre|pl|txt)$' | xargs tar cf - | (cd %{inst_srcdir} && tar xf -)
install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{_libdir}/%{name}.so.4
%{_libdir}/%{name}.so.4.0.0
%{_mandir}/man?/*
%files devel
%defattr(-,root,root,-)
%{_libdir}/%{name}.so
%{_includedir}/libev/
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man?/*
%files source
%defattr(-,root,root,-)
%{source_dir}
%changelog
* Tue Aug 9 2011 Tom Callaway <spot@fedoraproject.org> - 4.04-1
- move man page
- cleanup spec
- update to 4.04
* Mon Jun 13 2011 Matěj Cepl <mcepl@redhat.com> - 4.03-2
- EL5 cannot have noarch subpackages.

View File

@ -1 +1 @@
86cd5c1b42fced1bd02c6e0119e9b865 libev-4.03.tar.gz
c1130d0a4782681ba5277df1bc3fb335 libev-4.04.tar.gz