]> git.pld-linux.org Git - packages/sofia-sip.git/blame - sofia-sip.spec
- general cleanup, more verbose files
[packages/sofia-sip.git] / sofia-sip.spec
CommitLineData
35207948
JB
1#
2# Conditional build:
3%bcond_with doxygen # Generate documents using doxygen and dot
4%bcond_with check # Run tests
5%bcond_without openssl # No OpenSSL (TLS)
72e49eda 6%bcond_with sigcomp # with Sofia SigComp [Nokia proprietary?]
b0b9b3c9 7#
c16920ff 8Summary: Sofia SIP User-Agent library
a65ea931 9Summary(pl.UTF-8): Biblioteka agenta użytkownika Sofia SIP
c16920ff 10Name: sofia-sip
0ea6c4f0
CM
11Version: 1.12.11
12Release: 1
72e49eda 13License: LGPL v2.1+
c16920ff 14Group: Libraries
c3311aa5 15Source0: http://downloads.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz
0ea6c4f0 16# Source0-md5: f3582c62080eeecd3fa4cd5d4ccb4225
35207948 17URL: http://sf.net/projects/sofia-sip/
c16920ff 18%if %{with doxygen}
35207948
JB
19BuildRequires: doxygen >= 1.3.4
20BuildRequires: graphviz >= 1.9
c16920ff 21%endif
72e49eda 22BuildRequires: glib2-devel >= 2.0
35207948 23%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7}
c3311aa5 24BuildRequires: pkgconfig
c16920ff 25%if %{with sigcomp}
35207948
JB
26BuildRequires: sofia-sigcomp-devel >= 2.5.0
27Requires: sofia-sigcomp >= 2.5.0
c16920ff
AF
28%endif
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
c3311aa5 31%undefine __cxx
32
c16920ff
AF
33%description
34Sofia SIP is a RFC-3261-compliant library for SIP user agents and
35other network elements.
b0b9b3c9 36
0ada2c95
JR
37%description -l pl.UTF-8
38Sofia SIP to zgodna z RFC-3261 biblioteka dla agentów użytkownika SIP
39i innych elementów sieciowych.
35207948
JB
40
41%package devel
b074073b 42Summary: Sofia-SIP Development Package
a65ea931 43Summary(pl.UTF-8): Pakiet programistyczny Sofia-SIP
b074073b 44Group: Development/Libraries
c16920ff 45Requires: %{name} = %{version}-%{release}
72e49eda
JB
46Requires: glib2-devel >= 2.0
47%{?with_openssl:Requires: openssl-devel >= 0.9.7}
b0b9b3c9 48
35207948 49%description devel
c16920ff 50Development package for Sofia SIP UA library.
b0b9b3c9 51
0ada2c95 52%description devel -l pl.UTF-8
35207948
JB
53Pakiet programistyczny dla biblioteki Sofia SIP UA.
54
55%package static
b074073b 56Summary: Sofia-SIP Development Package - static library
a65ea931 57Summary(pl.UTF-8): Statyczna biblioteka Sofia-SIP
b074073b 58Group: Development/Libraries
c16920ff
AF
59Requires: %{name}-devel = %{version}-%{release}
60
35207948 61%description static
c16920ff
AF
62Static library for Sofia SIP UA library.
63
0ada2c95 64%description static -l pl.UTF-8
35207948
JB
65Statyczna biblioteka Sofia SIP UA.
66
67%package utils
b074073b 68Summary: Sofia-SIP utils
a65ea931 69Summary(pl.UTF-8): Narzędzia Sofia-SIP
b074073b 70Group: Networking/Utilities
35207948 71Requires: %{name} = %{version}-%{release}
c16920ff 72
35207948 73%description utils
c16920ff 74Command line utilities for Sofia SIP UA library.
b0b9b3c9 75
0ada2c95
JR
76%description utils -l pl.UTF-8
77Działające z linii poleceń narzędzia do biblioteki Sofia SIP UA.
35207948 78
b0b9b3c9 79%prep
c16920ff 80%setup -q
b0b9b3c9
AF
81
82%build
c16920ff 83%configure \
72e49eda
JB
84 --with-openssl%{!?with_openssl:=no} \
85 --with-sigcomp%{!?with_sigcomp:=no}
86
87%{__make} \
88 SOFIA_SILENT=
b074073b 89
35207948 90%{?with_check:%{__make} check}
b0b9b3c9
AF
91
92%install
93rm -rf $RPM_BUILD_ROOT
35207948 94
c16920ff
AF
95%{__make} install \
96 DESTDIR=$RPM_BUILD_ROOT
35207948 97
72e49eda 98%{__rm} $RPM_BUILD_ROOT{%{_bindir}/addrinfo,%{_mandir}/man1/addrinfo.1}
b0b9b3c9
AF
99
100%clean
101rm -rf $RPM_BUILD_ROOT
102
e80bacc6
PZ
103%post -p /sbin/ldconfig
104%postun -p /sbin/ldconfig
105
b0b9b3c9 106%files
c16920ff 107%defattr(644,root,root,755)
72e49eda
JB
108%doc AUTHORS COPYRIGHTS ChangeLog ChangeLog.ext-trees README RELEASE
109%attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.*.*
24624e9f 110%attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua.so.0
72e49eda
JB
111%attr(755,root,root) %{_libdir}/libsofia-sip-ua-glib.so.*.*.*
112%attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua-glib.so.3
1d9e62ab 113%{_datadir}/sofia-sip
b0b9b3c9
AF
114
115%files devel
c16920ff 116%defattr(644,root,root,755)
35207948 117%doc TODO README.developers %{?with_doxygen:docs/*}
72e49eda
JB
118%attr(755,root,root) %{_libdir}/libsofia-sip-ua.so
119%attr(755,root,root) %{_libdir}/libsofia-sip-ua-glib.so
120%{_libdir}/libsofia-sip-ua.la
121%{_libdir}/libsofia-sip-ua-glib.la
122%{_includedir}/sofia-sip-1.12
123%{_pkgconfigdir}/sofia-sip-ua.pc
124%{_pkgconfigdir}/sofia-sip-ua-glib.pc
c16920ff
AF
125
126%files static
127%defattr(644,root,root,755)
72e49eda
JB
128%{_libdir}/libsofia-sip-ua.a
129%{_libdir}/libsofia-sip-ua-glib.a
b0b9b3c9
AF
130
131%files utils
c16920ff 132%defattr(644,root,root,755)
72e49eda
JB
133%attr(755,root,root) %{_bindir}/localinfo
134%attr(755,root,root) %{_bindir}/sip-date
135%attr(755,root,root) %{_bindir}/sip-dig
136%attr(755,root,root) %{_bindir}/sip-options
137%attr(755,root,root) %{_bindir}/stunc
138%{_mandir}/man1/localinfo.1*
139%{_mandir}/man1/sip-date.1*
140%{_mandir}/man1/sip-dig.1*
141%{_mandir}/man1/sip-options.1*
142%{_mandir}/man1/stunc.1*
This page took 0.074826 seconds and 4 git commands to generate.