Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / libosip2 / platform / rpm / libosip.spec
1 Summary:        The GNU oSIP library
2 Summary(pl):    Biblioteka GNU oSIP
3 Name:           libosip2
4 Version:        2.0.9
5 Release:        1
6 License:        LGPL
7 Group:          Development/Libraries
8 Source0:        ftp://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
9 URL:            http://www.fsf.org/software/osip/osip.html
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  libtool
13 BuildRoot:      /tmpdir/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 This is "the GNU oSIP library". It has been designed to provide
17 the Internet Community a simple way to support the Session Initiation
18 Protocol. SIP is described in the RFC3261 which is available at
19 http://www.ietf.org/rfc/rfc3261.txt.
20
21 %description -l pl
22 To jest biblioteka GNU oSIP. Zosta³a zaprojektowana, aby
23 dostarczyæ Spo³eczno¶ci Internetowej prost± obs³ugê protoko³u SIP.
24 Protokó³ SIP (Session Initiation Protocol) jest opisany w RFC3261.
25
26 %package devel
27 Summary:        The GNU oSIP library - development files
28 Summary(pl):    Pliki dla programistów u¿ywaj±cych GNU oSIP
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}
31
32 %description devel
33 Development files for the GNU oSIP library.
34
35 %description devel -l pl
36 Pliki dla programistów u¿ywaj±cych biblioteki GNU oSIP.
37
38 %package static
39 Summary:        The GNU oSIP library - static version
40 Summary(pl):    Statyczna biblioteka GNU oSIP
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}
43
44 %description static
45 Static version of the GNU oSIP library.
46
47 %description static -l pl
48 Statyczna wersja biblioteki GNU oSIP.
49
50 %prep
51 %setup -q
52
53 %build
54 rm -f acinclude.m4 
55 %{__libtoolize}
56 %{__aclocal} -I scripts
57 %{__autoconf}
58 %{__automake}
59 %configure \
60         --enable-pthread \
61         --%{?debug:en}%{!?debug:dis}able-debug
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*
80
81 %files devel
82 %defattr(644,root,root,755)
83 %doc AUTHORS BUGS ChangeLog NEWS README TODO
84 %attr(755,root,root) %{_libdir}/lib*.la
85 %attr(755,root,root) %{_libdir}/lib*.so
86 %{_includedir}/*
87
88 %files static
89 %defattr(644,root,root,755)
90 %{_libdir}/lib*.a
91
92 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)