# # spec file for package libss7-1 # # 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-1 Summary: SS7 protocol handling library Version: 1.0.2 Release: 1.17 License: GPL-2.0 Group: System/Libraries URL: http://asterisk.org/ Source: libss7-%version.tar.bz2 Source2: baselibs.conf Patch1: libss7-1.0.2-optflags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: dahdi-linux-devel BuildRequires: libtonezone-devel BuildRequires: perl %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. This package contains shared libraries necessary for applications that were built with SS7 support. %package devel Summary: Development files for the SS7 protocol handling library Group: Development/Libraries/C and C++ Requires: %name = %version Conflicts: libss7-devel %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 -qn libss7-%version %patch -P 1 -p1 # 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 -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root) %_libdir/libss7.so.1* %files devel %defattr (-,root,root) %doc ChangeLog LICENSE NEWS* README %_libdir/libss7.so %_includedir/libss7.h %changelog * Sat Jun 28 2014 jengelh@inai.de - Remove libss7-1.0.2-SONAME.patch (no longer deemed useful) * 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