Commit c4c7d48d authored by Pekka Pessi's avatar Pekka Pessi

sofia-sip.spec.in: silenced all rpmlint warnings on FC6.

darcs-hash:20061207085902-65a35-2d9013a692c4090600a3b6ecffc6d9116af041e1.gz
parent ad8b2cd2
#
# Template for Sofia SIP UA RPM spec file. @AUTO@
#
%{!?bcond_with:%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}}
%{!?bcond_without:%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}}
# Options:
%bcond_with doxygen - Generate documents using doxygen and dot
%bcond_with check - Run tests
%bcond_with openssl - Always use OpenSSL (TLS)
%bcond_with glib - Always use glib-2.0 (>= 2.2)
%bcond_with sctp - Include SCTP transport
# Sofia SIP UA Library
Summary: Sofia SIP User-Agent library
Name: sofia-sip
......@@ -24,11 +12,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: pkgconfig
%{!?bcond_with:%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}}
%{!?bcond_without:%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}}
# Options:
%bcond_with doxygen - Generate documents using doxygen and dot
%bcond_with check - Run tests
%bcond_with openssl - Always use OpenSSL (TLS)
%bcond_with glib - Always use glib-2.0 (>= 2.2)
%bcond_with sctp - Include SCTP transport
%define have_doxygen %{?_with_doxygen:1}%{!?_with_doxygen:0}
%define have_openssl %(%{?!_with_openssl:pkg-config 'openssl >= 0.9.7'&&}echo 1||echo 0)
%define have_glib %(%{?!_with_glib:pkg-config 'glib-2.0 >= 2.2'&&}echo 1||echo 0)
%if %{with doxygen}
BuildRequires: doxygen >= 1.3
%if %{have_doxygen}
BuildRequires: doxygen >= 1.3, graphviz
%endif
%if %{have_openssl}
BuildRequires: openssl-devel >= 0.9.7
......@@ -42,30 +41,39 @@ Sofia SIP is a RFC-3261-compliant library for SIP user agents and other
network elements.
%prep
%setup -q -n sofia-sip-%{version}
%setup -q
%build
options="--with-aclocal=aclocal --disable-dependency-tracking"
options="--disable-dependency-tracking"
options="$options --with-pic --enable-shared --disable-static"
%if !%{have_glib}
options="$options --without-glib"
%endif
%{?_with_sctp:options="$options --enable-sctp"}
%configure $options CFLAGS="-Os -DNDEBUG -g"
%if %{with sctp}
options="$options --enable-sctp"
%endif
%configure $options
make %{_smp_mflags}
%{?_with_check:make check}
%if %{with doxygen}
%if %{have_doxygen}
make doxygen
%endif
# XXX comment next line to build with non-check aware rpmbuild.
%check
%if %{with check}
make check
%endif
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name *.la -exec rm -f {} \;
# Remove extra files
find $RPM_BUILD_ROOT -type f -name *.la -print0 | xargs -0 rm
%if %{with doxygen}
%if %{have_doxygen}
# Manually install development docs into manual
cp -p -r libsofia-sip-ua/docs/html manual
%endif
......@@ -79,26 +87,25 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libsofia-sip-ua.so.*
%{_libdir}/libsofia-sip-ua.so.*
%doc AUTHORS COPYING COPYRIGHTS README
%if %{have_glib}
# note: soname in pkgname allows install of multiple library versions
# The glib interface is still a bit unstable...
# The glib interface is still a bit unstable
%package glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@
Summary: GLIB bindings for Sofia-SIP
Summary: GLIB bindings for Sofia-SIP
Group: System Environment/Libraries
Requires: sofia-sip
Provides: sofia-sip-glib = %{version}-%{release}
Obsoletes: sofia-sip-glib
Requires: sofia-sip
Obsoletes: sofia-sip-glib < %{version}-%{release}
Provides: sofia-sip-glib = %{version}-%{release}
%description glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@
GLib interface to Sofia SIP User Agent library.
%if %{have_glib}
%files glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@
%defattr(-,root,root,-)
%{_prefix}/%{_lib}/libsofia-sip-ua-glib.so.*
%{_libdir}/libsofia-sip-ua-glib.so.*
%doc AUTHORS COPYING COPYRIGHTS README libsofia-sip-ua-glib/ChangeLog
%post glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@ -p /sbin/ldconfig
......@@ -107,93 +114,101 @@ GLib interface to Sofia SIP User Agent library.
%endif
%package devel
Summary: Sofia-SIP Development Package
Group: Development/Libraries
Summary: Sofia-SIP Development Package
Group: Development/Libraries
Requires: sofia-sip = %{version}-%{release}
Obsoletes: sofia-devel
Provides: sofia-devel
Obsoletes: sofia-devel < %{version}-%{release}
Provides: sofia-devel = %{version}-%{release}
Requires: pkgconfig
Requires: pkgconfig
%description devel
Development package for Sofia SIP UA library. This package includes
static libraries and include files.
%if %{without doxygen}
The reference documentation for Sofia SIP UA library is available at
<http://sofia-sip.sourceforge.net/development.html>
%endif
%files devel
%defattr(-,root,root,-)
%{_prefix}/include/sofia-sip*/sofia-sip/*.h
%{_prefix}/include/sofia-sip*/sofia-resolv/*.h
%{_prefix}/include/sofia-sip*/sofia-sip/*.h.in
%{_prefix}/share/sofia-sip/tag_dll.awk
%{_prefix}/share/sofia-sip/msg_parser.awk
# %{_prefix}/%{_lib}/libsofia-sip-ua.la
# %{_prefix}/%{_lib}/libsofia-sip-ua.a
%{_prefix}/%{_lib}/libsofia-sip-ua.so
%{_prefix}/%{_lib}/pkgconfig/sofia-sip-ua.pc
%dir %{_includedir}/sofia-sip*
%dir %{_includedir}/sofia-sip*/sofia-sip
%{_includedir}/sofia-sip*/sofia-sip/*.h
%{_includedir}/sofia-sip*/sofia-sip/*.h.in
%dir %{_includedir}/sofia-sip*/sofia-resolv
%{_includedir}/sofia-sip*/sofia-resolv/*.h
%dir %{_datadir}/sofia-sip
%{_datadir}/sofia-sip/tag_dll.awk
%{_datadir}/sofia-sip/msg_parser.awk
%{_libdir}/libsofia-sip-ua.so
%{_libdir}/pkgconfig/sofia-sip-ua.pc
%doc TODO README.developers
# note: no soname here as files installed to the same place
%if %{have_glib}
# note: no soname here as no multiple glib-devel packages can co-exist in peace
%package glib-devel
Summary: GLIB bindings for Sofia SIP development files
Group: Development/Libraries
Requires: sofia-sip-glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@ = %{version}-%{release}
Summary: GLIB bindings for Sofia SIP development files
Group: Development/Libraries
Requires: sofia-sip-glib@LIBVER_SOFIA_SIP_UA_GLIB_SOVER@ = %{version}-%{release}
Requires: sofia-sip-devel >= 1.12
%if %{have_glib}
BuildRequires: glib2-devel >= 2.2
%endif
%description glib-devel
Development package for Sofia SIP UA Glib library. This package includes
static libraries and include files for developing glib programs using Sofia
SIP.
%if %{have_glib}
%files glib-devel
%defattr(-,root,root,-)
%{_prefix}/include/sofia-sip*/sofia-sip/su_source.h
# %{_prefix}/%{_lib}/libsofia-sip-ua-glib.la
# %{_prefix}/%{_lib}/libsofia-sip-ua-glib.a
%{_prefix}/%{_lib}/libsofia-sip-ua-glib.so
%{_prefix}/%{_lib}/pkgconfig/sofia-sip-ua-glib.pc
%{_includedir}/sofia-sip*/sofia-sip/su_source.h
%{_libdir}/libsofia-sip-ua-glib.so
%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc
%endif
%package docs
Summary: Sofia-SIP Development Manual Package
Group: Documentation
Summary: Sofia-SIP Development Manual Package
Group: Documentation
%description docs
HTML reference documentation for Sofia SIP UA library.
%if %{with doxygen}
%if %{have_doxygen}
%files docs
%defattr(-,root,root,-)
%doc manual
%endif
%package utils
Summary: Sofia-SIP Command Line Utilities
Group: Applications/Internet
Summary: Sofia-SIP Command Line Utilities
Group: Applications/Internet
Requires: sofia-sip = %{version}-%{release}
Obsoletes: sofia-utils
Provides: sofia-utils
Obsoletes: sofia-utils < %{version}-%{release}
Provides: sofia-utils = %{version}-%{release}
%description utils
Command line utilities for Sofia SIP UA library.
%files utils
%defattr(-,root,root,-)
%{_prefix}/bin/localinfo
%{_prefix}/bin/addrinfo
%{_prefix}/bin/sip-options
%{_prefix}/bin/sip-date
%{_prefix}/bin/sip-dig
%{_prefix}/bin/stunc
%{_bindir}/localinfo
%{_bindir}/addrinfo
%{_bindir}/sip-options
%{_bindir}/sip-date
%{_bindir}/sip-dig
%{_bindir}/stunc
%{_mandir}/man?/*
%changelog
* The Dec 5 2006 Pekka Pessi <ppessi at gmail.com> - 1.12.4
* Thu Dec 7 2006 Pekka Pessi <ppessi at gmail.com> - 1.12.4-1
- Silenced all rpmlint warnings on FC6.
* Wed Dec 6 2006 Pekka Pessi <ppessi at gmail.com> - 1.12.4-0
- Fixing optional values on Fedora. rpmlinted. No doxygen docs.
* Tue Dec 5 2006 Pekka Pessi <ppessi at gmail.com> - 1.12.4
- Bumped version. rpmlinted.
* Tue Dec 5 2006 Kai Vehmanen
* Tue Dec 5 2006 Kai Vehmanen <first.lastname at nokia.com>
- The 'nua-glib' module, and the related dependency to gobject, has been
removed from the sofia-sip package
......@@ -220,7 +235,7 @@ Command line utilities for Sofia SIP UA library.
now installed under includedir/sofia-sip-MAJOR.MINOR/
* Thu Oct 20 2005 Pekka Pessi <first.lastname at nokia.com>
- Using %{_lib} instead of lib
- Using %%{_lib} instead of lib
* Thu Oct 6 2005 Pekka Pessi <first.lastname at nokia.com>
- Added sub-package utils
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment