1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | Summary: This is the ASN.1 library used in GNUTLS |
---|
3 | Name: libtasn1 |
---|
4 | Version: 2.10 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: LGPL |
---|
7 | Group: System Environment/Libraries |
---|
8 | URL: http://josefsson.org/libtasn1/ |
---|
9 | |
---|
10 | Source: http://josefsson.org/gnutls/releases/libtasn1/libtasn1-%{version}.tar.gz |
---|
11 | |
---|
12 | # imported from Ubuntu |
---|
13 | Patch200: CVE-2012-1569.diff |
---|
14 | Patch201: CVE-2014-3467-3468.patch |
---|
15 | Patch202: CVE-2014-3469.patch |
---|
16 | Patch203: CVE-2015-2806.patch |
---|
17 | Patch204: CVE-2015-3622.patch |
---|
18 | Patch205: CVE-2016-4008-1.patch |
---|
19 | Patch206: CVE-2016-4008-2.patch |
---|
20 | |
---|
21 | # Vine |
---|
22 | Patch1000: libtasn1-stdio.patch |
---|
23 | |
---|
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
25 | BuildRequires: bison, gcc-c++ |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | |
---|
30 | %description |
---|
31 | This is the ASN.1 library used in GNUTLS. |
---|
32 | |
---|
33 | %package devel |
---|
34 | Summary: Header files, libraries and development documentation for %{name} |
---|
35 | Group: Development/Libraries |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | |
---|
38 | %description devel |
---|
39 | This package contains the header files, static libraries and development |
---|
40 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
41 | you will need to install %{name}-devel. |
---|
42 | |
---|
43 | %package -n compat32-%{name} |
---|
44 | Summary: This is the ASN.1 library used in GNUTLS |
---|
45 | Group: System Environment/Libraries |
---|
46 | Requires: %{name} = %{version}-%{release} |
---|
47 | |
---|
48 | %description -n compat32-%{name} |
---|
49 | This is the ASN.1 library used in GNUTLS. |
---|
50 | |
---|
51 | %package -n compat32-%{name}-devel |
---|
52 | Summary: Header files, libraries and development documentation for %{name} |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: compat32-%{name} = %{version}-%{release} |
---|
55 | Requires: %{name}-devel = %{version}-%{release} |
---|
56 | |
---|
57 | %description -n compat32-%{name}-devel |
---|
58 | This package contains the header files, static libraries and development |
---|
59 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
60 | you will need to install %{name}-devel. |
---|
61 | |
---|
62 | %prep |
---|
63 | %setup -q |
---|
64 | %patch200 -p1 -b .CVE-2012-1569 |
---|
65 | %patch201 -p1 -b .CVE-2014-3467-3468 |
---|
66 | %patch202 -p1 -b .CVE-2014-3469 |
---|
67 | %patch203 -p1 -b .CVE-2015-2806 |
---|
68 | |
---|
69 | %patch204 -p1 -b .CVE-2015-3622 |
---|
70 | %patch205 -p1 -b .CVE-2016-4008-1 |
---|
71 | %patch206 -p1 -b .CVE-2016-4008-2 |
---|
72 | |
---|
73 | %patch1000 -p1 -b .stdio |
---|
74 | |
---|
75 | %build |
---|
76 | %configure --disable-static |
---|
77 | make %{?_smp_mflags} |
---|
78 | |
---|
79 | %install |
---|
80 | rm -rf %{buildroot} |
---|
81 | %makeinstall |
---|
82 | rm -f %{buildroot}%{_infodir}/dir |
---|
83 | |
---|
84 | ### Clean up buildroot |
---|
85 | rm -f %{buildroot}%{_libdir}/*.la |
---|
86 | |
---|
87 | %post -p /sbin/ldconfig |
---|
88 | |
---|
89 | %postun -p /sbin/ldconfig |
---|
90 | |
---|
91 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
92 | |
---|
93 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf %{buildroot} |
---|
97 | |
---|
98 | %files |
---|
99 | %defattr(-, root, root, 0755) |
---|
100 | %doc AUTHORS ChangeLog COPYING* NEWS README THANKS |
---|
101 | %doc %{_mandir}/man1/asn1* |
---|
102 | %{_libdir}/*.so.* |
---|
103 | %{_bindir}/asn1Coding |
---|
104 | %{_bindir}/asn1Decoding |
---|
105 | %{_bindir}/asn1Parser |
---|
106 | |
---|
107 | %files devel |
---|
108 | %defattr(-, root, root, 0755) |
---|
109 | %doc doc/*.ps doc/TODO |
---|
110 | %{_includedir}/*.h |
---|
111 | %{_libdir}/*.so |
---|
112 | #%{_bindir}/libtasn1-config |
---|
113 | %{_libdir}/pkgconfig/libtasn1.pc |
---|
114 | #%{_datadir}/aclocal/libtasn1.m4 |
---|
115 | %{_infodir}/libtasn1* |
---|
116 | %{_mandir}/man3/*asn1* |
---|
117 | |
---|
118 | # compat32 |
---|
119 | %if %{build_compat32} |
---|
120 | %files -n compat32-%{name} |
---|
121 | %defattr(-, root, root, 0755) |
---|
122 | %{_libdir}/*.so.* |
---|
123 | |
---|
124 | %files -n compat32-%{name}-devel |
---|
125 | %defattr(-, root, root, 0755) |
---|
126 | %{_libdir}/*.so |
---|
127 | %{_libdir}/pkgconfig/libtasn1.pc |
---|
128 | %endif |
---|
129 | |
---|
130 | %changelog |
---|
131 | * Sat Jul 23 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.10-1 |
---|
132 | - updated to 2.10. |
---|
133 | - dropped Patch100-140. |
---|
134 | - imported Patch200-203 instead of Patch100-140. |
---|
135 | - imported Patch204-206 to fix CVE-2015-3622 and CVE-2016-4008. |
---|
136 | - added Patch1000. |
---|
137 | |
---|
138 | * Mon Apr 13 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.9-4 |
---|
139 | - add patch140 for fix CVE-2015-2806 |
---|
140 | |
---|
141 | * Wed Oct 29 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.9-3 |
---|
142 | - add patch110-130 for fix CVE-2014-3467,8,9 |
---|
143 | |
---|
144 | * Mon Apr 30 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.9-2 |
---|
145 | - add patch100 for fix CVE-2012-1569 (asn1_get_length_der) |
---|
146 | - add vendor/distri tags |
---|
147 | |
---|
148 | * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.9-1 |
---|
149 | - Updated to release 2.9 |
---|
150 | |
---|
151 | * Sat Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.8-1 |
---|
152 | - Updated to release 2.8 |
---|
153 | |
---|
154 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> - 2.2-3 |
---|
155 | - build with rpm-4.8.1-1 for pkg-config file |
---|
156 | |
---|
157 | * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 2.2-2 |
---|
158 | - added compat32 package for x86_64 arch support |
---|
159 | - added --disable-static %%configure option |
---|
160 | |
---|
161 | * Sat May 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.2-1vl5 |
---|
162 | - Updated to release 2.2 |
---|
163 | |
---|
164 | * Sun Apr 26 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.1-1vl5 |
---|
165 | - Updated to release 2.1 |
---|
166 | |
---|
167 | * Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0-1vl5 |
---|
168 | - Updated to release 2.0 |
---|
169 | - spec in UTF-8 |
---|
170 | - fixed %files devel (comment out %{_bindir}/libtasn1-config) |
---|
171 | |
---|
172 | * Wed Jan 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.8-1vl5 |
---|
173 | - Updated to release 1.8 |
---|
174 | - fixed %files devel (comment out %{_datadir}/aclocal/libtasn1.m4) |
---|
175 | |
---|
176 | * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3-1vl5 |
---|
177 | - initial build for Vine |
---|
178 | |
---|
179 | * Tue Apr 17 2007 Dries Verachtert <dries@ulyssis.org> - 0.3.9-1 |
---|
180 | - Updated to release 0.3.9. |
---|
181 | |
---|
182 | * Sat Nov 18 2006 Dries Verachtert <dries@ulyssis.org> - 0.3.8-1 |
---|
183 | - Updated to release 0.3.8. |
---|
184 | |
---|
185 | * Tue Sep 26 2006 Dries Verachtert <dries@ulyssis.org> - 0.3.5-1 |
---|
186 | - Updated to release 0.3.5. |
---|
187 | |
---|
188 | * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.3.0-1.2 |
---|
189 | - Rebuild for Fedora Core 5. |
---|
190 | |
---|
191 | * Fri Mar 03 2006 Dries Verachtert <dries@ulyssis.org> - 0.3.0-1 |
---|
192 | - Updated to release 0.3.0. |
---|
193 | |
---|
194 | * Sun Feb 12 2006 Dries Verachtert <dries@ulyssis.org> - 0.2.18-1 |
---|
195 | - Updated to release 0.2.18. |
---|
196 | |
---|
197 | * Fri Nov 11 2005 Dries Verachtert <dries@ulyssis.org> - 0.2.17-1 |
---|
198 | - Updated to release 0.2.17. |
---|
199 | |
---|
200 | * Mon May 17 2004 Dag Wieers <dag@wieers.com> - 0.2.9-1 |
---|
201 | - Updated to release 0.2.9. |
---|
202 | |
---|
203 | * Wed Dec 03 2003 Dag Wieers <dag@wieers.com> - 0.2.5-0 |
---|
204 | - Initial package. (using DAR) |
---|