]>
Commit | Line | Data |
---|---|---|
33ad9ad1 | 1 | Summary: The ASN.1 to C compiler |
c7b960c0 | 2 | Summary(pl.UTF-8): Kompilator ASN.1 do C |
aa76a69d | 3 | Name: asn1c |
d305999c | 4 | Version: 0.9.28 |
7673f1d9 | 5 | Release: 1 |
33ad9ad1 ER |
6 | License: BSD |
7 | Group: Development/Languages | |
aa76a69d | 8 | Source0: http://lionet.info/soft/%{name}-%{version}.tar.gz |
d305999c JB |
9 | # Source0-md5: e78906866d7ea784a58b3d340bdec8ea |
10 | URL: http://github.com/vlm/asn1c | |
11 | BuildRequires: autoconf >= 2.50 | |
b15dd1c4 | 12 | BuildRequires: automake |
d305999c JB |
13 | BuildRequires: libtool >= 2:2 |
14 | BuildRequires: sed >= 4.0 | |
aa76a69d | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aa76a69d | 16 | |
17 | %description | |
18 | The asn1c compiler turns ASN.1 specifications into C language source | |
19 | files containing the BER/CER/DER/XER encoders and decoders for the | |
20 | given abstract notation. | |
21 | ||
36a8b30f JR |
22 | %description -l pl.UTF-8 |
23 | Kompilator asn1c zamienia specyfikacje ASN.1 na pliki źródłowe w | |
24 | języku C zawierające funkcje kodujące i dekodujące BER/CER/DER/XER dla | |
b15dd1c4 JB |
25 | podanej notacji abstrakcyjnej. |
26 | ||
aa76a69d | 27 | %prep |
28 | %setup -q | |
29 | ||
d305999c JB |
30 | %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' examples/crfc2asn1.pl |
31 | ||
aa76a69d | 32 | %build |
d305999c JB |
33 | %{__libtoolize} |
34 | %{__aclocal} -I m4 | |
aa76a69d | 35 | %{__autoconf} |
36 | %{__autoheader} | |
37 | %{__automake} | |
d305999c JB |
38 | %configure \ |
39 | --disable-silent-rules | |
40 | ||
aa76a69d | 41 | %{__make} |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
b15dd1c4 | 45 | |
d305999c | 46 | %{__make} install \ |
33ad9ad1 | 47 | DESTDIR=$RPM_BUILD_ROOT |
aa76a69d | 48 | |
d305999c JB |
49 | # packaged as %doc |
50 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/asn1c | |
51 | ||
aa76a69d | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
d305999c JB |
57 | %doc AUTHORS BUGS ChangeLog FAQ LICENSE README.md TODO doc/asn1c-{quick,usage}.pdf |
58 | %attr(755,root,root) %{_bindir}/asn1c | |
59 | %attr(755,root,root) %{_bindir}/crfc2asn1.pl | |
60 | %attr(755,root,root) %{_bindir}/enber | |
61 | %attr(755,root,root) %{_bindir}/unber | |
b15dd1c4 | 62 | %{_datadir}/asn1c |
d305999c JB |
63 | %{_mandir}/man1/asn1c.1* |
64 | %{_mandir}/man1/enber.1* | |
65 | %{_mandir}/man1/unber.1* |