]> git.pld-linux.org Git - packages/libevent.git/commitdiff
- Obsoletes libevent-dietlibc
authorlisu <lisu@pld-linux.org>
Thu, 24 Feb 2011 21:35:15 +0000 (21:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    libevent.spec -> 1.39

libevent.spec

index 38261ecf1b28988e1b589232b6af559f26ace535..cab90171c6295a22229220aa51c654ffe285eac5 100644 (file)
@@ -3,12 +3,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
@@ -20,6 +22,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: pkgconfig
+Obsoletes:     libevent-dietlibc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -68,6 +71,20 @@ Statyczna biblioteka libevent.
 %{__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}
This page took 0.108438 seconds and 4 git commands to generate.