Пакет ghostscript9: 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 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | %define origname ghostscript Name: ghostscript9 Version: 9.56.1 Release: alt1 %define ijsver 0.35 %global origver %version %define esp_name esp-ghostscript %define gnu_name gnu-ghostscript Url: http://www.ghostscript.com License: GPLv3+ Summary: PostScript interpreter and renderer, most printer drivers Group: Publishing Source: ghostpdl-%version.tar.gz Source1: repatch_spec.sh Source2: ghostscript.unused Source3: README.patches ## FC patches Patch0: FC-9.56-fix-PDFFitPage-with-square-MediaBox.patch Patch1: FC-9.56.1-Fix-color-info-juggling-with-x11-devices.patch Patch2: FC-9.56.1-use-proper-bounds-check-for-subfunctions-of.patch Patch3: FC-9.56.1-Deal-with-different-VM-modes-during-CIDFont-loading.patch ## Ubuntu patches Patch101: Ubuntu-2001_docdir_fix_for_debian.patch Patch102: Ubuntu-2002_gs_man_fix_debian.patch Patch103: Ubuntu-2003_support_multiarch.patch Patch104: Ubuntu-2004_remove_non-Debian_paths_from_docs.patch Patch105: Ubuntu-2005_fix_Debian_paths_in_docs.patch Patch106: Ubuntu-2006_suggest_install_ghostscript-doc_in_docs.patch Patch107: Ubuntu-2007_suggest_install_ghostscript-doc_in_code.patch Patch108: Ubuntu-2008_mention_ghostscript-x_in_docs.patch Patch109: Ubuntu-2009_use_system_javascript.patch Patch110: Ubuntu-2010_add_build_timestamp_setting.patch Patch111: Ubuntu-2011_avoid_remote_font.patch Patch112: Ubuntu-2012_avoid_googletagmanager.patch Patch113: Ubuntu-CVE-2020-15900.patch ## ALT patches Patch500: ghostscript-alt-ijs-version.patch Patch501: alt-urw-fonts-naming.patch Patch502: ghostscript-9.23-100-run-dvipdf-securely.patch Patch600: CVE-2021-3781.patch # Eliminate libpng12-devel # Automatically added by buildreq on Thu Apr 13 2023 # optimized out: fontconfig-devel glibc-kernheaders-generic glibc-kernheaders-x86 gnu-config libfreetype-devel libgpg-error libpng-devel perl pkg-config python3 python3-base sh4 zlib-devel BuildRequires: libcups-devel libjpeg-devel libopenjpeg2.0-devel libpaper-devel libtiff-devel BuildRequires: libpng-devel libfreetype-devel %package -n libgs9 Summary: Shared library for %name Group: Publishing Provides: %esp_name-lib = %version, %gnu_name-lib = %version, %name-lib = %version Obsoletes: %gnu_name-lib, %esp_name-lib, %name-lib %package common Version: %origver Summary: Common files for the %name Group: Publishing Requires: urw-fonts >= 1.1 Provides: %esp_name-common = %version, %gnu_name-common = %version Obsoletes: %gnu_name-common, %esp_name-common BuildArch: noarch %description Ghostscript is a set of software that provides a PostScript(TM) interpreter, a set of C procedures (the Ghostscript library, which implements the graphics capabilities in the PostScript language) and an interpreter for Portable Document Format (PDF) files. Ghostscript translates PostScript code into many common, bitmapped formats, like those understood by your printer or screen. Ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers. Most applications use PostScript for printer output. In addition, the package contains filters which transfer the raw bitmap of GhostScript into the protocol of some additional printer models. You should install ghostscript if you need to display PostScript files, or if you have a non-PostScript printer. %description -n libgs9 Shared library for %name %description common Common files for the %name %prep %setup -n ghostpdl-%version rm -rf expat freetype icclib jasper jpeg lcms lcms2 libpng openjpeg zlib cups/libs ## FC apply patches %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 ## Ubuntu apply patches %patch101 -p1 #patch102 -p1 #patch103 -p1 %patch104 -p1 #patch105 -p1 #patch106 -p1 #patch107 -p1 #patch108 -p1 #patch109 -p1 %patch110 -p1 #patch111 -p1 #patch112 -p1 #patch113 -p1 ## ALT apply patches %patch500 -p1 %patch501 -p1 %patch502 -p1 #patch600 -p1 sed -i 's/FT_CALLBACK_DEF(\(.*\))/static \1/g' base/fapi_ft.c sed -i 's/ -dNO/ -dNOSAFER -dNO/' lib/pfbtopfa %build export CFLAGS=-DA4 %autoreconf %configure --enable-dynamic \ --disable-gpdl \ --with-system-libtiff \ --without-ijs \ --with-drivers=ALL \ --disable-compile-inits \ --without-x \ --without-pcl \ --without-xps \ --without-gpdl \ --disable-gtk \ --with-fontpath=/usr/share/fonts/default:\ /usr/share/fonts/type1:\ /usr/share/fonts/type1/urw:\ /usr/share/fonts:\ %_datadir/ghostscript/conf.d \ %make_build so \ prefix=%prefix \ mandir=%_mandir \ datadir=%_datadir \ gsincludedir=%_includedir/ghostscript/ \ bindir=%_bindir \ libdir=%_libdir \ docdir=%_defaultdocdir/%origname-%version \ gsdir=%_datadir/%origname \ gsdatadir=%_datadir/%origname/%version \ gssharedir=%_libdir/%origname/%version \ %install make soinstall \ prefix=$RPM_BUILD_ROOT%prefix \ mandir=$RPM_BUILD_ROOT%_mandir \ datadir=$RPM_BUILD_ROOT%_datadir \ gsincludedir=$RPM_BUILD_ROOT%_includedir/ghostscript/ \ bindir=$RPM_BUILD_ROOT%_bindir \ libdir=$RPM_BUILD_ROOT%_libdir \ docdir=$RPM_BUILD_ROOT%_defaultdocdir/%origname-%version \ gsdir=$RPM_BUILD_ROOT%_datadir/%origname \ gsdatadir=$RPM_BUILD_ROOT%_datadir/%origname/%version \ gssharedir=$RPM_BUILD_ROOT%_libdir/%origname/%version \ # XXX upstream soinstall is incomplete! # cp -ap sobin/lib* %buildroot%_libdir/ # for N in sobin/g*c; do T="`basename $N`"; T="${T%%c}"; install $N %buildroot%_bindir/$T; done # XXX upstream soinstall junk # rm %buildroot%_bindir/gsc # rm -rf -- %buildroot%_mandir/de # rm -rf -- %buildroot%_datadir/ghostscript/%version/Resource/Font # rm -f -- %buildroot%_bindir/ijs_{client,server}_example mkdir -p %buildroot/%_datadir/ghostscript/conf.d %files common %_datadir/ghostscript %_datadir/ghostscript/conf.d %files -n libgs9 %_libdir/lib*.so.* %exclude %_mandir %exclude %_defaultdocdir/* %exclude %_bindir/* %exclude %_includedir %exclude %_libdir/*.so %exclude %_libdir/ghostscript %changelog * Fri Oct 13 2023 Fr. Br. George <george@altlinux.org> 9.56.1-alt1 - Build last 9.x series version * Thu Apr 13 2023 Fr. Br. George <george@altlinux.ru> 9.54.0-alt4 - Build library only version * Sat Sep 11 2021 Fr. Br. George <george@altlinux.ru> 9.54.0-alt3 - (Fixes: CVE-2021-3781) * Tue Aug 31 2021 Fr. Br. George <george@altlinux.ru> 9.54.0-alt2 - Fix redundant SAFER usage (Closes: #40817) * Tue Aug 17 2021 Fr. Br. George <george@altlinux.ru> 9.54.0-alt1 - Autobuild version bump to 9.54.0 - Rearrange packages content * Fri Oct 23 2020 Fr. Br. George <george@altlinux.ru> 9.53.3-alt1 - Autobuild version bump to 9.53.3 - CMap data license was freed long ago in 2015 * Thu Oct 01 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 9.28-alt0.rc1.2 - Applied security fixes from upstream (Fixes: CVE-2019-14869). * Tue Sep 10 2019 Fr. Br. George <george@altlinux.ru> 9.28-alt0.rc1.1 - Fix changelog according to altlinux.org/Vulnerability_Policy - Fixes: + CVE-2019-14811 + CVE-2019-14812 + CVE-2019-14813 + CVE-2019-14817 * Thu Sep 05 2019 Fr. Br. George <george@altlinux.ru> 9.28-alt0.rc1 - Fix version * Wed Sep 04 2019 Fr. Br. George <george@altlinux.ru> 9.27.9-alt1 - Update to 9.28rc1 - Update patches - Fix CVE-2019-1481[1237] * Mon May 06 2019 Fr. Br. George <george@altlinux.ru> 9.27-alt1 - Autobuild version bump to 9.27 - Update patchset - Manually hack upstream to build libgpdl.so * Thu Apr 4 2019 Ivan Zakharyaschev <imz@altlinux.org> 9.26-alt3 - (.spec) make Provides and Requires match (on %%name-lib = %%version) (Otherwise, there would be an unmet dep when rebuilt and interpreted by rpm-4.13.0.1-alt6 and rpm-build with the corresponding fix.) * Mon Jan 28 2019 Fr. Br. George <george@altlinux.ru> 9.26-alt2 - Update patchset (CVE-2019-6116) * Wed Dec 05 2018 Fr. Br. George <george@altlinux.ru> 9.26-alt1 - Autobuild version bump to 9.26 * Thu Sep 20 2018 Fr. Br. George <george@altlinux.ru> 9.25-alt2 - More font renaming resurrected * Tue Sep 18 2018 Fr. Br. George <george@altlinux.ru> 9.25-alt1 - Autobuild version bump to 9.25 - Resurrect font renaming patch (Closes: #35361) * Wed Sep 05 2018 Fr. Br. George <george@altlinux.ru> 9.24-alt1 - Autobuild version bump to 9.24 * Thu Aug 23 2018 Fr. Br. George <george@altlinux.ru> 9.23-alt1 - Autobuild version bump to 9.23 - Switch to ghostpdl sources - Introduce gspcl6 and gxps * Thu Mar 09 2017 Fr. Br. George <george@altlinux.ru> 9.20-alt2 - Rebuild with libpng15 (Closes: #33220) * Mon Nov 28 2016 Fr. Br. George <george@altlinux.ru> 9.20-alt1 - Autobuild version bump to 9.20 - Freshen third-party patches * Tue Jul 26 2016 Fr. Br. George <george@altlinux.ru> 9.19-alt1 - Autobuild version bump to 9.19 - Freshen third-party patches * Tue Apr 21 2015 Fr. Br. George <george@altlinux.ru> 9.16-alt1 - Autobuild version bump to 9.16 - Freshen third-party patches * Mon Sep 29 2014 Fr. Br. George <george@altlinux.ru> 9.15-alt1 - Autobuild version bump to 9.15 - Freshen third-party patches * Thu Apr 10 2014 Fr. Br. George <george@altlinux.ru> 9.14-alt1 - Autobuild version bump to 9.14 - Freshen third-party patches - Provide semi-automatic FC and Ubuntu patch sucker * Fri Nov 08 2013 Andriy Stepanov <stanv@altlinux.ru> 9.10-alt2 - Fix version definition * Fri Nov 01 2013 Andriy Stepanov <stanv@altlinux.ru> 9.10-alt1 - New version * Mon Apr 22 2013 Fr. Br. George <george@altlinux.ru> 9.07-alt1 - Autobuild version bump to 9.07 - Update FC patchset - Build with system freetype * Fri Sep 28 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 9.05-alt1.1 - Rebuilt with libpng15 * Wed Feb 15 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 9.05-alt1 - 9.05 * Thu Sep 08 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.04-alt2 - resurrect ghostscript-alt-gstoraster-avoid-buidroot.patch (ALT #25465) * Wed Aug 10 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.04-alt1 - 9.04 - update fedora patches * Mon Aug 08 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.02-alt3 - add %_datadir/%name/conf.d to fontpath (ALT #25997) * Tue Apr 19 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.02-alt2 - avoid buildroot-ed paths in gstoraster (ALT #25465) * Mon Apr 04 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.02-alt1 - 9.02 - update fedora patches - add ghostscript-classic to ghostscript-common Requires (ALT #25373) * Thu Mar 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.01-alt2 - add libpng-devel to BuildRequires * Mon Feb 14 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.01-alt1 - 9.01 - update fedora patches * Mon Jan 17 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 9.00-alt2 - Add fedora patches: ghostscript-rh-gdevcups-691733.patch (ALT #24832) ghostscript-rh-icc-fix.patch ghostscript-rh-scan_token.patch * Tue Oct 26 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 9.00-alt1 - 9.00 - CVE-2010-2055 * Sat Mar 13 2010 Stanislav Ievlev <inger@altlinux.org> 8.71-alt1 - 8.71 * Mon Nov 02 2009 Stanislav Ievlev <inger@altlinux.org> 8.70-alt3 - fix deps: * drop unused ghostscript-rip provides * module-X and utils subpackage now require ghostscript-classic instead of ghostscript-rip * Thu Oct 01 2009 Stanislav Ievlev <inger@altlinux.org> 8.70-alt2 - fix header files names in ghostscript devel library * Mon Sep 14 2009 Stanislav Ievlev <inger@altlinux.org> 8.70-alt1 - 8.70 - join minimal and classic subpackages - drop espgs-alt-visibility patch, because X11.so driver uses some internal symbols from the library * Fri Apr 17 2009 Stanislav Ievlev <inger@altlinux.org> 8.64-alt4 - CVE-2009-0196, CVE-2009-0792 * Fri Mar 20 2009 Stanislav Ievlev <inger@altlinux.org> 8.64-alt3 - CVE-2009-0583, CVE-2009-0584 * Wed Mar 11 2009 Kirill Maslinsky <kirill@altlinux.ru> 8.64-alt2 - rebuilt to eliminate dependency on tetex-dvips (closes: #19128) - removed calls to %%post(un)_ldconfig * Fri Feb 27 2009 Stanislav Ievlev <inger@altlinux.org> 8.64-alt1 - 8.64 * Sat Nov 22 2008 Fr. Br. George <george@altlinux.ru> 8.63-alt1.1 - A4 definition added * Fri Oct 03 2008 Stanislav Ievlev <inger@altlinux.org> 8.63-alt1 - 8.63 * Thu May 08 2008 Stanislav Ievlev <inger@altlinux.org> 8.62-alt1 - 8.62 - rename ghostscript-lib to libgs, add devel part * Thu Mar 27 2008 Stanislav Ievlev <inger@altlinux.org> 8.60-alt3 - build for Sisyphus with changes from at@: spec: ghostscript-module-X11 ignore file for buildreq * Thu Feb 28 2008 Stanislav Ievlev <inger@altlinux.org> 8.60-alt2 - CVE-2008-0411 * Thu Nov 08 2007 Stanislav Ievlev <inger@altlinux.org> 8.60-alt1 - remove deps on ghostscript-drivers * Mon Aug 06 2007 Stanislav Ievlev <inger@altlinux.org> 8.60-alt0.3 - improve latest hack * Mon Aug 06 2007 Stanislav Ievlev <inger@altlinux.org> 8.60-alt0.2 - fix build on i586 * Fri Aug 03 2007 Stanislav Ievlev <inger@altlinux.org> 8.60-alt0.1 - 8.60 (test build) - disable jasper library (ghostscript can work with internal copy of library) * Thu Jun 28 2007 Kirill A. Shutemov <kas@altlinux.ru> 8.15.4-alt1.1 - Drop BuildPreReq: kernel-headers-std * Thu Mar 15 2007 Stanislav Ievlev <inger@altlinux.org> 8.15.4-alt1 - 8.15.4 (bugfix release) * Thu Jan 25 2007 Stanislav Ievlev <inger@altlinux.org> 8.15.3-alt0.3 - apply 64 fix from RH (bug #177763 in bugzilla.redhat.com) * Fri Dec 29 2006 Stanislav Ievlev <inger@altlinux.org> 8.15.3-alt0.2 - Change default visibility for the libraries (avm) * Fri Oct 13 2006 Stanislav Ievlev <inger@altlinux.org> 8.15.3-alt0.1 - 8.15.3 * Wed May 24 2006 Stanislav Ievlev <inger@altlinux.org> 8.15.2-alt0.1 - 8.15.2 * Thu Mar 23 2006 Stanislav Ievlev <inger@altlinux.org> 8.15.1-alt0.1 - 8.15.1 * Fri May 13 2005 Stanislav Ievlev <inger@altlinux.org> 8.15.0-alt0.1 - 8.15 - all additional drivers are in separate package now * Tue Jan 18 2005 ALT QA Team Robot <qa-robot@altlinux.org> 7.07.1-alt6.1 - Rebuilt with libstdc++.so.6. * Thu Oct 07 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt6 - turn off fontconfig patch (author of this patch RH has been discovered some strange problems) * Wed Sep 22 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt5 - driver updates * Fri Sep 17 2004 ALT QA Team Robot <qa-robot@altlinux.org> 7.07.1-alt4.1.1 - Rebuilt with libtiff.so.4. * Tue May 11 2004 ALT QA Team Robot <qa-robot@altlinux.org> 7.07.1-alt4.1 - Rebuilt with openssl-0.9.7d. * Tue May 11 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt4 - fix bootstrap * Wed May 05 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt3 - added ppmtomd driver - added support for KRGB (from hpijs 1.6) - don't build cat files (was problems with building in hasher) * Mon Mar 15 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt2 - update epsonepl driver to add support for EPL6200L * Fri Feb 13 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt1 - fix requires (urw-fonts) in common package. * Tue Feb 10 2004 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt0.4 - rename back to ghostscript (to minor problems on update) - added pentaxpj driver for Pentax PocketJet printers * Thu Dec 25 2003 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt0.3 - correct fontpath (was problems with printing Japanese) - added lexmark Z11 driver * Tue Dec 02 2003 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt0.2 - added epsonepl driver - Daedalus release * Thu Nov 06 2003 Stanislav Ievlev <inger@altlinux.org> 7.07.1-alt0.1 - 7.07.1 - change font path - fix requires module-X and drivers (added virtual providing %name-rip) * Fri May 16 2003 Stanislav Ievlev <inger@altlinux.ru> 7.05.6-alt0.8 - added pnm2ppa and pbm2ppa (old version of pnm2ppa) drivers for HP PPA WinPrinters - fix requires (classic doesn't need lib) * Wed May 07 2003 Stanislav Ievlev <inger@altlinux.ru> 7.05.6-alt0.7 - added CID support * Wed Apr 30 2003 Stanislav Ievlev <inger@altlinux.ru> 7.05.6-alt0.6 - added module X11 feature - pdf2dsc, pdf2ps moved to common like in gnu ghostscript (gv need it) - added ml85p driver (Samsung ML-85G and QL-85G winprinters) * Mon Apr 07 2003 Stanislav Ievlev <inger@altlinux.ru> 7.05.6-alt0.5 - Initial release |