]> git.pld-linux.org Git - packages/belle-sip.git/blame - belle-sip.spec
- completed pl and BRs
[packages/belle-sip.git] / belle-sip.spec
CommitLineData
4d971c61
JK
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4%bcond_with tests # enable tests
5#
6Summary: SIP (RFC3261) object-oriented implementation in C
7Summary(pl.UTF-8): Implementacja SIP (RFC3261) w C
8Name: belle-sip
9Version: 1.3.0
c33ca48f 10Release: 1
5b7dfe73 11License: GPL v2+
4d971c61
JK
12Group: Libraries
13Source0: http://download-mirror.savannah.gnu.org/releases/linphone/belle-sip/%{name}-%{version}.tar.gz
14# Source0-md5: ae9e8be12f62552a5376edd66b0265d9
15Patch0: antlr_jar.patch
16URL: http://www.linphone.org/
17%{?with_tests:BuildRequires: CUnit >= 2.0}
5b7dfe73
JB
18BuildRequires: autoconf >= 2.63
19BuildRequires: automake >= 1:1.11
4d971c61 20BuildRequires: java-antlr3 >= 3.2
5b7dfe73 21BuildRequires: jre
4d971c61 22BuildRequires: libantlr3c-devel >= 3.2
5b7dfe73
JB
23BuildRequires: libstdc++-devel
24BuildRequires: libtool >= 2:2
4d971c61 25BuildRequires: polarssl-devel >= 1.2
5b7dfe73 26BuildRequires: pkgconfig
4d971c61
JK
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Belle-sip is a SIP (RFC3261) implementation written in C, with an
5b7dfe73
JB
31object oriented API.
32
33%description -l pl.UTF-8
34Belle-sip to implementacja SIP (RFC3261) napisana w C z API
35zorientowanym obiektowo.
4d971c61
JK
36
37%package devel
38Summary: Header files for %{name} library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Header files for %{name} library.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe biblioteki %{name}.
48
49%package static
50Summary: Static %{name} library
51Summary(pl.UTF-8): Statyczna biblioteka %{name}
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static %{name} library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka %{name}.
60
61%prep
62%setup -q
63%patch0 -p1
64
65%build
66%{__libtoolize}
67%{__aclocal}
68%{__autoconf}
69%{__autoheader}
70%{__automake}
71%configure \
72 CFLAGS="%{rpmcflags} -Wno-error=pragmas" \
5b7dfe73 73 --disable-silent-rules \
4d971c61
JK
74 %{!?with_static_libs:--disable-static}
75
5b7dfe73 76%{__make}
4d971c61
JK
77
78%{?with_tests:%{__make} test}
79
80%install
81rm -rf $RPM_BUILD_ROOT
82
5b7dfe73 83%{__make} install \
4d971c61
JK
84 DESTDIR=$RPM_BUILD_ROOT
85
5b7dfe73 86%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbellesip.la
4d971c61
JK
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
94%files
95%defattr(644,root,root,755)
96%doc AUTHORS NEWS README
97%attr(755,root,root) %{_libdir}/libbellesip.so.*.*.*
98%attr(755,root,root) %ghost %{_libdir}/libbellesip.so.0
99
100%files devel
101%defattr(644,root,root,755)
102%attr(755,root,root) %{_libdir}/libbellesip.so
103%{_includedir}/%{name}
104%{_pkgconfigdir}/%{name}.pc
105
106%if %{with static_libs}
107%files static
108%defattr(644,root,root,755)
109%{_libdir}/libbellesip.a
110%endif
This page took 0.087024 seconds and 4 git commands to generate.