From 93c5930bce91e290205dfa7e98509ea392fd18b2 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 16 Feb 2013 22:14:36 +0100 Subject: [PATCH] - new - link patch to avoid linking with glib (needed only by tests, not the library itself) --- netembryo-link.patch | 15 ++++++ netembryo.spec | 117 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 netembryo-link.patch create mode 100644 netembryo.spec diff --git a/netembryo-link.patch b/netembryo-link.patch new file mode 100644 index 0000000..94baf85 --- /dev/null +++ b/netembryo-link.patch @@ -0,0 +1,15 @@ +--- netembryo-0.1.1/Makefile.am.orig 2009-06-08 18:14:09.000000000 +0200 ++++ netembryo-0.1.1/Makefile.am 2013-02-16 22:04:37.394401157 +0100 +@@ -15,11 +15,9 @@ + + libnetembryo_la_SOURCES = + +-libnetembryo_la_CFLAGS = $(GLIB_CFLAGS) + libnetembryo_la_LIBADD = \ + wsocket/libwsocket.la \ +- utils/libutils.la \ +- $(GLIB_LIBS) ++ utils/libutils.la + + if HAVE_SCTP + libnetembryo_la_LIBADD += $(SCTP_LIBS) diff --git a/netembryo.spec b/netembryo.spec new file mode 100644 index 0000000..28c66c2 --- /dev/null +++ b/netembryo.spec @@ -0,0 +1,117 @@ +# +# Conditional build: +%bcond_without tests # don't perform "make check" +# +Summary: Netembryo - tiny network abstraction +Summary(pl.UTF-8): Netembryo - niewielka warstwa abstrakcji dla sieci +Name: netembryo +Version: 0.1.1 +Release: 1 +License: LGPL v2.1+ +Group: Libraries +Source0: http://lscube.org/files/downloads/netembryo/%{name}-%{version}.tar.bz2 +# Source0-md5: d5a3c96b37fe3e4fb1c49df1f7a4a16f +Patch0: %{name}-link.patch +URL: http://lscube.org/projects/netembryo_network_abstraction_library_feng_and_libnemesi_depend_upon +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: libsctp-devel +BuildRequires: libtool +BuildRequires: openssl-devel >= 0.9.8 +BuildRequires: pkgconfig +%if %{with tests} +BuildRequires: gawk +BuildRequires: glib2-devel >= 1:2.20 +%endif +Requires: openssl >= 0.9.8 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Netembryo is a collection of function, ranging from the network +abstraction to the URL string parsing, useful for implementing RTP and +RTSP applications. + +Currently the network wrapper (wsocket or wrapped socket) provides +support for TCP, UDP and SCTP. + +%description -l pl.UTF-8 +Netembryo to zestaw funkcji obejmujących obszar od abstrakcji +sieciowych po przetwarzanie URL-i, przydatnych przy implementowaniu +aplikacji RTP i RTSP. + +Obecnie warstwa sieciowa (wsocket - wrapped socket) zapewnia obsługę +TCP, UDP i SCTP. + +%package devel +Summary: Header files for Netembryo library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Netembryo +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libsctp-devel +Requires: openssl-devel >= 0.9.8 + +%description devel +Header files for Netembryo library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Netembryo. + +%package static +Summary: Static Netembryo library +Summary(pl.UTF-8): Statyczna biblioteka Netembryo +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static Netembryo library. + +%description static -l pl.UTF-8 +Statyczna biblioteka Netembryo. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --disable-silent-rules +%{__make} + +%{?with_tests:%{__make} check} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnetembryo.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog README TODO +%attr(755,root,root) %{_libdir}/libnetembryo.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libnetembryo.so.9 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnetembryo.so +%{_includedir}/netembryo +%{_pkgconfigdir}/libnetembryo.pc +%{_pkgconfigdir}/libnetembryo-sctp.pc + +%files static +%defattr(644,root,root,755) +%{_libdir}/libnetembryo.a -- 2.44.0