12662
|
1 |
#
|
18066
|
2 |
# Copyright 2010 Sun Microsystems Inc.
|
12662
|
3 |
# This file and all modifications and additions to the pristine
|
|
4 |
# package are under the same license as the package itself.
|
|
5 |
#
|
16434
|
6 |
%define owner jefftsai
|
14822
|
7 |
# bugdb: savannah.gnu.org
|
12662
|
8 |
#
|
16431
|
9 |
|
17299
|
10 |
%define OSR 11423:3.0
|
16431
|
11 |
|
12662
|
12 |
Name: libtasn1
|
18066
|
13 |
Version: 2.7
|
12662
|
14 |
Release: 0
|
17865
|
15 |
Vendor: gnu.org
|
12662
|
16 |
Distribution: Java Desktop System
|
18066
|
17 |
License: Library is LGPLv2.1, binaries are GPLv3
|
12662
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_datadir}/doc
|
|
20 |
Autoreqprov: on
|
12663
|
21 |
URL: http://josefsson.org/libtasn1/
|
12662
|
22 |
Epoch: 2
|
|
23 |
Source: ftp://ftp.gnutls.org/pub/gnutls/libtasn1/%{name}-%{version}.tar.gz
|
14588
|
24 |
|
12676
|
25 |
Summary: Libtasn is a library C for manipulating ASN.1 objects.
|
12662
|
26 |
|
|
27 |
%description
|
|
28 |
Libtasn is a library written in C for manipulating ASN.1 objects including
|
14588
|
29 |
DER/BER encoding and DER/BER decoding. Libtasn is used by GnuTLS to manipulate X.509 objects and by GNU Shishi to handle Kerberos V5 packets.
|
12662
|
30 |
%package -n libtasn1-devel
|
|
31 |
Summary: Static libraries and header files for libtasn1
|
|
32 |
Group: Applications/Text
|
|
33 |
Requires: libtasn1 => %{version}-%{release}
|
|
34 |
|
14588
|
35 |
|
12662
|
36 |
%description -n libtasn1-devel
|
|
37 |
The libtasn1-devel package includes the static libraries and header
|
|
38 |
files needed for tasn1 development.
|
|
39 |
|
|
40 |
%files -n libtasn1-devel
|
|
41 |
%defattr(-, root, root)
|
|
42 |
%{_libdir}/*.so*
|
|
43 |
%{_includedir}/*
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q -n %{name}-%{version}
|
|
47 |
|
|
48 |
%build
|
|
49 |
%ifos linux
|
|
50 |
if [ -x /usr/bin/getconf ]; then
|
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
52 |
fi
|
|
53 |
%else
|
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
55 |
%endif
|
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
57 |
CPUS=1
|
|
58 |
fi
|
|
59 |
|
|
60 |
./configure --prefix=%{_prefix} \
|
|
61 |
--bindir=%{_bindir} \
|
|
62 |
--libdir=%{_libdir} \
|
|
63 |
--sysconfdir=%{_sysconfdir} \
|
|
64 |
--includedir=%{_includedir} \
|
|
65 |
--mandir=%{_mandir} \
|
|
66 |
--infodir=%{_infodir} \
|
|
67 |
--disable-rpath \
|
|
68 |
--disable-static \
|
|
69 |
--enable-shared
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
make -j$CPUS
|
|
74 |
|
|
75 |
%install
|
|
76 |
make install DESTDIR=$RPM_BUILD_ROOT mkdir_p="mkdir -p"
|
|
77 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
78 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
79 |
|
|
80 |
%clean
|
|
81 |
rm -rf $RPM_BUILD_ROOT
|
|
82 |
|
|
83 |
%changelog
|
18066
|
84 |
* Wed Jun 02 2010 - [email protected]
|
|
85 |
- Bump to 2.7.
|
17992
|
86 |
* Fri May 14 2010 - [email protected]
|
18066
|
87 |
- Bump to 2.6.
|
17992
|
88 |
- Upstream patch -01-build
|
17721
|
89 |
* Tue Mar 17 2010 - [email protected]
|
18066
|
90 |
- Bump to 2.5.
|
17391
|
91 |
* Tue Jan 17 2010 - [email protected]
|
18066
|
92 |
- Bump to 2.4.
|
17299
|
93 |
* Tue Jan 12 2010 - [email protected]
|
18066
|
94 |
- Change OSR which contains GPLv3.
|
16283
|
95 |
* Sat Aug 15 2009 - [email protected]
|
|
96 |
- Bump to 2.3.
|
16158
|
97 |
* Tue Jul 28 2009 - [email protected]
|
|
98 |
- Bump to 2.2.
|
14928
|
99 |
* Mon Jan 19 2008 - [email protected]
|
|
100 |
- Bump to 1.8.
|
|
101 |
- Remove patch -01-asn1-deprecated, upstreamed.
|
|
102 |
* Fri Dec 26 2008 - [email protected]
|
14822
|
103 |
- Change the bug db address
|
14588
|
104 |
* Thu Nov 13 2008 - [email protected]
|
|
105 |
- Bump to 1.6.
|
|
106 |
- Add patch -01-asn1-deprecated to
|
18066
|
107 |
fix #106548.
|
14540
|
108 |
* Fri Oct 31 2008 - [email protected]
|
|
109 |
- Change the license tag.
|
12676
|
110 |
* Tue Jun 17 2008 - [email protected]
|
|
111 |
- change it according to review result.
|
12662
|
112 |
* Mon Jun 16 2008 - [email protected]
|
12663
|
113 |
- change url.
|
|
114 |
* Mon Jun 16 2008 - [email protected]
|
18066
|
115 |
- Move spec files from SFE.
|
12662
|
116 |
* Tue Mar 28 2007 - [email protected]
|
|
117 |
- Split to two spec files.
|