--- /dev/null
+--- libevent-0.7c/sample/Makefile.am.orig 2002-10-07 02:43:30.000000000 +0200
++++ libevent-0.7c/sample/Makefile.am 2003-10-29 22:36:58.939410752 +0100
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+-LDADD = -L.. -levent
++LDADD = ../libevent.la
+ CPPFPLAGS = -I..
+ CFLAGS = -I../compat
+
+--- libevent-0.7c/test/Makefile.am.orig 2003-10-05 23:51:20.000000000 +0200
++++ libevent-0.7c/test/Makefile.am 2003-10-29 22:37:22.818780536 +0100
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+-LDADD = -L.. -levent
++LDADD = ../libevent.la
+ CPPFPLAGS = -I..
+ CFLAGS = -I../compat -Wall @CFLAGS@
+
+@@ -20,4 +20,4 @@
+ test: test-init test-eof test-weof test-time regress
+ @./test.sh
+
+-bench test-init test-eof test-weof test-time regress: ../libevent.a
++bench test-init test-eof test-weof test-time regress: ../libevent.la
+--- libevent-0.7c/Makefile.am.orig 2003-09-28 23:57:18.000000000 +0200
++++ libevent-0.7c/Makefile.am 2003-10-29 22:35:48.892059568 +0100
+@@ -19,10 +19,10 @@
+ WIN32-Prj/signal_test/signal_test.dsp WIN32-Prj/time_test \
+ WIN32-Prj/time_test/time_test.dsp
+
+-lib_LIBRARIES = libevent.a
++lib_LTLIBRARIES = libevent.la
+
+-libevent_a_SOURCES = event.c
+-libevent_a_LIBADD = @LIBOBJS@
++libevent_la_SOURCES = event.c
++libevent_la_LIBADD = @LTLIBOBJS@
+
+ include_HEADERS = event.h
+
+--- libevent-0.7c/configure.in.orig 2003-10-25 23:54:33.000000000 +0200
++++ libevent-0.7c/configure.in 2003-10-29 22:36:40.949145688 +0100
+@@ -13,7 +13,7 @@
+
+ dnl Checks for programs.
+ AC_PROG_CC
+-AC_PROG_RANLIB
++AC_PROG_LIBTOOL
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+
Summary: libevent - an event notification library
-Summary(pl): libevent - biblioteka odnotowuj±ca zdarzenia
+Summary(pl): libevent - biblioteka powiadamiaj±ca o zdarzeniach
Name: libevent
Version: 0.7c
Release: 0.1
Group: Libraries
Source0: http://www.monkey.org/~provos/%{name}-%{version}.tar.gz
# Source0-md5: d40f923789b81bc15f5ffd9ad48fe770
+Patch0: %{name}-shared.patch
URL: http://www.monkey.org/~provos/libevent/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%description -l pl
API libevent dostarcza mechanizm do wykonywania funkcji callback,
-kiedy nast±pi³o okre¶lone zadarzenie w deskryptorze pliku lub po
+kiedy nast±pi³o okre¶lone zdarzenie w deskryptorze pliku lub po
okre¶lonym czasie. Ma to na celu zast±pienie asynchronicznych pêtli w
sterowanych zdarzeniami serwisach sieciowych.
Summary: Header files for libevent library
Summary(pl): Pliki nag³ówkowe biblioteki libevent
Group: Development/Libraries
-Requires: %{name}-static = %{version}
+Requires: %{name} = %{epoch}:%{version}
%description devel
Header files for libevent library.
Summary: Static libevent library
Summary(pl): Statyczna biblioteka libevent
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{epoch}:%{version}
%description static
Static libevent library.
%prep
%setup -q
+%patch -p1
%build
+%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
%{_includedir}/*.h
%{_mandir}/man3/*