Packaging: clean spec file
[platform/upstream/libtasn1.git] / packaging / libtasn1.spec
1 Name:           libtasn1
2 Version:        4.0
3 Release:        0
4 License:        LGPL-2.1+ or GPL-3.0
5 Summary:        ASN
6 Url:            http://ftp.gnu.org/gnu/libtasn1/
7 Group:          Security/Crypto Libraries
8 Source:         %{name}-%{version}.tar.gz
9 Source99:       baselibs.conf
10 Source1001:     libtasn1.manifest
11 BuildRequires:  info
12 BuildRequires:  pkg-config
13 BuildRequires:  makeinfo
14 BuildRequires:  help2man
15
16 %description
17 This is the ASN.1 library used in GNUTLS. More up to date information
18 can be found at http://www.gnu.org/software/gnutls and
19 http://www.gnutls.org
20
21 %package tools
22 Summary:        ASN
23 Group:          Security/Crypto Libraries
24 Requires:       %{name} = %{version}
25
26 %description tools
27 This is the ASN.1 library used in GNUTLS. More up to date information
28 can be found at http://www.gnu.org/software/gnutls and
29 http://www.gnutls.org
30
31 %package devel
32 Summary:        ASN
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}
35
36 %description devel
37 This is the ASN.1 library used in GNUTLS. More up to date information
38 can be found at http://www.gnu.org/software/gnutls and
39 http://www.gnutls.org
40
41 %prep
42 %setup -q
43 cp %{SOURCE1001} .
44
45 %build
46 touch ChangeLog
47 %reconfigure --disable-static
48 %__make %{?_smp_mflags}
49
50 %install
51 %make_install
52
53 %post -p /sbin/ldconfig
54
55 %postun  -p /sbin/ldconfig
56
57 %docs_package
58
59 %files tools
60 %manifest %{name}.manifest
61 %defattr(-, root, root)
62 %{_bindir}/*
63
64 %files
65 %manifest %{name}.manifest
66 %defattr(-, root, root)
67 %license COPYING COPYING.LIB
68 %{_libdir}/*.so.*
69
70 %files devel
71 %manifest %{name}.manifest
72 %defattr(-, root, root)
73 %{_includedir}/*.h
74 %{_libdir}/*.so
75 %{_libdir}/pkgconfig/libtasn1.pc