From 6abf808acff45af7eec53f55e39d05ab96b32020 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Sun, 9 Nov 2008 13:02:12 +0000 Subject: [PATCH] init --- .cvsignore | 1 + import.log | 1 + libev.pc.in | 11 ++++++ libev.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 116 insertions(+) create mode 100644 import.log create mode 100644 libev.pc.in create mode 100644 libev.spec diff --git a/.cvsignore b/.cvsignore index e69de29..44ca955 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libev-3.48.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..4c49d34 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libev-3_48-1_fc10:HEAD:libev-3.48-1.fc10.src.rpm:1226235699 diff --git a/libev.pc.in b/libev.pc.in new file mode 100644 index 0000000..3b6c636 --- /dev/null +++ b/libev.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libev +Description: High-performance event loop/event model +Version: @VERSION@ +Libs: -L${libdir} -lev +Libs.private: +Cflags: -I${includedir} diff --git a/libev.spec b/libev.spec new file mode 100644 index 0000000..dad1699 --- /dev/null +++ b/libev.spec @@ -0,0 +1,102 @@ +Name: libev +Version: 3.48 +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/%{name}-%{version}.tar.gz +Source1: %{name}.pc.in +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: automake17 + +%description +Libev is modelled (very losely) after libevent and the Event perl +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} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Libev is modelled (very losely) 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 + +# Add pkgconfig support +cp -p %{SOURCE1} . +sed -i.pkgconfig -e 's|Makefile|Makefile libev.pc|' configure.ac configure +sed -i.pkgconfig -e 's|lib_LTLIBRARIES|pkgconfigdir = $(libdir)/pkgconfig\n\npkgconfig_DATA = libev.pc\n\nlib_LTLIBRARIES|' Makefile.am Makefile.in +automake-1.7 +#touch -r + + +%build +%configure --disable-static --with-pic --includedir=%{_includedir}/%{name} +make %{?_smp_mflags} + + +%check +make check + + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}.la + + +%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.* +%{_mandir}/man?/* + + +%files devel +%defattr(-,root,root,-) +%{_libdir}/%{name}.so +%{_includedir}/libev/ +%{_libdir}/pkgconfig/%{name}.pc + + +%changelog +* Sun Nov 9 2008 Michal Nowak - 3.48-1 +- version bump: 3.48 + +* Mon Oct 6 2008 kwizart - 3.44-1 +- bump to 3.44 + +* Tue Sep 2 2008 kwizart - 3.43-4 +- Fix pkgconfig support + +* Mon Aug 12 2008 Michal Nowak - 3.43-2 +- removed libev.a +- installing with "-p" +- event.h is removed intentionaly, because is there only for + backward compatibility with libevent + +* Mon Aug 04 2008 Michal Nowak - 3.43-1 +- initial package + diff --git a/sources b/sources index e69de29..a5ec546 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +579e65390d56ce065857b3066c16b56c libev-3.48.tar.gz