Package libgcrypt: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | %def_enable static %def_disable pth %define req_gpgerror_ver 1.0 %define info_nogen 1 Name: libgcrypt Version: 1.4.6 Release: alt3.M60C.3 Group: System/Libraries Summary: The GNU crypto library License: LGPL URL: http://www.gnupg.org/ Requires: libgpg-error >= %req_gpgerror_ver Requires: %name-common = %version-%release BuildRequires: libgpg-error-devel >= %req_gpgerror_ver %if_enabled static BuildRequires: glibc-devel-static %endif %if_enabled pth BuildRequires: libpth-devel %endif Source: %name-%version.tar.bz2 Source1: version-script-gcrypt-1.4.map # PLD Patch0: libgcrypt-1.3.1-no_libnsl.patch Patch1: %{name}-info.patch Patch2: %{name}-am18.patch # ALT Patch3: libgcrypt-1.4.0-alt-autotools-version.patch Patch4: libgcrypt-1.4.5-cve-2013-4242.patch Patch5: libgcrypt-1.4.6-cve-2016-6313.patch %package common Summary: %name common package Group: System/Configuration/Other %description common %name common package %package pth Summary: GNU Crypto library with GNU Pth user-space thread support Group: System/Libraries Requires: libgpg-error >= %req_gpgerror_ver Requires: %name-common = %version-%release %package utils Group: Networking/Other Summary: Utilities for the %name package Requires: %name-common = %version-%release Conflicts: %name-devel <= 1.4.2 %package devel Group: Development/Other Summary: Development files for the %name package Requires: %name = %version-%release Requires: libgpg-error-devel %if_enabled pth Requires: %name-pth = %version-%release %endif Conflicts: %{name}0-devel %package devel-static Summary: Static libraries for the %name-devel package Group: Development/Other Requires: %name-devel = %version-%release Requires: libgpg-error-devel-static Conflicts: %{name}0-devel-static %description Libgcrypt is a general purpose cryptographic library based on the code from GNU Privacy Guard. It provides functions for all cryptograhic building blocks: symmetric ciphers (AES,DES,Blowfish,CAST5,Twofish,Arcfour), hash algorithms (MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large integer functions, random numbers and a lot of supporting functions. %description pth This is a portion of Libgcrypt supporting user-space threads provided by the GNU Pth library. %description utils This package contains %name utilities: * dumpsexp - debug tool for S-expressions * hmac256 - standalone HMAC-SHA-256 implementation %description devel Libgcrypt is a general purpose cryptographic library based on the code from GNU Privacy Guard. This package contains files needed to develop applications using libgcrypt (e.g. Aegypten project). %description devel-static Static libraries for the %name-devel package %prep %setup -q cat %SOURCE1 >> src/libgcrypt.vers %if %info_nogen sed -i "s|^info_TEXINFOS|#info_TEXINFOS|" doc/Makefile.am %endif %patch0 -p1 %patch1 -p1 #%patch2 -p1 #%patch3 -p1 %patch4 -p1 %patch5 -p1 %autoreconf %__rm -f COPYING.LIB %__ln_s %_licensedir/LGPL-2.1 COPYING.LIB %build %add_optflags %optflags_shared %configure %{subst_enable static} \ --enable-shared \ --enable-noexecstack \ --enable-ld-version-script \ --disable-dev-random %make_build -C doc ||: %make_build %make check %install %makeinstall %if %info_nogen mkdir %buildroot/%_infodir/ install -m 0644 doc/*.info %buildroot/%_infodir/ %endif %files common %files utils %_bindir/dumpsexp %_bindir/hmac256 %files %_libdir/%name.so.* #%_libdir/%name-pthread.so.* %doc AUTHORS ChangeLog NEWS README THANKS TODO %if_enabled pth %files pth %_libdir/%name-pth.so.* %endif %files devel %_bindir/*-config %_includedir/* %_libdir/*.so %_datadir/aclocal/* %_infodir/* %if_enabled static %files devel-static %_libdir/*.a %endif %changelog * Wed Feb 08 2017 Mikhail Efremov <sem@altlinux.org> 1.4.6-alt3.M60C.3 - Fix CVE-2016-6313. * Mon Dec 07 2015 Fr. Br. George <george@altlinux.ru> 1.4.6-alt3.M60C.2 - Fix cve-2013-4242 * Wed Apr 04 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.4.6-alt3.M60C.1 Rebuild for C6 * Fri Feb 25 2011 Sergey V Turchin <zerg@altlinux.org> 1.4.6-alt3 - clean version script * Mon Oct 25 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.6-alt2 - rebuilt * Wed Jul 14 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.6-alt0.M51.1 - built for M51 * Wed Jul 14 2010 Sergey V Turchin <zerg@altlinux.org> 1.4.6-alt1 - new version * Mon Dec 14 2009 Sergey V Turchin <zerg@altlinux.org> 1.4.5-alt1 - new version * Mon Apr 27 2009 Sergey V Turchin <zerg@altlinux.org> 1.4.4-alt2 - built static library * Mon Jan 26 2009 Sergey V Turchin <zerg at altlinux dot org> 1.4.4-alt1 - new version - removed deprecated macroses from specfile * Tue Oct 07 2008 Sergey V Turchin <zerg at altlinux dot org> 1.4.3-alt1 - new version - update version script - split utils to separate package * Tue Sep 09 2008 Sergey V Turchin <zerg at altlinux dot org> 1.4.2-alt1 - new version * Wed Apr 30 2008 Sergey V Turchin <zerg at altlinux dot org> 1.4.1-alt1 - new version * Fri Dec 14 2007 Sergey V Turchin <zerg at altlinux dot org> 1.4.0-alt2 - built without libcap * Tue Dec 11 2007 Sergey V Turchin <zerg at altlinux dot org> 1.4.0-alt1 - new version * Mon Dec 03 2007 Sergey V Turchin <zerg at altlinux dot org> 1.3.2-alt1 - new version * Fri Oct 26 2007 Sergey V Turchin <zerg at altlinux dot org> 1.3.1-alt1 - new version * Mon Feb 05 2007 Sergey V Turchin <zerg at altlinux dot org> 1.2.4-alt1 - new version * Tue Aug 29 2006 Sergey V Turchin <zerg at altlinux dot org> 1.2.3-alt1 - new version * Wed Nov 30 2005 Sergey V Turchin <zerg at altlinux dot org> 1.2.2-alt1 - new version - using /dev/urandom only (not /dev/random) * Tue Jan 11 2005 Sergey V Turchin <zerg at altlinux dot org> 1.2.1-alt1 - new version * Mon Oct 11 2004 Sergey V Turchin <zerg at altlinux dot org> 1.2.0-alt1 - new version * Mon Apr 05 2004 Sergey V Turchin <zerg at altlinux dot org> 1.1.94-alt1 - new version - sync patches with PLD * Thu Mar 25 2004 Mikhail Zabaluev <mhz@altlinux.ru> 1.1.93-alt0.1 - Updated to the latest upstream release - Spec cleanup * Thu Feb 05 2004 Sergey V Turchin <zerg at altlinux dot org> 1.1.91-alt2 - rebuild * Mon Feb 02 2004 Sergey V Turchin <zerg at altlinux dot org> 1.1.91-alt1 - new version * Mon Jan 12 2004 Sergey V Turchin <zerg at altlinux dot org> 1.1.12-alt3 - remove *.la * Tue Sep 30 2003 Sergey V Turchin <zerg at altlinux dot org> 1.1.12-alt2 - fix build * Wed Sep 03 2003 Sergey V Turchin <zerg at altlinux dot org> 1.1.12-alt1 - new version * Fri Feb 07 2003 Sergey V Turchin <zerg@altlinux.ru> 1.1.10-alt2 - fix requires * Fri Feb 07 2003 Sergey V Turchin <zerg@altlinux.ru> 1.1.10-alt1 - build for ALT * Sat Nov 23 2002 Per \xd8yvind Karlsen <peroyvind@sintrax.net> 1.1.10-6mdk - Better fix for binary name(Patch #0) - Follow mdk lib policy - Removed non-existing libgcrypt.txt file from filelist - bzip2'ed the source - Remove tests from doc (rpmlint says so) - Move *.so to -devel package, only *.so.* stays - Cleanups * Sat Nov 23 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.1.10-5mdk - fix binary name for arch != i586 * Mon Nov 04 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1.10-4mdk - Rebuild * Sat Oct 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1.10-3mdk - Fix bin name * Sat Oct 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1.10-2mdk - Fix postun/post * Sat Oct 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1.10-1mdk - Initial package |