# # spec file for package libss7 # # Copyright (c) 2011 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: libss7 %define lname libss7-2_0 Summary: SS7 protocol handling and signalling library Version: 2.0.0 Release: 4.16 License: GPL-2.0 Group: Development/Libraries/C and C++ URL: http://asterisk.org/ Source: http://downloads.asterisk.org/pub/telephony/libss7/%name-%version.tar.gz Source2: http://downloads.asterisk.org/pub/telephony/libss7/%name-%version.tar.gz.asc Source3: baselibs.conf BuildRequires: dahdi-linux-devel BuildRequires: libtonezone-devel BuildRequires: perl BuildRoot: %_tmppath/%name-%version-build %description libss7 is a userspace library that is used for providing SS7 protocol services to applications. It has a working MTP2, MTP3, and ISUP for ITU and ANSI style SS7, however it was written in a manner that will easily allow support for other various national specific variants in the future. For a working reference implementation, see the various link test programs, as well as the Asterisk Open Source PBX. %package -n %lname Summary: SS7 protocol handling and signalling library Group: System/Libraries %description -n %lname This package contains shared libraries necessary for applications that were built with SS7 support. %package devel Summary: Development files for the SS7 signalling library Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel This package contains the header files and libraries necessary for developing applications which use libss7. Install this package if you want to develop applications which depend on libss7. %prep %setup -q # change harcoded /usr/lib path to %_libdir so libs are placed properly # on 64 bit arches too perl -i -pe 's{\$\(INSTALL_BASE\)/lib}{%_libdir}g' Makefile perl -i -pe 's{^CFLAGS=.*}{CFLAGS=%optflags -fPIC}' Makefile %build make %{?_smp_mflags} %install %make_install find "%buildroot" -type f -name "*.a" -delete; %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr (-,root,root) %doc LICENSE %_libdir/libss7.so.2* %files devel %defattr (-,root,root) %doc NEWS* README ChangeLog %_libdir/libss7.so %_includedir/libss7.h %changelog * Sat Jun 28 2014 jengelh@inai.de - Update to new upstream release 2.0.0 * Omnibus libss7 update. New features: Added additional cause codes, Transmission Medium Requirement setting and connected line to CPG messages. * Large patch that improves ISUP timers and Q.764 compatibility. * http://downloads.asterisk.org/pub/telephony/libss7/libss7-2.0.0-summary.html - Removed libss7-1.0.2-SONAME.patch (no longer deemed useful) - Removed libss7-1.0.2-optflags.patch (applied upstream) * Mon Oct 10 2011 chris@computersalat.de - fix deps for SLE_10 * dahdi-linux-devel - fix build for <= 1110 * %%make_install -> %%makeinstall * Tue Oct 4 2011 jengelh@medozas.de - Remove redundant/unwanted tags/sections (cf. specfile guidelines) - Enable parallel building - Remove static libraries - Change SOVERSION from 1.0 to 1 (less error-prone) * Thu Jan 21 2010 chris@computersalat.de - update to 1.0.2 - added baselibs.conf - clenaup spec o added header o sort TAGS o fix Build-/deps o shared lib to subpkg o removed base pkg, not needed - added .changes file o moved spec changelog to .changes file - fix for build without RPM_OPT_FLAGS o added optflags patch * Mon Jan 21 2008 vittorio@vitsoft.bz - libss7 svn