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