source: projects/specs/branches/6/lib/libt/libtasn1/libtasn1-vl.spec @ 9505

Revision 9505, 5.1 KB checked in by iwamoto, 9 years ago (diff)

libtasn1: fix CVE-2015-2806

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