]> git.pld-linux.org Git - packages/sofia-sip.git/blob - sofia-sip.spec
- adapterized (killed trailing spaces/tabs)
[packages/sofia-sip.git] / sofia-sip.spec
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)
6 %bcond_with    sigcomp  # with Sofia SigComp
7 #
8 Summary:        Sofia SIP User-Agent library
9 Summary(pl):    Biblioteka agenta u¿ytkownika Sofia SIP
10 Name:           sofia-sip
11 Version:        1.11.4
12 Release:        1
13 License:        LGPL 2.1
14 Group:          Libraries
15 Source0:        http://dl.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz
16 URL:            http://sf.net/projects/sofia-sip/
17 %if %{with doxygen}
18 BuildRequires:  doxygen >= 1.3.4
19 BuildRequires:  graphviz >= 1.9
20 %endif
21 %{?with_openssl:BuildRequires:  openssl-devel >= 0.9.7}
22 %if %{with sigcomp}
23 BuildRequires:  sofia-sigcomp-devel >= 2.5.0
24 Requires:       sofia-sigcomp >= 2.5.0
25 %endif
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _includedir     %{_prefix}/include/sofia-sip
29
30 %description
31 Sofia SIP is a RFC-3261-compliant library for SIP user agents and
32 other network elements.
33
34 %description -l pl
35 Sofia SIP to zgodna z RFC-3261 biblioteka dla agentów u¿ytkownika SIP
36 i innych elementów sieciowych.
37
38 %package devel
39 Summary:        Sofia-SIP Development Package
40 Summary(pl):    Pakiet programistyczny Sofia-SIP
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 Development package for Sofia SIP UA library.
46
47 %description devel -l pl
48 Pakiet programistyczny dla biblioteki Sofia SIP UA.
49
50 %package static
51 Summary:        Sofia-SIP Development Package - static library
52 Summary(pl):    Statyczna biblioteka Sofia-SIP
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static library for Sofia SIP UA library.
58
59 %description static -l pl
60 Statyczna biblioteka Sofia SIP UA.
61
62 %package utils
63 Summary:        Sofia-SIP utils
64 Summary(pl):    Narzêdzia Sofia-SIP
65 Group:          Networking/Utilities
66 Requires:       %{name} = %{version}-%{release}
67
68 %description utils
69 Command line utilities for Sofia SIP UA library.
70
71 %description utils -l pl
72 Dzia³aj±ce z linii poleceñ narzêdzia do biblioteki Sofia SIP UA.
73
74 %prep
75 %setup -q
76
77 %build
78 %configure \
79         --with%{!?with_openssl:out}-openssl \
80         --with%{!?with_sigcomp:out}-sigcomp
81
82 %{__make}
83 %{?with_check:%{__make} check}
84 %{?with_doxygen:%{__make} check} # ???
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 rm $RPM_BUILD_ROOT%{_bindir}/addrinfo
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS COPYRIGHTS README RELEASE ChangeLog
100 %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %doc TODO README.developers %{?with_doxygen:docs/*}
105 %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so
106 %{_libdir}/libsofia-sip-ua.la
107 %{_libdir}/sofia
108 %{_includedir}/sofia-sip
109 %{_aclocaldir}/*.m4
110 %{_pkgconfigdir}/%{name}-ua.pc
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libsofia-sip-ua.a
115
116 %files utils
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/nua_cli
119 %attr(755,root,root) %{_bindir}/localinfo
120 %attr(755,root,root) %{_bindir}/sip-options
121 %attr(755,root,root) %{_bindir}/sip-date
This page took 0.073363 seconds and 4 git commands to generate.