File libosmo-asn1-rrc.spec of Package libosmo-asn1-rrc
#
# spec file for package libosmo-asn1-rrc
#
# 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-rrc
Version: 0.0.0.git1419776931.de23aba
Release: 0
Summary: ASN.1 library for RRC protocol
License: BSD-2-Clause
Group: Development/Libraries/C and C++
Url: https://opensource.srlabs.de/projects/snoopsnitch
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: flex
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libasn1c)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libosmo-asn1-rrc ASN.1 library for RRC protocol.
%package -n libosmo-asn1-rrc%{soname}
Summary: Utility library for ASN.1 of RRC
Group: Development/Libraries/C and C++
%description -n libosmo-asn1-rrc%{soname}
libosmo-asn1-rrc ASN.1 library for RRC protocol.
%package -n libosmo-asn1-rrc-devel
Summary: Development headers for libosmo-asn1-rrc
Group: Development/Libraries/C and C++
Requires: libosmo-asn1-rrc%{soname} = %{version}
%description -n libosmo-asn1-rrc-devel
libosmo-asn1-rrc ASN.1 library for RRC protocol.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmo-asn1-rrc.
%prep
%setup -q
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libosmo-asn1-rrc%{soname} -p /sbin/ldconfig
%postun -n libosmo-asn1-rrc%{soname} -p /sbin/ldconfig
%files -n libosmo-asn1-rrc%{soname}
%defattr(-,root,root)
%{_libdir}/libosmo-asn1-rrc.so.*
%files -n libosmo-asn1-rrc-devel
%defattr(-,root,root)
%dir %{_includedir}/osmocom
%{_includedir}/osmocom/rrc
%{_libdir}/libosmo-asn1-rrc.so
%{_libdir}/libosmo-asn1-rrc.a
%{_libdir}/pkgconfig/libosmo-asn1-rrc.pc
%changelog