From 9bdcea024fc74201e72f11a09246f61b1dc0f0ba Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Fri, 8 Feb 2013 15:49:23 +0800 Subject: [PATCH] Tweak the spec file This removes the obsolete Group tag, and replaces tabs by spaces. --- libev.spec | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/libev.spec b/libev.spec index 3c580b6..aacf66d 100644 --- a/libev.spec +++ b/libev.spec @@ -1,16 +1,15 @@ %global source_dir %{_datadir}/%{name}-source %global inst_srcdir %{buildroot}/%{source_dir} -Name: libev -Summary: High-performance event loop/event model with lots of features -Version: 4.11 -Release: 1%{?dist} -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 -BuildRequires: automake libtool +Name: libev +Summary: High-performance event loop/event model with lots of features +Version: 4.11 +Release: 1%{?dist} +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 +BuildRequires: automake libtool %description Libev is modeled (very loosely) after libevent and the Event Perl @@ -18,24 +17,24 @@ module, but is faster, scales better and is more correct, and also more featureful. And also smaller. -%package devel -Summary: High-performance event loop/event model with lots of features -Group: System Environment/Libraries -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: pkgconfig +%package devel +Summary: High-performance event loop/event model with lots of features +Group: System Environment/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig -%description devel +%description devel This package contains the development headers and libraries for libev. -%package source -Summary: High-performance event loop/event model with lots of features -Group: System Environment/Libraries +%package source +Summary: High-performance event loop/event model with lots of features +Group: System Environment/Libraries %if 0%{?fedora} >= 12 || 0%{?rhel} > 5 -BuildArch: noarch +BuildArch: noarch %endif -%description source +%description source This package contains the source code for libev. @@ -54,9 +53,11 @@ automake %configure --disable-static --with-pic --includedir=%{_includedir}/%{name} make %{?_smp_mflags} + %check make check + %install make install DESTDIR=%{buildroot} INSTALL="install -p" @@ -68,9 +69,11 @@ 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} + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig + %files %doc Changes LICENSE README %{_libdir}/%{name}.so.4