File libosmo-asn1-tcap.spec of Package libosmo-asn1-tcap

#
# spec file for package libosmo-asn1-tcap
#
# Copyright (c) 2014, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


%define soname	0
Name:           libosmo-asn1-tcap
Version:        0.0.0.git1279487758.64ab12c
Release:        0
Summary:        ASN.1 library for TCAP protocol (SS7)
License:        BSD-2-Clause
Group:          Development/Libraries/C and C++
Url:            http://cgit.osmocom.org/libosmo-asn1-tcap/
Source:         %{name}-%{version}.tar.xz
Patch:		libosmo-asn1-tcap-fix-includes.diff
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  flex
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libasn1c)
# needed for osmocom/core/talloc.h:
BuildRequires:  pkgconfig(libosmocore) >= 0.1.13
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libosmo-asn1-tcap ASN.1 library for TCAP protocol (SS7).

%package -n libosmo-asn1-tcap%{soname}
Summary:        Utility library for ASN.1 of TCAP
Group:          Development/Libraries/C and C++

%description -n libosmo-asn1-tcap%{soname}
libosmo-asn1-tcap ASN.1 library for TCAP protocol (SS7).

%package -n libosmo-asn1-tcap-devel
Summary:        Development headers for libosmo-asn1-tcap
Group:          Development/Libraries/C and C++
Requires:       libosmo-asn1-tcap%{soname} = %{version}

%description -n libosmo-asn1-tcap-devel
libosmo-asn1-tcap ASN.1 library for TCAP protocol (SS7).

This subpackage contains libraries and header files for developing
applications that want to make use of libosmo-asn1-tcap.


%prep
%setup -q
%patch -p1

%build
autoreconf -fiv
%configure
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post   -n libosmo-asn1-tcap%{soname} -p /sbin/ldconfig
%postun -n libosmo-asn1-tcap%{soname} -p /sbin/ldconfig

%files -n libosmo-asn1-tcap%{soname}
%defattr(-,root,root)
%{_libdir}/libosmo-asn1-tcap.so.*

%files -n libosmo-asn1-tcap-devel
%defattr(-,root,root)
%dir %{_includedir}/osmocom
%{_includedir}/osmocom/tcap
%{_libdir}/libosmo-asn1-tcap.so
%{_libdir}/libosmo-asn1-tcap.a
%{_libdir}/pkgconfig/libosmo-asn1-tcap.pc

%changelog
openSUSE Build Service is sponsored by