]> git.pld-linux.org Git - packages/asn1c.git/blob - asn1c.spec
- updated to 0.9.28
[packages/asn1c.git] / asn1c.spec
1 Summary:        The ASN.1 to C compiler
2 Summary(pl.UTF-8):      Kompilator ASN.1 do C
3 Name:           asn1c
4 Version:        0.9.28
5 Release:        1
6 License:        BSD
7 Group:          Development/Languages
8 Source0:        http://lionet.info/soft/%{name}-%{version}.tar.gz
9 # Source0-md5:  e78906866d7ea784a58b3d340bdec8ea
10 URL:            http://github.com/vlm/asn1c
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  automake
13 BuildRequires:  libtool >= 2:2
14 BuildRequires:  sed >= 4.0
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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
25 podanej notacji abstrakcyjnej.
26
27 %prep
28 %setup -q
29
30 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' examples/crfc2asn1.pl
31
32 %build
33 %{__libtoolize}
34 %{__aclocal} -I m4
35 %{__autoconf}
36 %{__autoheader}
37 %{__automake}
38 %configure \
39         --disable-silent-rules
40
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 # packaged as %doc
50 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/asn1c
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
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
62 %{_datadir}/asn1c
63 %{_mandir}/man1/asn1c.1*
64 %{_mandir}/man1/enber.1*
65 %{_mandir}/man1/unber.1*
This page took 0.077148 seconds and 3 git commands to generate.