From ec4b8509b254aa7fd695f461f8d50ecadbff162e Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Sat, 5 Feb 2011 12:53:35 +0100 Subject: [PATCH] 4.03 --- .gitignore | 1 + libev.spec | 32 +++++++++++++++++++++++++++++++- sources | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9b64715..3e851fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ libev-3.9.tar.gz /libev-4.01.tar.gz +/libev-4.03.tar.gz diff --git a/libev.spec b/libev.spec index 877e223..c8855fd 100644 --- a/libev.spec +++ b/libev.spec @@ -1,5 +1,8 @@ +%global source_dir %{_datadir}/%{name}-source +%global inst_srcdir %{buildroot}/%{source_dir} + Name: libev -Version: 4.01 +Version: 4.03 Release: 1%{?dist} Summary: High-performance event loop/event model with lots of features @@ -29,6 +32,18 @@ module, but is faster, scales better and is more correct, and also more featureful. And also smaller. Development libraries. +%package source +Summary: High-performance event loop/event model with lots of features +Group: System Environment/Libraries +BuildArch: noarch + +%description source +This package contains the source code for libev. + +Libev is modeled (very loosely) after libevent and the Event Perl +module, but is faster, scales better and is more correct, and also more +featureful. And also smaller. Development libraries. + %prep %setup -q @@ -56,6 +71,12 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}.la +# Make the source package +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 @@ -82,7 +103,16 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/%{name}.pc +%files source +%defattr(-,root,root,-) +%{source_dir} + + %changelog +* Sat Feb 5 2011 Michal Nowak - 4.03-1 +- 4.03; RHBZ#674022 +- add a -source subpackage (Mathieu Bridon); RHBZ#672153 + * Mon Jan 10 2011 Michal Nowak - 4.01-1 - 4.01 - fix grammar in %%description diff --git a/sources b/sources index 34ff2bb..f5f9dd7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2a6e0d3d7eda7d54b39f3800b8279707 libev-4.01.tar.gz +86cd5c1b42fced1bd02c6e0119e9b865 libev-4.03.tar.gz