]> git.pld-linux.org Git - packages/netembryo.git/blob - netembryo.spec
- new
[packages/netembryo.git] / netembryo.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # don't perform "make check"
4 #
5 Summary:        Netembryo - tiny network abstraction
6 Summary(pl.UTF-8):      Netembryo - niewielka warstwa abstrakcji dla sieci
7 Name:           netembryo
8 Version:        0.1.1
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://lscube.org/files/downloads/netembryo/%{name}-%{version}.tar.bz2
13 # Source0-md5:  d5a3c96b37fe3e4fb1c49df1f7a4a16f
14 Patch0:         %{name}-link.patch
15 URL:            http://lscube.org/projects/netembryo_network_abstraction_library_feng_and_libnemesi_depend_upon
16 BuildRequires:  autoconf >= 2.61
17 BuildRequires:  automake
18 BuildRequires:  libsctp-devel
19 BuildRequires:  libtool
20 BuildRequires:  openssl-devel >= 0.9.8
21 BuildRequires:  pkgconfig
22 %if %{with tests}
23 BuildRequires:  gawk
24 BuildRequires:  glib2-devel >= 1:2.20
25 %endif
26 Requires:       openssl >= 0.9.8
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Netembryo is a collection of function, ranging from the network
31 abstraction to the URL string parsing, useful for implementing RTP and
32 RTSP applications.
33
34 Currently the network wrapper (wsocket or wrapped socket) provides
35 support for TCP, UDP and SCTP.
36
37 %description -l pl.UTF-8
38 Netembryo to zestaw funkcji obejmujących obszar od abstrakcji
39 sieciowych po przetwarzanie URL-i, przydatnych przy implementowaniu
40 aplikacji RTP i RTSP.
41
42 Obecnie warstwa sieciowa (wsocket - wrapped socket) zapewnia obsługę
43 TCP, UDP i SCTP.
44
45 %package devel
46 Summary:        Header files for Netembryo library
47 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Netembryo
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       libsctp-devel
51 Requires:       openssl-devel >= 0.9.8
52
53 %description devel
54 Header files for Netembryo library.
55
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki Netembryo.
58
59 %package static
60 Summary:        Static Netembryo library
61 Summary(pl.UTF-8):      Statyczna biblioteka Netembryo
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 Static Netembryo library.
67
68 %description static -l pl.UTF-8
69 Statyczna biblioteka Netembryo.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74
75 %build
76 %{__libtoolize}
77 %{__aclocal} -I m4
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         --disable-silent-rules
83 %{__make}
84
85 %{?with_tests:%{__make} check}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # obsoleted by pkg-config
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnetembryo.la
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS ChangeLog README TODO
105 %attr(755,root,root) %{_libdir}/libnetembryo.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libnetembryo.so.9
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libnetembryo.so
111 %{_includedir}/netembryo
112 %{_pkgconfigdir}/libnetembryo.pc
113 %{_pkgconfigdir}/libnetembryo-sctp.pc
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libnetembryo.a
This page took 0.077119 seconds and 3 git commands to generate.