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

Revision 9038, 5.0 KB checked in by iwamoto, 10 years ago (diff)

libtasn1: fix CVE-2014-3467,8,9

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