LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libss7.spec of Package libss7 (Project network:telephony)

# 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-1
Summary:        SS7 protocol handling library
Version:        1.0.2
Release:        26
License:        GPL v2
Group:          Development/Libraries/C and C++
URL:            http://asterisk.org/
Source0:	%{name}-%{version}.tar.bz2
Source1:        baselibs.conf
Patch0:         %{name}-1.0.2-SONAME.patch
Patch1:         %{name}-1.0.2-optflags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  libtonezone-devel
%if 0%{?suse_version} >= 1110 
BuildRequires:	dahdi-devel
BuildRequires:	dahdi-linux-devel

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 protocl handling library
Group:          System/Libraries

%description -n %lname
This package contains shared libraries necessary for applications
that were build with SS7 support.

%package devel
Summary:        Development files for the SS7 protocol handling 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

%setup -q
%patch0 -p1
%patch1 -p1

# 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

# use $(RPM_OPT_FLAGS)
perl -pi -e 's,CFLAGS=.*,CFLAGS=\$(RPM_OPT_FLAGS) -fPIC,' Makefile

make %{?_smp_mflags}

%if 0%{?suse_version} > 1110 
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 ChangeLog NEWS* README

%files devel
%defattr (-,root,root)