# # spec file for package libpri # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libpri %define lname libpri1_4 Summary: An implementation of Primary Rate ISDN License: GPL-2.0 Group: Development/Libraries/C and C++ Version: 1.6.0 Release: 3.10 Url: http://asterisk.org/ Source: http://downloads.asterisk.org/pub/telephony/libpri/%name-%version.tar.gz Source2: http://downloads.asterisk.org/pub/telephony/libpri/%name-%version.tar.gz.asc Source3: %name.keyring BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: dahdi-linux-devel BuildRequires: libtonezone-devel %description libpri is a C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. It has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent. %package -n %lname Summary: An implementation of Primary Rate ISDN Group: System/Libraries %description -n %lname libpri is a C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. It has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent. %package devel Summary: Development Library of Primary Rate ISDN Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel libpri is a C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. It has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent. This package contains the header files and libraries necessary for developing applications which use libpri. %prep %setup -q # change harcoded /usr/lib path to %_libdir so libs are placed properly # on 64 bit arches too perl -pi -e's,\$\(INSTALL_BASE\)/lib,%_libdir,g' Makefile # if building as non-root make sure the location of restorecon is known perl -pi -e's,restorecon,/sbin/restorecon,g' Makefile # use $(RPM_OPT_FLAGS) perl -pi -e 's,CFLAGS=(.*),CFLAGS=\$(RPM_OPT_FLAGS) $1,' Makefile %build # The developers have added functions in the past (for example, between 1.4.12 # and 1.4.13) without one of: (a) bumping SO version, or (b) ELF symbol # versioning. Therefore, tag all symbols now to make updates/downgrades # guarantee working. echo 'V_%version { global: *; };' >libpri.sym make %{?_smp_mflags} LDFLAGS="-Wl,--version-script=libpri.sym" %install %make_install rm -fv "%buildroot/%_libdir"/*.a %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %doc ChangeLog LICENSE README TODO %_libdir/libpri.so.1.4* %files devel %defattr(-,root,root) %_libdir/libpri.so %_includedir/libpri.h %changelog * Mon Sep 4 2017 jengelh@inai.de - Update to new upstream release 1.6.0 * work around bug in Lucent switches that set the octet 3 extension bit * Sat Jun 28 2014 jengelh@inai.de - Update to new upstream release 1.4.15 (bugfix release) * Fix hole in layer2_persistence option for TE PTMP links. * libpri: Make TE-PTP mode respond to MDL TEI check requests. * http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.15-summary.html - Delete libpri-soname.diff (replaced by changed make call in %%build): switch back to original SONAME (libpri-1_4 -> libpri1_4), and add symvers to it instead. * Thu Jan 24 2013 jengelh@inai.de - Update to new upstream release 1.4.14 (bugfix release) * Normal Clearing in Progress Message was ignored * Mon Oct 3 2011 jengelh@medozas.de - Update to new upstream release 1.4.12 (no user-level changelog available; see ChangeLog file for developer changelog) - Add patch libpri-soname.diff to fix broken SO versioning - Implement correct shlib name (libpri1_4 -> libpri-1_4) * Tue Jan 18 2011 chris@computersalat.de - update to 1.4.11.5 * q921.c: Merged revision 2101 from https://origsvn.digium.com/svn/libpri/branches/1.4 .......... r2101 | rmudgett | 2010-11-05 14:24:01 -0500 (Fri, 05 Nov 2010) | 9 lines Remove all TEIs when NT PTMP starts. Remove all TEIs when a NT PTMP link is started and there are no other links to make sure there are no devices that think they have a TEI. A device may think it has a TEI if the upper layer program is restarted or the system reboots. This fixes the bug portion of JIRA LIBPRI-51/SWP-2453. .......... - for more information about changes please see ChangeLog file * Thu Sep 2 2010 chris@computersalat.de - update to 1.4.11.4 * lot of changes please see ChangeLog file * Fri Jul 30 2010 chris@computersalat.de - update to 1.4.11.3 * pri_internal.h, q931.c: [regression] Calling Number assignment logic change in libpri 1.4.11. Restored the old behaviour if there is more than one calling number in the incoming SETUP message. A network provided number is reported as ANI. (closes issue #17495) Reported by: ibercom Patches: issue_17495_v1.4.11.2.patch uploaded by rmudgett (license 664) issue_17495_v1.4.patch uploaded by rmudgett (license 664) Tested by: ibercom - cleanup spec o updated description o macro so_name for libpri1-4 * Tue Jun 15 2010 chris@computersalat.de - update to 1.4.11.2 * pri_facility.c: Q.SIG calling name in FACILITY message not reported to the upper layer. Q.SIG can send the CallingName, CalledName, and ConnectedName in stand alone FACILITY messages. If the CallingName was not sent in the SETUP message, the caller id name was not reported to the upper layer. (closes issue #17458) Reported by: jsmith Patches: issue17458_post_qsig_name.patch uploaded by rmudgett (license 664) issue17458_post_qsig_name_v1.4.11.1.patch uploaded by rmudgett (license 664) Tested by: rmudgett, jsmith * pri.c: Inband disconnect setting does nothing on BRI spans. The acceptinbanddisconnect flag is not inherited when creating a new TEI and thus rendering the setting (and its respective equivalent in Asterisk) a no-op on BRI setups. (closes issue [#15265]) Reported by: paravoid Patches: inband-bri.diff uploaded by paravoid (license 200) Tested by: paravoid * q931.c, rose.c, rosetest.c: Multi component FACILITY messages only process the first component. The code was only processing the first ROSE component in the facility message. I also updated rosetest.c to have a multiple component ROSE message test. (closes issue #17428) Reported by: patrol-cz Patches: issue17428.patch uploaded by rmudgett (license 664) Tested by: rmudgett, patrol-cz * for more see ChangeLog * Sun Feb 21 2010 chris@computersalat.de - revert to obviously deleted stuff o State of submit-request #28379 was changed by vitsoft: new -> accepted o merged changes - added baselibs.conf * Sat Jan 9 2010 chris@computersalat.de - update to 1.4.10.2 o lot of changes read ChangLog - cleanup spec o added header o sort TAGS o fix RPM_OPT_FLAGS o merged spec changes with changes file o added debug_package_requires - cleanup Source - add subpackage libpri1_4 for shared lib - removed libpri package o not needed * Fri Jul 3 2009 vittorio@vitsoft.bz - libpri 1.4.10.1 * Wed Jul 1 2009 vittorio@vitsoft.bz - libpri 1.4.10 * Wed Mar 18 2009 vittorio@vitsoft.bz - libpri 1.4.9 * Sun Oct 5 2008 vittorio@vitsoft.bz - libpri 1.4.7 * Fri Feb 8 2008 vittorio@vitsoft.bz - libpri 1.4.3 asterisk 1.4 * Wed Oct 17 2007 vittorio@vitsoft.bz - libpri 1.4.2 asterisk 1.4 * Mon Aug 13 2007 vittorio@vitsoft.bz - libpri for asterisk 1.4 * Thu Oct 19 2006 max@suse.de - New versions: libpri-1.2.4, bristuff-0.3.0-PRE-1s - Fix some bugs and match the latest version of Asterisk. * Fri Jul 7 2006 max@suse.de - New versions: libpri-1.2.3, bristuff-0.3.0-PRE-1q, fix some bugs and match the newest versions of Asterisk and zaptel. * Mon Mar 20 2006 max@suse.de - Updated the bristuff patch to version 0.3.0-PRE-1k to match the new version of Asterisk. * Fri Jan 27 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Jan 25 2006 max@suse.de - New versions: libpri-1.2.2, bristuff-0.3.0-PRE-1i * Fri Dec 16 2005 max@suse.de - New version: 1.2.1 - New version of the bristuff patch: 0.3.0-PRE-1c * Wed Aug 10 2005 max@suse.de - New version of the bristuff patch: 0.2.0-rc8n * Mon Jul 18 2005 max@suse.de - New version 1.0.9 - New version of the bristuff patch: 0.2.0-rc8j * Mon Mar 7 2005 max@suse.de - New version of the bristuff patch: 0.2.0-rc7k * Mon Feb 28 2005 max@suse.de - New version: 1.0.6 - New version of the bristuff patch: 0.2.0-rc7i * Thu Jan 13 2005 max@suse.de - New version: 1.0.3 - New version of the bristuff patch: 0.2.0-rc3a * Thu Nov 11 2004 ro@suse.de - fixed file list * Fri Nov 5 2004 max@suse.de - New version: 1.0.2 - New version of the bristuff patch: 0.2.0-rc2a * Thu Aug 19 2004 max@suse.de - Update to bristuff 0.1.0-RC4a - Update to CVS snapshot from 2004-08-13 * Thu Aug 12 2004 max@suse.de - Update to bristuff 0.1.0-RC3. - Update to CVS snapshot from 2004-08-12. - Run ldconfig after (un)installation. * Fri Jul 23 2004 max@suse.de - Update to bristuff 0.1.0-RC2 - Update to CVS snapshot from 2004-07-22 * Wed Jun 23 2004 max@suse.de - New package: libpri - Userspace implementation of the ISDN PRI (S2M) protocols. It supports TE, and NT mode. - CVS snapshot from 2004-05-10, based on 0.6.0. - Added patch to support BRI (S0-Bus) as well.