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