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