[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | Summary: This is the ASN.1 library used in GNUTLS |
---|
| 3 | Name: libtasn1 |
---|
[2335] | 4 | Version: 2.9 |
---|
[9505] | 5 | Release: 4%{?_dist_release} |
---|
[521] | 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 |
---|
[9038] | 11 | Patch100: libtasn1-2.9-CVE-2012-1569.patch |
---|
| 12 | Patch110: CVE-2014-3467.patch |
---|
| 13 | Patch120: CVE-2014-3468.patch |
---|
| 14 | Patch130: CVE-2014-3469.patch |
---|
[9505] | 15 | Patch140: libtasn1-2.x-CVE-2015-2806.patch |
---|
[9038] | 16 | |
---|
[521] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: bison, gcc-c++ |
---|
| 19 | |
---|
[9038] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
[521] | 23 | %description |
---|
| 24 | This is the ASN.1 library used in GNUTLS. |
---|
| 25 | |
---|
| 26 | %package devel |
---|
| 27 | Summary: Header files, libraries and development documentation for %{name} |
---|
| 28 | Group: Development/Libraries |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | This package contains the header files, static libraries and development |
---|
| 33 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
| 34 | you will need to install %{name}-devel. |
---|
| 35 | |
---|
| 36 | %package -n compat32-%{name} |
---|
| 37 | Summary: This is the ASN.1 library used in GNUTLS |
---|
| 38 | Group: System Environment/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | |
---|
| 41 | %description -n compat32-%{name} |
---|
| 42 | This is the ASN.1 library used in GNUTLS. |
---|
| 43 | |
---|
| 44 | %package -n compat32-%{name}-devel |
---|
| 45 | Summary: Header files, libraries and development documentation for %{name} |
---|
| 46 | Group: Development/Libraries |
---|
| 47 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 48 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 49 | |
---|
| 50 | %description -n compat32-%{name}-devel |
---|
| 51 | This package contains the header files, static libraries and development |
---|
| 52 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
| 53 | you will need to install %{name}-devel. |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -q |
---|
[9038] | 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 |
---|
[9505] | 61 | %patch140 -p1 -b .CVE-2015-2806 |
---|
[521] | 62 | |
---|
| 63 | %build |
---|
| 64 | %configure --disable-static |
---|
| 65 | make %{?_smp_mflags} |
---|
| 66 | |
---|
| 67 | %install |
---|
| 68 | rm -rf %{buildroot} |
---|
| 69 | %makeinstall |
---|
| 70 | rm -f %{buildroot}%{_infodir}/dir |
---|
| 71 | |
---|
| 72 | ### Clean up buildroot |
---|
| 73 | rm -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 |
---|
| 84 | rm -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 |
---|
[9505] | 119 | * Mon Apr 13 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.9-4 |
---|
| 120 | - add patch140 for fix CVE-2015-2806 |
---|
| 121 | |
---|
[9038] | 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 | |
---|
[2335] | 129 | * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.9-1 |
---|
| 130 | - Updated to release 2.9 |
---|
| 131 | |
---|
[2012] | 132 | * Sat Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.8-1 |
---|
| 133 | - Updated to release 2.8 |
---|
| 134 | |
---|
[1858] | 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 | |
---|
[521] | 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) |
---|