Oliver Smith | 1665f59 | 2020-05-14 11:37:35 +0200 | [diff] [blame] | 1 | # |
| 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 Smith | 1665f59 | 2020-05-14 11:37:35 +0200 | [diff] [blame] | 15 | Name: libasn1c |
Oliver Smith | 518be85 | 2020-05-14 11:38:03 +0200 | [diff] [blame] | 16 | Version: 0.0.0 |
Oliver Smith | 1665f59 | 2020-05-14 11:37:35 +0200 | [diff] [blame] | 17 | Release: 0 |
| 18 | Summary: Osmocon ASN.1 decoder and encoder library |
| 19 | License: BSD-2-Clause |
| 20 | Group: Development/Libraries/C and C++ |
| 21 | Url: http://openbsc.osmocom.org/trac/ |
| 22 | |
| 23 | Source: %name-%version.tar.xz |
| 24 | BuildRequires: libtool >= 2 |
| 25 | BuildRequires: pkg-config |
| 26 | BuildRequires: xz |
| 27 | BuildRequires: pkgconfig(libosmocore) >= 0.1.13 |
| 28 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 29 | |
| 30 | %description |
| 31 | Lev Walkins's asn1c runtime, as a shared library and with |
| 32 | modifications for Osmocom. |
| 33 | |
| 34 | Compiles ASN.1 data structures into C source structures that can be |
| 35 | simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER, |
| 36 | EXTENDED-XER, PER. |
| 37 | |
| 38 | %package -n libasn1c1 |
| 39 | Summary: Osmocon ASN.1 decoder and encoder library |
| 40 | Group: System/Libraries |
| 41 | |
| 42 | %description -n libasn1c1 |
| 43 | Lev Walkins's asn1c runtime, as a shared library and with |
| 44 | modifications for Osmocom. |
| 45 | |
| 46 | Compiles ASN.1 data structures into C source structures that can be |
| 47 | simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER, |
| 48 | EXTENDED-XER, PER. |
| 49 | |
| 50 | %package -n libasn1c-devel |
| 51 | Summary: Development files for libasn1c, Osmocom's ASN.1 decoder and encoder library |
| 52 | Group: Development/Libraries/C and C++ |
| 53 | Requires: libasn1c1 = %version |
| 54 | Requires: libtalloc-devel |
| 55 | |
| 56 | %description -n libasn1c-devel |
| 57 | Compiles ASN.1 data structures into C source structures that can be |
| 58 | simply (un)marshalled from and to: BER, DER, CER, BASIC-XER, CXER, |
| 59 | EXTENDED-XER, PER. |
| 60 | |
| 61 | This subpackage contains libraries and header files for developing |
| 62 | applications that want to make use of libasn1c. |
| 63 | |
| 64 | %prep |
| 65 | %setup -q |
| 66 | |
| 67 | %build |
| 68 | echo "%{version}" >.tarball-version |
| 69 | autoreconf -fi |
| 70 | %configure --disable-static |
| 71 | make %{?_smp_mflags} |
| 72 | |
| 73 | %install |
| 74 | %make_install |
| 75 | find "%buildroot/%_libdir" -type f -name "*.la" -delete |
| 76 | |
| 77 | %check |
| 78 | make %{?_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 |