packages: libevent/libevent.spec - Obsoletes libevent-dietlibc - rel 2
lisu
lisu at pld-linux.org
Thu Feb 24 22:35:20 CET 2011
Author: lisu Date: Thu Feb 24 21:35:20 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- Obsoletes libevent-dietlibc
- rel 2
---- Files affected:
packages/libevent:
libevent.spec (1.38 -> 1.39)
---- Diffs:
================================================================
Index: packages/libevent/libevent.spec
diff -u packages/libevent/libevent.spec:1.38 packages/libevent/libevent.spec:1.39
--- packages/libevent/libevent.spec:1.38 Thu Feb 24 21:30:20 2011
+++ packages/libevent/libevent.spec Thu Feb 24 22:35:15 2011
@@ -4,12 +4,14 @@
#
# Conditional build:
%bcond_without static_libs # don't build static library
+%bcond_without dietlibc # don't build static dietlibc library
+
#
Summary: libevent - an event notification library
Summary(pl.UTF-8): libevent - biblioteka powiadamiająca o zdarzeniach
Name: libevent
Version: 2.0.10
-Release: 1
+Release: 2
License: BSD
Group: Libraries
Source0: http://www.monkey.org/~provos/%{name}-%{version}-stable.tar.gz
@@ -21,6 +23,7 @@
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
+Obsoletes: libevent-dietlibc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -69,6 +72,20 @@
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
+%if %{with dietlibc}
+%configure \
+ CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -D_BSD_SOURCE -D_EVENT_HAVE_FD_MASK" \
+ --enable-static \
+ --disable-shared
+
+# libtool sucks, build just the libs
+%{__make}
+mv .libs/libevent.a diet-libevent.a
+mv .libs/libevent_core.a diet-libevent_core.a
+mv .libs/libevent_extra.a diet-libevent_extra.a
+%{__make} clean
+%endif
+
%configure \
%{!?with_static_libs:--disable-static}
%{__make}
@@ -141,6 +158,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.39 2011/02/24 21:35:15 lisu
+- Obsoletes libevent-dietlibc
+- rel 2
+
Revision 1.38 2011/02/24 20:30:20 duddits
- bump to rel.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libevent/libevent.spec?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list