Author: wiget                        Date: Fri Nov 25 15:12:33 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rewritten

---- Files affected:
SPECS:
   sofia-sip.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/sofia-sip.spec
diff -u SPECS/sofia-sip.spec:1.2 SPECS/sofia-sip.spec:1.3
--- SPECS/sofia-sip.spec:1.2    Fri Nov 25 11:17:12 2005
+++ SPECS/sofia-sip.spec        Fri Nov 25 16:12:28 2005
@@ -1,99 +1,116 @@
+# $Revision$, $Date$
+# Bconds:
+%bcond_with    doxygen # Generate documents using doxygen and dot
+%bcond_with    check   # Run tests
+%bcond_without openssl # No OpenSSL (TLS)
+%bcond_with    sigcomp # with Sofia SigComp
 #
-# Template for Sofia SIP UA RPM spec file
-#
-# Options:
-# --with doxygen   - Generate documents using doxygen and dot
-# --with check     - Run tests
-# --without openssl - No OpenSSL (TLS)
-# --with sigcomp   - with Sofia SigComp
-#
-
-Summary: Sofia SIP User-Agent library 
-Name: sofia-sip
-Version: 1.11.4
-Release: 0.1
-License: Lesser GNU Public License 2.1
-Group: System Environment/Libraries
-URL: http://sf.net/projects/sofia-sip
-Source0: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Packager: [EMAIL PROTECTED]
-
-%{?_with_doxygen:BuildRequires: doxygen >= 1.3.4}
-%{?_with_doxygen:BuildRequires: graphviz >= 1.9}
-%{?!_without_openssl:BuildRequires: openssl-devel >= 0.9.7}
+Summary:       Sofia SIP User-Agent library
+Name:          sofia-sip
+Version:       1.11.4
+Release:       1
+License:       LGPL 2.1
+Group:         Libraries
+URL:           http://sf.net/projects/sofia-sip
+Source0:       %{name}-%{version}.tar.gz
+%if %{with doxygen}
+BuildRequires: doxygen >= 1.3.4
+BuildRequires: graphviz >= 1.9
+%endif
+%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7}
+%if %{with sigcomp}
+BuildRequires: sofia-sigcomp-devel >= 2.5.0
+Requires: sofia-sigcomp >= 2.5.0
+%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%{?_with_sigcomp:BuildRequires: sofia-sigcomp-devel >= 2.5.0}
-%{?_with_sigcomp:Requires: sofia-sigcomp >= 2.5.0}
+%define        _includedir     %{_prefix}/include/sofia-sip
 
 %description
-Sofia SIP is a RFC-3261-compliant library for SIP user agents and other
-network elements.
+Sofia SIP is a RFC-3261-compliant library for SIP user agents and
+other network elements.
+
+%package       devel
+Summary:        Sofia-SIP Development Package
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description   devel
+Development package for Sofia SIP UA library.
+
+%package       static
+Summary:        Sofia-SIP Development Package - static library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description   static
+Static library for Sofia SIP UA library.
+
+%package       utils
+Summary:        Sofia-SIP utils
+Group:         ?
+Requires:      sofia-sip = %{version}-%{release}
+
+%description   utils
+Command line utilities for Sofia SIP UA library.
 
 %prep
-%setup -q -n sofia-sip-%{version}
+%setup -q
 
 %build
-%configure --with-pic --enable-shared --disable-dependency-tracking 
--includedir=%{_prefix}/include/sofia-sip --with-aclocal=aclocal
-#make %{_smp_mflags}
-make 
-%{?_with_check:make check}
-%{?_with_doxygen:make check}
+%configure \
+       --with%{!?with_openssl:out}-openssl \
+       --with%{!?with_sigcomp:out}-sigcomp 
+       
+%{__make}
+%{?with_check:make check}
+%{?with_doxygen:make check}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT/%{_prefix}/bin/addrinfo
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT/%{_bindir}/addrinfo
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root,-)
-%{_prefix}/%{_lib}/libsofia-sip-ua.so
-%{_prefix}/%{_lib}/libsofia-sip-ua.so.*
-%doc AUTHORS COPYING COPYRIGHTS README
-
-%package       devel
-Summary:        Sofia-SIP Development Package
-Group:         Development/Libraries
-Requires:      sofia-sip = %{version}-%{release}
-Obsoletes:     sofia-devel
-%description   devel
-Development package for Sofia SIP UA library. This package includes 
-%{?_with_doxygen:HTML documentation}, static libraries and include files.
+%defattr(644,root,root,755)
+%doc AUTHORS COPYRIGHTS README RELEASE ChangeLog
+%attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.*
 
 %files devel
-%defattr(-,root,root,-)
-/usr/share/aclocal/sac-general.m4
-/usr/share/aclocal/sac-su.m4
-/usr/share/aclocal/sac-su2.m4
-%{_prefix}/include/sofia-sip/*.h
-%{_prefix}/include/sofia-sip/*.h.in
-%{_prefix}/libexec/sofia/tag_dll.awk
-%{_prefix}/libexec/sofia/msg_parser.awk
-%{_prefix}/%{_lib}/libsofia-sip-ua.la
-%{_prefix}/%{_lib}/libsofia-sip-ua.a
-%{_prefix}/%{_lib}/pkgconfig/%{name}-ua.pc
-%{?_with_doxygen:docs/*}
+%defattr(644,root,root,755)
 %doc TODO README.developers
-
-%package       utils
-Summary:        Sofia-SIP Development Package
-Group:         Development/Libraries
-Requires:      sofia-sip = %{version}-%{release}
-Obsoletes:     sofia-utils
-%description   utils
-Command line utilities for Sofia SIP UA library.
+%{?with_doxygen:docs/*}
+%{_aclocaldir}/*.m4
+%{_includedir}/sofia-sip
+%{_libdir}/sofia
+%{_libdir}/libsofia-sip-ua.la
+%{_libdir}/libsofia-sip-ua.so
+%{_pkgconfigdir}/%{name}-ua.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsofia-sip-ua.a
 
 %files utils
-%defattr(-,root,root,-)
-%{_prefix}/bin/nua_cli
-%{_prefix}/bin/localinfo
-%{_prefix}/bin/sip-options
-%{_prefix}/bin/sip-date
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/nua_cli
+%attr(755,root,root) %{_bindir}/localinfo
+%attr(755,root,root) %{_bindir}/sip-options
+%attr(755,root,root) %{_bindir}/sip-date
 
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.3  2005/11/25 15:12:28  wiget
+- rewritten
+
 * Thu Oct 20 2005 Pekka Pessi <[EMAIL PROTECTED]> - 1.11.4
 - Using %{_lib} instead of lib
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sofia-sip.spec?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to