blob: f05fcee0ee1c939b069373871e7ff31623d1f829 [file] [log] [blame]
Oliver Smith1665f592020-05-14 11:37:35 +02001#
2# spec file for package libasn1c
3#
4# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5#
6# All modifications and additions to the file contributed by third parties
7# remain the property of their copyright owners, unless otherwise agreed
8# upon. The license for this file, and modifications and additions to the
9# file, is the same license as for the pristine package itself (unless the
10# license for the pristine package is not an Open Source License, in which
11# case the license is the MIT License). An "Open Source License" is a
12# license that conforms to the Open Source Definition (Version 1.9)
13# published by the Open Source Initiative.
14
Oliver Smith1665f592020-05-14 11:37:35 +020015Name: libasn1c
Oliver Smith518be852020-05-14 11:38:03 +020016Version: 0.0.0
Oliver Smith1665f592020-05-14 11:37:35 +020017Release: 0
18Summary: Osmocon ASN.1 decoder and encoder library
19License: BSD-2-Clause
20Group: Development/Libraries/C and C++
21Url: http://openbsc.osmocom.org/trac/
22
23Source: %name-%version.tar.xz
24BuildRequires: libtool >= 2
25BuildRequires: pkg-config
26BuildRequires: xz
27BuildRequires: pkgconfig(libosmocore) >= 0.1.13
28BuildRoot: %{_tmppath}/%{name}-%{version}-build
29
30%description
31Lev Walkins's asn1c runtime, as a shared library and with
32modifications for Osmocom.
33
34Compiles ASN.1 data structures into C source structures that can be
35simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
36EXTENDED-XER, PER.
37
38%package -n libasn1c1
39Summary: Osmocon ASN.1 decoder and encoder library
40Group: System/Libraries
41
42%description -n libasn1c1
43Lev Walkins's asn1c runtime, as a shared library and with
44modifications for Osmocom.
45
46Compiles ASN.1 data structures into C source structures that can be
47simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
48EXTENDED-XER, PER.
49
50%package -n libasn1c-devel
51Summary: Development files for libasn1c, Osmocom's ASN.1 decoder and encoder library
52Group: Development/Libraries/C and C++
53Requires: libasn1c1 = %version
54Requires: libtalloc-devel
55
56%description -n libasn1c-devel
57Compiles ASN.1 data structures into C source structures that can be
58simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER,
59EXTENDED-XER, PER.
60
61This subpackage contains libraries and header files for developing
62applications that want to make use of libasn1c.
63
64%prep
65%setup -q
66
67%build
68echo "%{version}" >.tarball-version
69autoreconf -fi
70%configure --disable-static
71make %{?_smp_mflags}
72
73%install
74%make_install
75find "%buildroot/%_libdir" -type f -name "*.la" -delete
76
77%check
78make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
79
80%post -n libasn1c1 -p /sbin/ldconfig
81%postun -n libasn1c1 -p /sbin/ldconfig
82
83%files -n libasn1c1
84%defattr(-,root,root)
85%_libdir/libasn1c.so.1*
86
87%files -n libasn1c-devel
88%defattr(-,root,root)
89%doc COPYING
90%_includedir/asn1c/
91%_libdir/pkgconfig/*.pc
92%_libdir/libasn1c.so
93
94%changelog