]> git.pld-linux.org Git - packages/libosip2.git/blob - libosip2.spec
- updated to 5.2.0 (new sonames)
[packages/libosip2.git] / libosip2.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        The GNU oSIP library
6 Summary(pl.UTF-8):      Biblioteka GNU oSIP
7 Name:           libosip2
8 Version:        5.2.0
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
13 # Source0-md5:  1b31f1cafd358c7d57e058cc36341bcf
14 Patch0:         %{name}-nolibs.patch
15 Patch1:         %{name}-link.patch
16 URL:            http://www.gnu.org/software/osip/
17 BuildRequires:  autoconf >= 2.69
18 BuildRequires:  automake
19 BuildRequires:  libtool >= 2:2
20 Provides:       libosip
21 Obsoletes:      libosip
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
34
35 %package devel
36 Summary:        The GNU oSIP library - development files
37 Summary(pl.UTF-8):      Pliki dla programistów używających GNU oSIP
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Provides:       libosip-devel
41 Obsoletes:      libosip-devel
42
43 %description devel
44 Development files for the GNU oSIP library.
45
46 %description devel -l pl.UTF-8
47 Pliki dla programistów używających biblioteki GNU oSIP.
48
49 %package static
50 Summary:        The GNU oSIP library - static version
51 Summary(pl.UTF-8):      Statyczna biblioteka GNU oSIP
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54 Provides:       libosip-static
55 Obsoletes:      libosip-static
56
57 %description static
58 Static version of the GNU oSIP library.
59
60 %description static -l pl.UTF-8
61 Statyczna wersja biblioteki GNU oSIP.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67
68 %build
69 %{__libtoolize}
70 %{__aclocal} -I scripts
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %configure \
75         --enable-debug%{!?debug:=no} \
76         --enable-pthread \
77         --enable-semaphore \
78         --disable-silent-rules \
79         %{!?with_static_libs:--disable-static}
80
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
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}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS BUGS ChangeLog FEATURES HISTORY NEWS README TODO
103 %attr(755,root,root) %{_libdir}/libosip2.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libosip2.so.14
105 %attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.14
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libosip2.so
111 %attr(755,root,root) %{_libdir}/libosipparser2.so
112 %{_includedir}/osip2
113 %{_includedir}/osipparser2
114 %{_pkgconfigdir}/libosip2.pc
115 %{_mandir}/man3/osip.3*
116
117 %if %{with static_libs}
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libosip2.a
121 %{_libdir}/libosipparser2.a
122 %endif
This page took 0.125829 seconds and 3 git commands to generate.