rpms/compat-libosip2/devel compat-libosip2.spec, NONE, 1.1 libosip2-2.2.2-x64.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jeffrey C. Ollie (jcollie) fedora-extras-commits at redhat.com
Tue Nov 14 20:20:45 UTC 2006


Author: jcollie

Update of /cvs/extras/rpms/compat-libosip2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6302/devel

Modified Files:
	.cvsignore sources 
Added Files:
	compat-libosip2.spec libosip2-2.2.2-x64.patch 
Log Message:
auto-import compat-libosip2-2.2.2-8.fc6 on branch devel from compat-libosip2-2.2.2-8.fc6.src.rpm


--- NEW FILE compat-libosip2.spec ---
Name:           compat-libosip2
Version:        2.2.2
Release:        8%{?dist}

Summary:        oSIP is an implementation of SIP

Group:          System Environment/Libraries
License:        LGPL

URL:            http://www.gnu.org/software/osip/
Source0:        http://ftp.gnu.org/gnu/osip/libosip2-%{version}.tar.gz

Patch:          libosip2-2.2.2-x64.patch

Provides:       libosip2 = 2.2.2-5%{?dist}
Obsoletes:      libosip2 < 2.2.2-5%{?dist}

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
oSIP is an implementation of SIP.

SIP stands for the Session Initiation Protocol and is described by the
rfc3261 (wich deprecates rfc2543). This library aims to provide
multimedia and telecom software developers an easy and powerful
interface to initiate and control SIP based sessions in their
applications. SIP is a open standard replacement from IETF for H.323.

This is a compatibility package for applications that have not been
rewritten to use the APIs in newer versions of libosip2.

%package        devel
Summary:        Development libraries for oSIP
Group:          Development/Libraries

Requires:       %{name} = %{version}-%{release}
Requires:       pkgconfig

Provides:       libosip2-devel = 2.2.2-5%{?dist}
Obsoletes:      libosip2-devel < 2.2.2-5%{?dist}

%description    devel
The GNU oSIP library is written in C and get no dependencies except the
standard C library. oSIP is thread safe and will generally be used in a
multi-threaded application. Nevertheless, this is optional.

oSIP is little in size and code and thus could be use to implement IP
soft-phone as well as embedded SIP software. oSIP is not limited to endpoint
agents, and can also be used to implement "SIP proxy".

oSIP does not intend to provide a high layer API for controlling "SIP Session"
at this step. Instead, it currently provides an API for the SIP message parser,
SDP message parser, and library to handle "SIP transactions" as defined by the
SIP document.

%prep
%setup -q -n libosip2-%{version}
%patch -p1 -b .x64

%{__perl} -pi.compat -e 's/-l([^2]+2)?/-l\1-2.2.2/g' libosip2.pc.in

%build
%configure --disable-static --includedir=%{_includedir}/osip2-2.2.2
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
mv %{buildroot}%{_mandir}/man1/osip.1 %{buildroot}%{_mandir}/man1/osip2-2.2.2.1
mv %{buildroot}%{_libdir}/libosip2.so %{buildroot}%{_libdir}/libosip2-2.2.2.so
mv %{buildroot}%{_libdir}/libosipparser2.so %{buildroot}%{_libdir}/libosipparser2-2.2.2.so
mv %{buildroot}%{_libdir}/pkgconfig/libosip2.pc %{buildroot}%{_libdir}/pkgconfig/libosip2-2.2.2.pc

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING ChangeLog FEATURES HISTORY NEWS README TODO
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/osip2-2.2.2
%{_includedir}/osip2-2.2.2/osip2
%{_includedir}/osip2-2.2.2/osipparser2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/*.1*

%changelog
* Mon Nov 13 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 2.2.2-8
- Add Obsoletes

* Mon Nov 13 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 2.2.2-7
- Fix up provides/obsoletes/conflicts
- Fix package name

* Sat Nov 11 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 2.2.2-6
- Reconfigure as a compat- package

* Wed Aug 30 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 2.2.2-4
- Bump release and rebuild.

* Thu Feb 23 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.2-3
- Fix for AMD64

* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.2-2
- Rebuild for Fedora Extras 5

* Thu Dec 22 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.2-1
- Upstream update

* Sat Oct 15 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.1-1
- Upstream update
- Disable static library

* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt

* Thu Mar 24 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.0-2
- Renamed osip.1 and moved to -devel

* Thu Mar 24 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.0-1
- Initial RPM release.

libosip2-2.2.2-x64.patch:

--- NEW FILE libosip2-2.2.2-x64.patch ---
--- libosip2-2.2.2/src/osipparser2/osip_parser_cfg.c.x64	2006-02-23 13:29:36.000000000 -0500
+++ libosip2-2.2.2/src/osipparser2/osip_parser_cfg.c	2006-02-23 13:31:48.000000000 -0500
@@ -32,8 +32,15 @@
  * Anyway, this mechanism improves the search time (from binary seach (log(n)) to 1).
  */
 
-#define HASH_TABLE_SIZE 150     /* set this to the hash table size, 150 is the first size
-                                   where no conflicts occur                               */
+#ifndef HASH_TABLE_SIZE
+#ifdef __amd64__
+#define HASH_TABLE_SIZE 450
+#else
+#define HASH_TABLE_SIZE 150     /* set this to the hash table size, 150 is the
+				   first size where no conflicts occur */
+#endif
+#endif
+
 static int hdr_ref_table[HASH_TABLE_SIZE];      /* the hashtable contains indices to the pconfig table    */
 
 /*
@@ -146,6 +153,10 @@
       } else
         {
           /* oops, conflict!-> change the hash table or use another hash function size */
+	  
+	  OSIP_TRACE (osip_trace
+		(__FILE__, __LINE__, OSIP_ERROR, NULL,
+		"conflict with current hashtable size\n"));
           return -1;
         }
     }


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/compat-libosip2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 Nov 2006 20:19:44 -0000	1.1
+++ .cvsignore	14 Nov 2006 20:20:15 -0000	1.2
@@ -0,0 +1 @@
+libosip2-2.2.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/compat-libosip2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 Nov 2006 20:19:44 -0000	1.1
+++ sources	14 Nov 2006 20:20:15 -0000	1.2
@@ -0,0 +1 @@
+40ee3ec89030f0d6dfdb2cf6100e6685  libosip2-2.2.2.tar.gz




More information about the scm-commits mailing list