92 lines
2.8 KiB
RPMSpec
92 lines
2.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package libss7
|
||
|
#
|
||
|
# Copyright (c) 2022 SUSE LLC
|
||
|
#
|
||
|
# 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.1
|
||
|
Release: 0
|
||
|
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
|
||
|
|
||
|
%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
|
||
|
%autosetup -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
|
||
|
perl -i -pe 's{ -Werror }{ }' Makefile
|
||
|
|
||
|
%build
|
||
|
%make_build
|
||
|
|
||
|
%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
|
||
|
%license LICENSE
|
||
|
%_libdir/libss7.so.2*
|
||
|
|
||
|
%files devel
|
||
|
%doc NEWS* README ChangeLog
|
||
|
%license LICENSE
|
||
|
%_libdir/libss7.so
|
||
|
%_includedir/libss7.h
|
||
|
|
||
|
%changelog
|