]> git.pld-linux.org Git - packages/libevent.git/commitdiff
- patched to build shared library, pl fix
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 Oct 2003 21:44:18 +0000 (21:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libevent-shared.patch -> 1.1
    libevent.spec -> 1.3

libevent-shared.patch [new file with mode: 0644]
libevent.spec

diff --git a/libevent-shared.patch b/libevent-shared.patch
new file mode 100644 (file)
index 0000000..422124a
--- /dev/null
@@ -0,0 +1,53 @@
+--- 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
index ccd25ba80c0fd1e9bf0f1c9f10408a3a19f8b0da..f3322651046bf28f322cb7856fba6acc9332b912 100644 (file)
@@ -1,5 +1,5 @@
 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
@@ -8,7 +8,11 @@ License:       BSD
 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
@@ -19,7 +23,7 @@ found in event-driven network servers.
 
 %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.
 
@@ -27,7 +31,7 @@ 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.
@@ -39,7 +43,7 @@ Pliki nag
 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.
@@ -49,8 +53,10 @@ Statyczna biblioteka libevent.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
@@ -70,8 +76,14 @@ rm -rf $RPM_BUILD_ROOT
 %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/*
 
This page took 0.060355 seconds and 4 git commands to generate.