]>
Commit | Line | Data |
---|---|---|
85f02cb8 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
d52449aa | 5 | Summary: The GNU oSIP library |
5a520ea5 | 6 | Summary(pl.UTF-8): Biblioteka GNU oSIP |
d52449aa | 7 | Name: libosip2 |
8119785e | 8 | Version: 5.1.0 |
6c2f5632 | 9 | Release: 1 |
77e339a5 | 10 | License: LGPL v2.1+ |
d52449aa | 11 | Group: Libraries |
8119785e JB |
12 | Source0: https://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz |
13 | # Source0-md5: e69f625d0cc21fea946e08ffec51f2db | |
6c2f5632 | 14 | Patch0: %{name}-nolibs.patch |
a8b0875e | 15 | Patch1: %{name}-link.patch |
654db6cf | 16 | URL: http://www.gnu.org/software/osip/ |
789afda7 | 17 | BuildRequires: autoconf >= 2.69 |
d52449aa | 18 | BuildRequires: automake |
789afda7 | 19 | BuildRequires: libtool >= 2:2 |
2c77ae50 | 20 | Provides: libosip |
6c2f5632 JB |
21 | Obsoletes: libosip |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
d52449aa | 23 | |
24 | %description | |
25 | This is "the GNU oSIP library" (for Omnibus SIP). It has been designed | |
26 | to provide the Internet Community a simple way to support the Session | |
27 | Initiation Protocol. SIP is described in the RFC2543 which is | |
28 | available at http://www.ietf.org/rfc/rfc2543.txt. | |
29 | ||
8dd23a46 JR |
30 | %description -l pl.UTF-8 |
31 | To jest biblioteka GNU oSIP (Omnibus SIP). Została zaprojektowana, aby | |
32 | dostarczyć Społeczności Internetowej prostą obsługę protokołu SIP. | |
33 | Protokół SIP (Session Initiation Protocol) jest opisany w RFC2543. | |
d52449aa | 34 | |
35 | %package devel | |
36 | Summary: The GNU oSIP library - development files | |
5a520ea5 | 37 | Summary(pl.UTF-8): Pliki dla programistów używających GNU oSIP |
d52449aa | 38 | Group: Development/Libraries |
6c2f5632 | 39 | Requires: %{name} = %{version}-%{release} |
f5c2014a | 40 | Provides: libosip-devel |
6c2f5632 | 41 | Obsoletes: libosip-devel |
d52449aa | 42 | |
43 | %description devel | |
44 | Development files for the GNU oSIP library. | |
45 | ||
8dd23a46 JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki dla programistów używających biblioteki GNU oSIP. | |
d52449aa | 48 | |
49 | %package static | |
50 | Summary: The GNU oSIP library - static version | |
5a520ea5 | 51 | Summary(pl.UTF-8): Statyczna biblioteka GNU oSIP |
d52449aa | 52 | Group: Development/Libraries |
6c2f5632 | 53 | Requires: %{name}-devel = %{version}-%{release} |
f5c2014a | 54 | Provides: libosip-static |
6c2f5632 | 55 | Obsoletes: libosip-static |
d52449aa | 56 | |
57 | %description static | |
58 | Static version of the GNU oSIP library. | |
59 | ||
8dd23a46 | 60 | %description static -l pl.UTF-8 |
d52449aa | 61 | Statyczna wersja biblioteki GNU oSIP. |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | %patch0 -p1 | |
a8b0875e | 66 | %patch1 -p1 |
d52449aa | 67 | |
68 | %build | |
d52449aa | 69 | %{__libtoolize} |
6c2f5632 | 70 | %{__aclocal} -I scripts |
d52449aa | 71 | %{__autoconf} |
789afda7 | 72 | %{__autoheader} |
d52449aa | 73 | %{__automake} |
74 | %configure \ | |
8119785e | 75 | --enable-debug%{!?debug:=no} \ |
d52449aa | 76 | --enable-pthread \ |
8119785e | 77 | --enable-semaphore \ |
85f02cb8 | 78 | %{!?with_static_libs:--disable-static} |
d52449aa | 79 | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
789afda7 JB |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libosip*.la |
89 | ||
90 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man{1,3} | |
91 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3} | |
d52449aa | 92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
a8b0875e | 101 | %doc AUTHORS BUGS ChangeLog FEATURES HISTORY NEWS README TODO |
77e339a5 | 102 | %attr(755,root,root) %{_libdir}/libosip2.so.*.*.* |
789afda7 | 103 | %attr(755,root,root) %ghost %{_libdir}/libosip2.so.12 |
77e339a5 | 104 | %attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.* |
789afda7 | 105 | %attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.12 |
d52449aa | 106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
77e339a5 JB |
109 | %attr(755,root,root) %{_libdir}/libosip2.so |
110 | %attr(755,root,root) %{_libdir}/libosipparser2.so | |
6c2f5632 JB |
111 | %{_includedir}/osip2 |
112 | %{_includedir}/osipparser2 | |
eeb3832d | 113 | %{_pkgconfigdir}/libosip2.pc |
77e339a5 | 114 | %{_mandir}/man3/osip.3* |
d52449aa | 115 | |
85f02cb8 | 116 | %if %{with static_libs} |
d52449aa | 117 | %files static |
118 | %defattr(644,root,root,755) | |
77e339a5 JB |
119 | %{_libdir}/libosip2.a |
120 | %{_libdir}/libosipparser2.a | |
85f02cb8 | 121 | %endif |