2015-12-23 19:56:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package libasn1c
|
|
|
|
#
|
2018-03-25 11:14:24 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-12-23 19:56:50 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-11 14:30:54 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-23 19:56:50 +01:00
|
|
|
#
|
|
|
|
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
Name: libasn1c
|
2018-12-11 14:30:54 +01:00
|
|
|
Version: 0.9.31
|
2015-12-23 19:52:38 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Osmocon ASN.1 decoder and encoder library
|
2017-10-03 00:35:57 +02:00
|
|
|
License: BSD-2-Clause
|
2015-12-23 19:52:38 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://openbsc.osmocom.org/trac/
|
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: xz
|
2015-12-23 19:56:50 +01:00
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 0.1.13
|
2015-12-23 19:52:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Lev Walkins's asn1c runtime, as a shared library and with
|
|
|
|
modifications for Osmocom.
|
|
|
|
|
|
|
|
Compiles ASN.1 data structures into C source structures that can be
|
|
|
|
simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
|
|
|
|
EXTENDED-XER, PER.
|
|
|
|
|
|
|
|
%package -n libasn1c0
|
|
|
|
Summary: Osmocon ASN.1 decoder and encoder library
|
2017-04-29 02:16:23 +02:00
|
|
|
Group: System/Libraries
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
%description -n libasn1c0
|
|
|
|
Lev Walkins's asn1c runtime, as a shared library and with
|
|
|
|
modifications for Osmocom.
|
|
|
|
|
|
|
|
Compiles ASN.1 data structures into C source structures that can be
|
|
|
|
simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
|
|
|
|
EXTENDED-XER, PER.
|
|
|
|
|
|
|
|
%package -n libasn1c-devel
|
|
|
|
Summary: Development files for libasn1c, Osmocom's ASN.1 decoder and encoder library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libasn1c0 = %version
|
2018-03-25 11:14:24 +02:00
|
|
|
Requires: pkgconfig(talloc)
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
%description -n libasn1c-devel
|
|
|
|
Compiles ASN.1 data structures into C source structures that can be
|
|
|
|
simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
|
|
|
|
EXTENDED-XER, PER.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libasn1c.
|
|
|
|
|
|
|
|
%prep
|
2017-04-29 02:16:23 +02:00
|
|
|
%setup -q
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
%build
|
2018-12-11 14:35:37 +01:00
|
|
|
echo %version >.tarball-version
|
2017-04-29 02:16:23 +02:00
|
|
|
autoreconf -fi
|
2015-12-23 19:52:38 +01:00
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-10-03 00:35:57 +02:00
|
|
|
%make_install
|
|
|
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
%check
|
2018-03-25 11:14:24 +02:00
|
|
|
if ! make check %{?_smp_mflags}; then
|
|
|
|
find . -name testsuite.log -exec cat "{}" "+"
|
|
|
|
fi
|
2015-12-23 19:52:38 +01:00
|
|
|
|
|
|
|
%post -n libasn1c0 -p /sbin/ldconfig
|
|
|
|
%postun -n libasn1c0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libasn1c0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libasn1c.so.0*
|
|
|
|
|
|
|
|
%files -n libasn1c-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%_includedir/asn1c/
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_libdir/libasn1c.so
|
|
|
|
|
|
|
|
%changelog
|