]> git.pld-linux.org Git - packages/libosip2.git/blame - libosip2.spec
- updated to 3.6.0
[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
a8b0875e 8Version: 3.6.0
6c2f5632 9Release: 1
77e339a5 10License: LGPL v2.1+
d52449aa 11Group: Libraries
6aece7e5 12Source0: http://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
a8b0875e 13# Source0-md5: 92fd1c1698235a798497887db159c9b3
6c2f5632 14Patch0: %{name}-nolibs.patch
a8b0875e 15Patch1: %{name}-link.patch
654db6cf 16URL: http://www.gnu.org/software/osip/
77e339a5 17BuildRequires: autoconf >= 2.50
d52449aa 18BuildRequires: automake
19BuildRequires: libtool >= 1:1.4.3
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}
72%{__automake}
73%configure \
74 --enable-semaphore \
75 --enable-pthread \
85f02cb8
KK
76 --%{?debug:en}%{!?debug:dis}able-debug \
77 %{!?with_static_libs:--disable-static}
d52449aa 78
79%{__make}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
86
87mv -f $RPM_BUILD_ROOT%{_mandir}/man{1,3}
88mv -f $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3}
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%post -p /sbin/ldconfig
94%postun -p /sbin/ldconfig
95
96%files
97%defattr(644,root,root,755)
a8b0875e 98%doc AUTHORS BUGS ChangeLog FEATURES HISTORY NEWS README TODO
77e339a5 99%attr(755,root,root) %{_libdir}/libosip2.so.*.*.*
a8b0875e 100%attr(755,root,root) %ghost %{_libdir}/libosip2.so.7
77e339a5 101%attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.*
a8b0875e 102%attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.7
d52449aa 103
104%files devel
105%defattr(644,root,root,755)
77e339a5
JB
106%attr(755,root,root) %{_libdir}/libosip2.so
107%attr(755,root,root) %{_libdir}/libosipparser2.so
108%{_libdir}/libosip2.la
109%{_libdir}/libosipparser2.la
6c2f5632
JB
110%{_includedir}/osip2
111%{_includedir}/osipparser2
eeb3832d 112%{_pkgconfigdir}/libosip2.pc
77e339a5 113%{_mandir}/man3/osip.3*
d52449aa 114
85f02cb8 115%if %{with static_libs}
d52449aa 116%files static
117%defattr(644,root,root,755)
77e339a5
JB
118%{_libdir}/libosip2.a
119%{_libdir}/libosipparser2.a
85f02cb8 120%endif
This page took 0.095524 seconds and 4 git commands to generate.