Compare commits

...

170 Commits
f14 ... rawhide

Author SHA1 Message Date
Fedora Release Engineering
51a10479a1 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 18:56:45 +00:00
Michael J Gruber
92788bb368 rebase to 1.24.5 (rhbz#2290729)
- various bugfixes all across the board
2024-07-10 11:58:58 +02:00
Michael J Gruber
e64cf232b8 Create stable wheel dirs during build
We always create stable dirs in the package, but during build we picked
up the autogenerated version which is %{version} amended by a time
stamp. This is unstable (not nice) and works 23/7 only because of how
upstream tries to make this PEP 440 proof. Consequently, we get "random"
build failures.

Make it %{version} which is stable and foolproof.
2024-06-20 15:50:53 +02:00
Sandro Mani
586b6b4497 Rebuild for tesseract-5.4.1 2024-06-13 22:39:24 +02:00
Python Maint
a0f0307827 Rebuilt for Python 3.13 2024-06-09 13:43:25 +02:00
Michael J Gruber
203565db57 Shut off Artifex' suggestion to complain to distribution managers.
Artifex decided to rely on local forks for added functionality, so do
not complain to the distribution manager about lack of functionality in
unbundled builds.
2024-06-06 14:37:32 +02:00
Michael J Gruber
3fe290308b rebase to 1.24.2
- Fix dashing of lines that move out of clip.
- Fix sanitize filter behaviour for empty clip paths.
- Fix errors when filtering type3 font.
2024-05-29 13:41:43 +02:00
Yaakov Selkowitz
f8f4f11dbf Fix flatpak build
The Makfile sets pydir based on sysconfig platlib, which does
not match %python3_sitearch when building for flatpaks in /app.
2024-04-15 23:11:32 -04:00
Michael J Gruber
1b21376ab8 rebase to 1.24.1 (rhbz#2272640)
- fix text movement on sanitisation
2024-04-03 16:06:42 +02:00
Michael J Gruber
e6ad02431f fix FTBFS of (at least) qpdfview 2024-03-22 10:40:41 +01:00
Michael J Gruber
3997f669ec rebase to 1.24.0 (rhbz#2270341)
- support more formats (office xml, text, gzipped)
- `mutool bake` command
- redaction options for line art and images
- Art, Bleed, Media, and Trim boxes for PDF page sizes
- various fixes and improvements

In addition, all patches are upstreamed!
2024-03-20 12:59:41 +01:00
Tom Stellard
7fd9be4f47 Fix build with llvm18
MJG: deal with both llvm17 and llvm18 cursor kinds
2024-03-19 11:49:39 +01:00
Michael J Gruber
5d42051044 avoid multiple rebuilds
c++ and python install targets rebuild unconditionally. Avoid this by
patching out the make dependencies. This *requires making c++ and python
in %build* (as we do).
2024-03-19 09:42:53 +01:00
Michael J Gruber
5a16f4829d reduce jbig2dec requirements
jbig2dec checks versions at runtime (lib) against buildtime versions
(headers) and requires an exact match.

It is part of jbig2dec maintenance to coordinate bumps with dependent
packages (in side-tags), so remove extra checks in dependent packages.
2024-03-08 21:14:29 +01:00
Ralf Corsépius
47f70ead1e Rebuild for gumbo-parse-0.12.1 2024-03-01 09:08:13 +01:00
Michael J Gruber
f76d98de93 streamline make invocation
USE_SYSTEM_LIBS implies and enforces most of the other switches, so
strip those defines which would be ignored anyways.

Also, set build type once in user.make to make sure we do not rebuild
during install. (We never did, but who knows ...)
2024-02-20 10:44:38 +01:00
Michael J Gruber
04ffbdbac6 build python bindings 2024-02-20 10:42:13 +01:00
Michael J Gruber
c26739b7fc build C and C++ libraries 2024-02-16 18:24:35 +01:00
Michael J Gruber
8895ace52c Make so executable
to make elf depgen happy on *el at least up to 9.
2024-02-16 15:38:47 +01:00
Michael J Gruber
94de866cf7 rebase to 1.23.10 (rhbz#2257282)
- minor fixes
2024-02-06 21:48:33 +01:00
Michael J Gruber
c0776ae59c switch to shared libraries
The new "rebased" PyMuPDF bindings require shared mupdf libraries rather
than static ones. In addition, this results in smaller executables.

So, now that upstream not only supports but requires shared libraries,
switch to them.

- do not bundle freeglut any more
2024-02-06 20:38:29 +01:00
Michael J Gruber
7d849742b8 rebase to 1.23.9 (rhbz#2257282)
- fixes around redaction feature

still static
2024-02-06 20:38:29 +01:00
Michael J Gruber
22442eed03 rebase to 1.23.8 (rhbz#2257282)
- fixes and adjustments for shared library builds

We still build static for now and will rebase our shared work onto
this one. In particular, we have an official SONAME now, hooray!
2024-02-06 20:38:29 +01:00
Michael J Gruber
176b40a08f set jbig2dec version dependent on fedora version
jbig2dec has a special runtime dependency check which prevents upwards
compatibility. Set the version dependent on a release macro so that we
can build and test easily across releases independent of jbig2dec
versions.
2024-02-06 20:38:23 +01:00
Sandro Mani
ed9990919d Rebuild (tesseract) 2024-01-28 11:33:16 +01:00
Fedora Release Engineering
6591e30e65 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 08:23:46 +00:00
Michael J Gruber
edeb7e2334 fix time type on i686 2024-01-19 15:58:06 +01:00
Michael J Gruber
5537d883ed Switch spec to tabs
Tabs are more reliable and common, so switch manual "tabs" (multiple
spaces) to proper tabs.

[skip changelog]
2024-01-06 13:41:21 +01:00
Michael J Gruber
1129d9b8cf rebuild against fixed leptonica 2023-12-27 15:42:53 +01:00
Michael J Gruber
b6cb9a1f3a adjust to changed leptonica lib name
In version 1.8.0, leptonica changed their lib/autotools name from lept
to leptonica for consistency. Adjust for the new name (merge only to
branches with leptonica >= 1.8.0).
2023-12-26 19:36:03 +01:00
Michael J Gruber
b7dac2a662 rebase to 1.23.7 (rhbz#2249851)
- various bug fixes
2023-12-02 17:23:42 +01:00
Michael J Gruber
effcc4c06a rebase to 1.23.5 (rhbz#2243150)
- Use CropBox as origin for fitz space in PDF documents.
- Various fixes.
2023-11-07 13:55:16 +01:00
Michael J Gruber
04d985a25a rebase to 1.23.4 (rhbz#2243150)
- default to use CropBox rather than MediaBox
- minor bugfixes
2023-10-11 11:44:20 +02:00
Sandro Mani
ea4cfc0cda Rebuild (tesseract) 2023-10-07 23:54:14 +02:00
Michael J Gruber
0c0d3fff6a fix mutool draw mask endianness on s390x (rhbz#2241203) 2023-10-01 18:32:46 +02:00
Michael J Gruber
73e8612ae4 rebase to 1.23.3 (rhbz#2233551)
- Support CropBox, TrimBox, BleedBox, and ArtBox in PDF tools and viewers.
- PhotoShop PSD image support.
- mutool poster: Option to split in RTL direction.
- mutool run: changed many methods to match Java and new WASM library.
2023-09-05 16:21:47 +02:00
Fedora Release Engineering
83dbea0a32 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 16:05:30 +00:00
Sandro Mani
f44c448663 Rebuild (tesseract) 2023-07-14 12:46:30 +02:00
Michael J Gruber
dcf091aa6b rebase to 1.22.2 (rhbz#2215574)
- Various bugfixes
2023-06-22 14:53:58 +02:00
Michael J Gruber
411196da99 rebase to 1.22.1 (rhbz#2186766)
- Fix redaction of unmasked images.
2023-05-11 20:56:29 +02:00
Michael J Gruber
f30d70d816 rebase to 1.22.0 (rhbz#2186766)
- Adds new command line tools (mutool recolor and trim) and output
  format (JPEG).
- Overall improvements and enhancements.

There are no known incompatibilities with 1.21.
2023-04-15 13:51:25 +02:00
Sandro Mani
acdbd1badc Rebuild (tesseract) 2023-04-06 23:28:23 +02:00
Fedora Release Engineering
59b615c537 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 21:00:38 +00:00
Sandro Mani
57d5651c80 Rebuild (tesseract) 2022-12-23 21:59:57 +01:00
Sandro Mani
dae2ea6f54 Rebuild (leptonica) 2022-12-21 15:42:11 +01:00
Michael J Gruber
15f1cc451a fix png_write_band (rhbz#2154545)
... (gsbz#706227)
2022-12-20 15:14:34 +01:00
Michael J Gruber
4383cdfe1f SPDX migration 2022-12-17 11:42:04 +01:00
Michael J Gruber
910cfdca95 rebase to 1.21.1 (rhbz#2152708) 2022-12-13 11:36:39 +01:00
Michael J Gruber
1bccd68af3 rebase to 1.21.0 (rhbz#2140776) 2022-11-11 13:59:27 +01:00
Michael J Gruber
110373e8d9 rebase to 1.21.0-rc1 2022-10-27 20:48:13 +02:00
Michael J Gruber
c05df1b2d8 rebase to 1.20.3 (bz #2104499) 2022-08-12 21:13:32 +02:00
Fedora Release Engineering
7d449a49d4 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 00:00:23 +00:00
Sandro Mani
2fb98fa93a Rebuild (tesseract) 2022-07-08 10:50:04 +02:00
Michael J Gruber
ee679b51f4 rebase to 1.20.0 (bz #2094792) 2022-06-15 16:36:37 +02:00
Michael J Gruber
e445746c93 rebase to 1.20.0-rc2 2022-06-15 16:22:35 +02:00
Michael J Gruber
678de8a167 rebase to 1.20.0-rc1 2022-06-15 16:22:35 +02:00
Sandro Mani
0a9799470d Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0 2022-05-21 00:30:53 +02:00
Sandro Mani
1c6178e7ee Rebuild for tesseract-5.1.0 2022-03-10 00:14:13 +01:00
Sandro Mani
9a63db0324 Bump as F36 needs another rebuild 2022-02-25 12:58:25 +01:00
Sandro Mani
36e10e67a1 Rebuild (leptonica) 2022-02-25 12:05:55 +01:00
Fedora Release Engineering
62d9f5639c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 20:40:46 +00:00
Sandro Mani
2531fa4323 Rebuild (tesseract) 2021-12-19 19:01:06 +01:00
Sandro Mani
13b80e8c97 Rebuild (tesseract) 2021-12-14 13:27:00 +01:00
Michael J Gruber
3628ae0720 enable OCR (leptonica/tesseract)
Enable OCR with the leptonica/tesseract engine.
2021-10-12 22:41:05 +02:00
Michael J Gruber
347b10e4f3 rebase to 1.19.0
bz #2011302
2021-10-06 18:00:02 +02:00
Michael J Gruber
1cd3a406e9 switch to rpmautospec 2021-10-06 16:28:24 +02:00
Sahana Prasad
e7cb6106cc Rebuilt with OpenSSL 3.0.0 2021-09-14 19:08:30 +02:00
Fedora Release Engineering
f0c5d722d5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 15:37:39 +00:00
Michael J Gruber
926ba3b7ff truth in advertising 2021-07-19 18:05:32 +02:00
Scott Talbert
307c5ad242 Enable DroidSansFallback font 2021-07-13 21:41:56 -04:00
Michael J Gruber
2651dbfbbb remove obsolete PyMuPDF support
PyMuPDF and above do not rely on patched mupdf sources any more, so not
provide the extra exported function and revert back to vanilla sources.
2021-02-24 11:57:03 +01:00
Michael J Gruber
bf6f961ab9 CVE-2021-3407 (bz #1931964, bz#1931965) 2021-02-23 21:12:30 +01:00
Michael J Gruber
44f3b8465a remove obsolete patch
The patch was necessary for earlier versions. When the culprit in lcms
was partially reverted this triggered me rewriting the patch instead of
dropping it: the amended parameters in that call-chain were not needed
any more since commit c9f2256 in lcms2mt. So drop the patch.
2021-02-23 20:55:21 +01:00
Fedora Release Engineering
6af4815afa - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 21:02:22 +00:00
Michael J Gruber
b803ed1e81 support PyMuPDF 2020-10-08 23:00:33 +02:00
Michael J Gruber
8ea33ca253 bugfix and feature release
bz #1886338 #1886339 #1886083
2020-10-08 16:51:08 +02:00
Michael J Gruber
65744951f1 spec clean-up: pre-release and bundled versions 2020-10-04 14:44:55 +02:00
Michael J Gruber
bbe255ff48 mupdf 1.18.0-rc1 test 2020-10-03 23:24:57 +02:00
Michael J Gruber
4c9de2068b rebuild with jbig2dec 0.19 2020-09-18 21:22:11 +02:00
Michael J Gruber
02d93ee0f0 depend on exact jbig2dec version (bz 1861103) 2020-07-27 22:45:07 +02:00
Michael J Gruber
7c82340cd6 fix signature check crash 2020-05-31 16:20:00 +02:00
Michael J Gruber
8199344b64 rebase to 1.17.0 (bz #1831652) 2020-05-11 17:29:06 +02:00
Michael J Gruber
134f257521 fix build with gcc 10 2020-02-05 11:08:04 +01:00
Fedora Release Engineering
028c489b7c - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 14:19:53 +00:00
Michael J Gruber
73341b10dd rebase to 1.16.1
fixes bz 1727748 1727749 1656202 1656201 1742396
2019-08-16 21:10:28 +02:00
Fedora Release Engineering
0a5fa460d0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 17:59:12 +00:00
Michael J Gruber
11770d6417 1.15.0 bugfix and feature release 2019-05-13 13:47:08 +02:00
Michael J Gruber
7cda982c3c mupdf 1.15.0rc1 test 2019-05-13 13:46:35 +02:00
Fedora Release Engineering
b8a4109e47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 11:44:04 +00:00
Igor Gnatenko
1cd6d5030b Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-29 06:16:37 +01:00
Igor Gnatenko
3b9d207903 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:17 +01:00
Michael J Gruber
0deaaaa454 work around missing mesa EGl dependency 2018-11-15 11:59:25 +01:00
Michael J Gruber
693f74928d signature handling fix needs more patches than claimed 2018-11-15 10:49:58 +01:00
Michael J Gruber
1527431bbe fix signature handling 2018-11-15 10:24:01 +01:00
Michael J Gruber
165174f22a bz #1644444 #1644445 2018-11-15 10:21:50 +01:00
Michael J Gruber
cf0035cae3 bz #1626481 #1626484 2018-11-15 10:05:50 +01:00
Michael J Gruber
3da1a090e5 bz #1626483 #1626484 2018-11-15 10:01:19 +01:00
Michael J Gruber
7eeedaa6df rebase to 1.14.0
bugfix and feature release
2018-11-15 09:44:19 +01:00
Michael J Gruber
98514fef5f mupdf-gl desktop entry 2018-10-01 13:00:17 +02:00
Michael J Gruber
97e5912150 enable libcrypto 2018-10-01 12:54:17 +02:00
Michael J Gruber
fb4c14274b mupdf 1.14.0rc1 test 2018-09-27 11:58:02 +02:00
Fedora Release Engineering
c1882bd634 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 11:12:12 +00:00
Michael J Gruber
10faca3a65 CVE-2018-10289
(rh bz #1573050) (gs bz #699271)
2018-06-10 14:30:46 +02:00
Michael J Gruber
582410f75e fix license field
bug #1586328
2018-06-06 13:28:27 +02:00
Michael J Gruber
c7a5946e7f fix lcms2art build on big endian
The bundled Artifex version of lcms2 did not build on big endian due to
their incomplete addition of a context call chain.

Fix it.
2018-06-03 19:16:41 +02:00
Michael J Gruber
e18ba2a4be fix BR
pulled in by freeglut-devel before
2018-05-18 14:07:56 +02:00
Michael J Gruber
4090fd94e7 make mupdf unicode safe 2018-05-18 11:19:39 +02:00
Michael J Gruber
5979668547 include libmupdfthird.a again
fixes bug #1553915 for zathura-pdf-mupdf
2018-05-18 11:19:39 +02:00
Michael J Gruber
a1f9a81288 make lcms2 usage thread safe
fixes bug #1553915
2018-05-18 11:19:39 +02:00
Michael J Gruber
be6b689093 rebase to 1.13.0
rh bz #1569993
2018-05-18 11:19:18 +02:00
Michael J Gruber
0b3e62cf85 mupdf 1.13.0rc1 test 2018-05-18 11:12:31 +02:00
Michael J Gruber
7c48150bb3 install svg icon 2018-04-13 16:35:22 +02:00
Michael J Gruber
46b1efb4f0 CVE-2018-6192 CVE-2018-6544 CVE-2018-1000051
- CVE-2018-6192 (rh bz #1539845 #1539846) (gs bz #698916)
 - CVE-2018-6544 (rh bz #1542264 #1542265) (gs bz #698830 #698965)
 - CVE-2018-1000051 (rh bz #1544847 #1544848) (gs bz #698825 #698873)
2018-02-14 15:10:26 +01:00
Michael J Gruber
8579757839 CVE-2018-6192 2018-02-14 15:06:51 +01:00
Michael J Gruber
da88d59031 CVE-2018-6187 2018-02-14 15:05:07 +01:00
Fedora Release Engineering
f790f9fd30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 03:32:12 +00:00
Michael J Gruber
d859ab39fe CVE-2017-17858 CVE-2018-5686 2018-01-24 13:44:21 +01:00
Michael J Gruber
1d0b5ef41d rebase to 1.12 2017-12-31 17:18:49 +01:00
Michael J Gruber
f1b65b7b3d v1.12RC1 test build 2017-11-26 17:59:11 +01:00
Michael J Gruber
98c6676b5c CVE-2017-15369, CVE-2017-15587 2017-11-11 20:51:20 +01:00
Michael J Gruber
3de7e96196 CVE-2017-15369, CVE-2017-15587 2017-11-11 20:49:00 +01:00
Michael J Gruber
3aae5268e0 repair FTBFS from version specific patch
412e729 ("New release 1.11", 2017-04-11) introduced/rewrote the version
specific openjpeg patch. This breaks with every new openjpeg version due
to the changed subdir. Make it independent of that, it's in the include
path.
2017-11-11 18:07:23 +01:00
Michael J Gruber
153dba2563 rebuild with jbig2dec 0.14
bz #1456731
2017-11-11 17:18:53 +01:00
Fedora Release Engineering
23810f1c56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 03:42:00 +00:00
Fedora Release Engineering
eb6cd6dc89 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 22:28:13 +00:00
Pavel Zhukov
6b735dc376 Rebuild with new jbig2dec (#1443933) 2017-05-09 13:37:23 +02:00
Pavel Zhukov
a4812e4ec4 Install mupdf-gl 2017-04-14 23:32:48 +02:00
Pavel Zhukov
902e4b5291 Fix mupdf-gl build (#1442384) 2017-04-14 23:09:59 +02:00
Pavel Zhukov
412e72987d New release 1.11 2017-04-11 18:56:45 +02:00
Pavel Zhukov
20aa2225f8 Fix buffer overflow in pdf-layer.c (#1439643) 2017-04-06 14:01:38 +02:00
Pavel Zhukov
71ac78f599 Fix heap buffer overflow (#1425338) 2017-03-02 21:41:02 +01:00
Pavel Zhukov
253456aea3 Fix various packaing issues 2017-03-02 21:16:09 +01:00
Pavel Zhukov
532c95ce5b Fixes makefile verbose output 2017-02-24 18:37:42 +01:00
Pavel Zhukov
c923519b02 New release (1.10a)
Signed-off-by: Pavel Zhukov <landgraf@fedoraproject.org>
2017-02-11 20:19:43 +01:00
Fedora Release Engineering
4ac3886d2a - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 21:53:07 +00:00
Orion Poplawski
23e96b823f Drop %defattr 2016-09-08 16:11:47 -06:00
Fedora Release Engineering
e448eff034 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 08:55:04 +00:00
Pavel Zhukov
c74618ef83 New release (#1280518) 2015-11-28 14:20:06 +01:00
Pavel Zhukov
0e893ab98a Disable memento 2015-11-28 13:50:38 +01:00
Petr Šabata
9c10d014ab Various minor packaging changes
- Package the license text with the %%license macro
- Don't use the %%version macro in filenames, it's not helpful
- Added extra handling for the docs; %%_docdir is no longer autopackaged,
  plus we want to install the license text elsewhere
2015-11-18 15:50:35 +01:00
Dennis Gilmore
c4336d9652 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 21:15:20 +00:00
Pavel Zhukov
07240655ba New release (#1219482) 2015-06-01 13:50:27 +02:00
Pavel Zhukov
81fb0ca81c Fix segfault in obj_close routine (#1202137, #1215752) 2015-05-06 19:10:03 +02:00
Pavel Zhukov
75efb8a6e2 New release 1.7 (#1210318) 2015-05-06 18:54:53 +02:00
Pavel Zhukov
3524e0fc90 Fix executable name in desktop file (#1213146) 2015-05-06 18:30:51 +02:00
Pavel Zhukov
fbcd9c181f Add missed curl-devel BR 2014-10-12 01:08:54 +02:00
Peter Robinson
6b66bb2957 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 10:46:28 +00:00
Pavel Zhukov
c5c814fbf4 Fix BR and compilation flags (#1114566, #1109589) 2014-07-04 20:44:27 +02:00
Pavel Zhukov
e50eed4a85 Add fix for openjpeg2 2014-06-15 11:59:59 +02:00
Pavel Zhukov
5dc09a4503 New release 1.5 (#1108710) 2014-06-15 11:20:58 +02:00
Dennis Gilmore
eb84b080da - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 06:34:12 -05:00
Pavel Zhukov
4dc10c710f New release (#1087287) 2014-05-06 23:37:47 +02:00
Pavel Zhukov
fae027ba62 Fix stack overflow (#1056699) 2014-01-24 09:46:05 +00:00
Dennis Gilmore
4d7c4aa08c - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 07:15:15 -05:00
Dennis Gilmore
9f61557f86 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 01:44:20 -06:00
Adam Tkac
90f5bfa073 Rebuild due to "jpeg8-ABI" feature drop
Signed-off-by: Adam Tkac <atkac@redhat.com>
2013-01-21 15:40:40 +01:00
Pavel Zhukov
b655403797 New release - 1.1 2013-01-12 22:40:38 +01:00
Adam Tkac
c622ca6f5a rebuild against new libjpeg
Signed-off-by: Adam Tkac <vonsch@gmail.com>
2012-12-21 18:28:17 +01:00
Dennis Gilmore
66112c0c2b - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 22:19:43 -05:00
Pavel Zhukov
db9819a858 New release 2012-05-20 18:17:25 +04:00
Pavel Zhukov
92c98d7155 Fix stupid import 2012-03-14 22:04:37 +04:00
Pavel Zhukov
76cb706e3c Fix buffer overflow (#752388) 2012-03-14 22:01:09 +04:00
Rex Dieter
0ba36bb952 rebuild (openjpeg) 2012-02-09 22:48:29 -06:00
Dennis Gilmore
8fffe58280 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 04:37:28 -06:00
Pavel Zhukov
a8bcd89b8c New upstream release (#735969) 2011-10-27 11:59:48 +04:00
Pavel Zhukov
9dad1cb091 New upstream release (#700997) 2011-05-03 10:21:06 +04:00
Pavel Zhukov
96917942b1 Update to new release (#691171) 2011-03-27 16:47:42 +04:00
Dennis Gilmore
8fe1c51e03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-09 15:00:55 -06:00
Pavel Zhukov
7251245d6e Fixed BuildRequires for f13 2011-02-09 00:07:00 +03:00
Pavel Zhukov
3cf3a06d12 Initial import (#669311) 2011-02-08 23:26:30 +03:00
8 changed files with 560 additions and 0 deletions

51
.gitignore vendored
View File

@ -0,0 +1,51 @@
/mupdf-0.7.tar.gz
/mupdf-0.8.15-source.tar.gz
/mupdf-0.8.165-source.tar.gz
/mupdf-0.9-source.tar.gz
/mupdf-1.0-source.tar.gz
/mupdf-1.1-source.tar.gz
/mupdf-1.4-source.tar.gz
/mupdf-1.5-source.tar.gz
/mupdf-1.7-source.tar.gz
/mupdf-1.7a-source.tar.gz
/mupdf-1.8-source.tar.gz
/mupdf-1.10a-source.tar.gz
/mupdf-1.11-source.tar.gz
/mupdf-1.12-rc1-source.tar.gz
/mupdf-1.12.0-source.tar.gz
/mupdf-1.13.0-rc1-source.tar.gz
/mupdf-1.13.0-source.tar.gz
/mupdf-1.14.0-rc1-source.tar.gz
/mupdf-1.14.0-source.tar.gz
/mupdf-1.15.0-rc1-source.tar.gz
/mupdf-1.15.0-source.tar.gz
/mupdf-1.16.1-source.tar.gz
/mupdf-1.17.0-source.tar.gz
/mupdf-1.18.0-rc1-source.tar.gz
/mupdf-1.18.0-source.tar.gz
/mupdf-1.19.0-source.tar.gz
/mupdf-1.20.0-rc1-source.tar.gz
/mupdf-1.20.0-rc2-source.tar.gz
/mupdf-1.20.0-source.tar.gz
/mupdf-1.20.3-source.tar.gz
/mupdf-1.21.0-rc1-source.tar.gz
/mupdf-1.21.0-source.tar.gz
/mupdf-1.21.1-source.tar.gz
/mupdf-1.22.0-source.tar.gz
/mupdf-1.22.1-source.tar.gz
/mupdf-1.22.2-source.tar.gz
/mupdf-1.23.2-source.tar.gz
/mupdf-1.23.3-source.tar.gz
/mupdf-1.23.4-source.tar.gz
/mupdf-1.23.5-source.tar.gz
/mupdf-1.23.7-source.tar.gz
/mupdf-1.23.8-source.tar.gz
/mupdf-1.23.9-source.tar.gz
/mupdf-1.23.10-source.tar.gz
/mupdf-1.24.0-source.tar.gz
/mupdf-1.24.1-source.tar.gz
/mupdf-1.24.2-source.tar.gz
/mupdf-1.24.3-source.tar.gz
/mupdf-1.24.4-source.tar.gz
/mupdf-1.24.5-source.tar.gz
/mupdf-1.24.6-source.tar.gz

View File

@ -0,0 +1,29 @@
From 2fdf3e160fc2f30324d1ce9eaceedd3f0ea158bd Mon Sep 17 00:00:00 2001
Message-ID: <2fdf3e160fc2f30324d1ce9eaceedd3f0ea158bd.1717676942.git.mjg@fedoraproject.org>
From: Michael J Gruber <mjg@fedoraproject.org>
Date: Thu, 6 Jun 2024 14:27:12 +0200
Subject: [PATCH] Do not complain to your friendly local distribution manager
Artifex decided to rely on local forks for added functionality, so do
not complain to the distribution manager about lack of functionality in
unbundled builds.
---
platform/gl/gl-ui.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/platform/gl/gl-ui.c b/platform/gl/gl-ui.c
index d3dfb1de6..c0d9d72d7 100644
--- a/platform/gl/gl-ui.c
+++ b/platform/gl/gl-ui.c
@@ -449,8 +449,6 @@ void ui_init(int w, int h, const char *title)
#if defined(FREEGLUT) && (GLUT_API_VERSION >= 6)
glutKeyboardExtFunc(on_keyboard);
#else
- fz_warn(ctx, "This version of MuPDF has been built WITHOUT clipboard or unicode input support!");
- fz_warn(ctx, "Please file a complaint with your friendly local distribution manager.");
glutKeyboardFunc(on_keyboard);
#endif
glutSpecialFunc(on_special);
--
2.45.2.607.ge77ae43106

View File

@ -0,0 +1,28 @@
From e3423caf5820d97970068a243427c2bdc576fe26 Mon Sep 17 00:00:00 2001
Message-ID: <e3423caf5820d97970068a243427c2bdc576fe26.1710968212.git.mjg@fedoraproject.org>
From: Michael J Gruber <mjg@fedoraproject.org>
Date: Wed, 20 Mar 2024 21:55:23 +0100
Subject: [PATCH] add missing header for fz_archive
2eb4c51a4 ("Reduce document handler open functions to a single one.",
2024-01-08) introduced an additional fz_archive argument. Include the
header which defines the argument type.
---
include/mupdf/fitz/document.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index a23340768..a732fa5d8 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -32,6 +32,7 @@
#include "mupdf/fitz/link.h"
#include "mupdf/fitz/outline.h"
#include "mupdf/fitz/separation.h"
+#include "mupdf/fitz/archive.h"
typedef struct fz_document_handler fz_document_handler;
typedef struct fz_page fz_page;
--
2.44.0.458.ge6d7a2c32c

269
changelog Normal file
View File

@ -0,0 +1,269 @@
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1.18.0-9
- Rebuilt with OpenSSL 3.0.0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 14 2021 Scott Talbert <swt@techie.net> - 1.18.0-7
- Enable DroidSansFallback font
* Wed Feb 24 2021 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-6
- remove obsolete PyMuPDF support
* Tue Feb 23 2021 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-5
- CVE-2021-3407 (bz #1931964, bz#1931965)
* Tue Jan 26 2021 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-4
- (original date: Thu Oct 29 2020)
- remove obsolete patch
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Oct 08 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-2
- support PyMuPDF
* Thu Oct 08 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-1
- bugfix and feature release
- bz #1886338 #1886339 #1886083
* Sun Oct 04 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-0.1.rc1
- properly name the rc prerelease
- update versions of bundled libs
* Sat Oct 03 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.18.0-rc1
- mupdf 1.18.0-rc1 test
* Fri Sep 18 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.17.0-4
- rebuild with jbig2dec 0.19
* Mon Jul 27 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.17.0-3
- depend on exact jbig2dec version (bz 1861103)
* Sun May 31 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.17.0-2
- fix signature check crash
* Mon May 11 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.17.0-1
- rebase to 1.17.0 (bz #1831652)
* Wed Feb 05 2020 Michael J Gruber <mjg@fedoraproject.org> - 1.16.1-3
- fix build with gcc 10
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Aug 16 2019 Michael J Gruber <mjg@fedoraproject.org> - 1.16.1-1
- rebase to 1.16.1
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue May 07 2019 Michael J Gruber <mjg@fedoraproject.org> - 1.15.0-1
- rebase to 1.15.0
* Mon Apr 29 2019 Michael J Gruber <mjg@fedoraproject.org> - 1.15rc1-1
- rc1 test
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-7
- work around missing mesa EGl dependency
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-6
- signature handling fix needs more patches than claimed
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-5
- fix signature handling
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-4
- bz #1644444 #1644445
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-3
- bz #1626481 #1626484
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-2
- bz #1626483 #1626484
* Thu Nov 15 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14.0-1
- rebase to 1.14.0
* Mon Oct 01 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14rc1-3
- mupdf-gl desktop entry
* Mon Oct 01 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14rc1-2
- enable libcrypto
* Wed Sep 26 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.14rc1-1
- rc test
- adjust to new build system setup
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jun 10 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-8
- CVE-2018-10289 (rh bz #1573050) (gs bz #699271)
* Wed Jun 06 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-7
- fix license field (bug #1586328)
* Sun Jun 03 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-6
- fix lcms2art build on big endian
* Fri May 18 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-5
- fix BR (pulled in by freeglut-devel before)
* Mon Apr 23 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-4
- bundle unicode safe freeglut
* Mon Apr 23 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-3
- include (now non-empty) libmupdfthird.a again (fixes bug #1553915 for zathura-pdf-mupdf)
* Fri Apr 20 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-2
- bundle thread-safe lcms2 (fixes bug #1553915)
* Fri Apr 20 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-1
- rebase to 1.13.0 (rh bz #1569993)
* Fri Apr 13 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-6
- install svg icon
* Fri Apr 13 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-6
- install svg icon
* Wed Feb 14 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-5
- CVE-2018-6192 (rh bz #1539845 #1539846) (gs bz #698916)
- CVE-2018-6544 (rh bz #1542264 #1542265) (gs bz #698830 #698965)
- CVE-2018-1000051 (rh bz #1544847 #1544848) (gs bz #698825 #698873)
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Feb 06 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-4
- CVE-2018-6187 (rh bz #1538432 #1538433) (gs bz #698908)
* Wed Jan 24 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-2
- CVE-2017-17858 (rh bz #1537952) (gs bz #698819)
- CVE-2018-5686 (gs bz #698860)
* Thu Dec 14 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-1
- rebase to 1.12
- follow switch from GLFW to GLUT
- follow switch to new version scheme
* Sun Nov 26 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.12rc1-1
- rc test
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-9
- CVE-2017-15369
- CVE-2017-15587
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-8
- repair FTBFS from version specific patch in 412e729 ("New release 1.11", 2017-04-11)
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-7
- rebuild with jbig2dec 0.14 (#1456731)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Tue May 09 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-4
- Rebuild with new jbig2dec (#1443933)
* Fri Apr 14 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-3
- Fix mupdf-gl build (#1442384)
* Tue Apr 11 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-1
- New release 1.11 (#1441186)
* Thu Apr 6 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-5
- Fix stack consumption CVE (#1439643)
* Thu Mar 2 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-4
- fix buffer overflow (#1425338)
* Thu Mar 02 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.10a-3
- Several packaging fixes
* Thu Feb 23 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-2
- Add comment with explanation of disabled debuginfo
- Fix make verbose output
* Sat Feb 11 2017 Pavel Zhukov <pzhukov@redhat.com> - 1.10a-1
- New release (1.10a)
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sat Nov 28 2015 Pavel Zhukov <landgraf@fedoraproject.org> -1.8-1
- New release (#1280518)
* Sat Nov 28 2015 Pavel Zhukov <landgraf@fedoraproject.org> -1.7a-4
- Disable memento
* Wed Nov 18 2015 Petr Šabata <contyk@redhat.com> - 1.7a-3
- Package the license text with the %%license macro
- Don't use the %%version macro in filenames, it's not helpful
- Added extra handling for the docs; %%_docdir is no longer autopackaged,
plus we want to install the license text elsewhere
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7a-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Jun 01 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.7a-1
- New release 1.7a (#1219482)
* Wed May 06 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.7-1
- New release 1.7 (#1210318)
- Fix segfault in obj_close routine (#1202137, #1215752)
* Wed May 06 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-6
- Fix executable name in desktop file
* Sat Oct 11 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-5
- Add missed curl-devel
* Fri Jul 04 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-3
- Add fPIC flag (#1109589)
- Add curl-devel to BR (#1114566)
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-2
- Add fix for new openjpeg2
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-1
- New release 1.5 (#1108710)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue May 6 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.4-1
- New release 1.4 (#1087287)
* Fri Jan 24 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.1-5
- Fix stack overflow (#1056699)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.1-2
- rebuild due to "jpeg8-ABI" feature drop
* Wed Jan 09 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 1.1-1
- New release
* Sun May 20 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 1.0-1
- New release
* Wed Mar 14 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 0.9-2
- Fix buffer overflow (#752388)
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

10
mupdf-gl.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Mupdf-GL
GenericName=PDF file viewer
Comment=Lightweight PDF file viewer written on portable C
Exec=mupdf-gl %f
Icon=mupdf-gl
Terminal=false
Type=Application
Categories=Viewer;Graphics;
MimeType=application/pdf;application/x-pdf;

11
mupdf.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Mupdf
GenericName=PDF file viewer
Comment=Lightweight PDF file viewer written on portable C
Exec=mupdf-x11 %f
Icon=mupdf
Terminal=false
Type=Application
Categories=Viewer;Graphics;
MimeType=application/pdf;application/x-pdf;
NoDisplay=true

161
mupdf.spec Normal file
View File

@ -0,0 +1,161 @@
Name: mupdf
%global libname libmupdf
Version: 1.24.6
%global pypiname mupdf
# upstream prerelease versions tags need to be translated to Fedorian
%global upversion %{version}
%global soname 24.6
Release: %autorelease
Summary: A lightweight PDF viewer and toolkit
License: AGPL-3.0-or-later
URL: http://mupdf.com/
Source0: http://mupdf.com/downloads/archive/%{name}-%{upversion}-source.tar.gz
Source1: %{name}.desktop
Source2: %{name}-gl.desktop
# Upstreamable patches:
# https://bugs.ghostscript.com/show_bug.cgi?id=707682
Patch: 0001-add-missing-header-for-fz_archive.patch
# Fedora specific patches:
# Do not bug me if Artifex relies on local fork
Patch: 0001-Do-not-complain-to-your-friendly-local-distribution-.patch
BuildRequires: gcc gcc-c++ make binutils desktop-file-utils coreutils pkgconfig
BuildRequires: openjpeg2-devel desktop-file-utils
BuildRequires: libjpeg-devel freetype-devel libXext-devel curl-devel
BuildRequires: harfbuzz-devel openssl-devel mesa-libEGL-devel
BuildRequires: mesa-libGL-devel mesa-libGLU-devel libXi-devel libXrandr-devel
BuildRequires: gumbo-parser-devel leptonica-devel tesseract-devel
BuildRequires: freeglut-devel
BuildRequires: jbig2dec-devel
BuildRequires: swig python3-clang python3-devel
# We need to build against the Artifex fork of lcms2 so that we are thread safe
# (see bug #1553915). Artifex make sure to rebase against upstream, who refuse
# to integrate Artifex's changes.
Provides: bundled(lcms2-devel) = 2.14~rc1^60.gab4547b
# muPDF needs the muJS sources for the build even if we build against the system
# version so bundling them is the safer choice.
Provides: bundled(mujs-devel) = 1.3.3
# muPDF builds only against in-tree extract which is versioned along with ghostpdl.
Provides: bundled(extract) = 10.01.2^1.ged5acb1
%description
MuPDF is a lightweight PDF viewer and toolkit written in portable C.
The renderer in MuPDF is tailored for high quality anti-aliased
graphics. MuPDF renders text with metrics and spacing accurate to
within fractions of a pixel for the highest fidelity in reproducing
the look of a printed page on screen.
MuPDF has a small footprint. A binary that includes the standard
Roman fonts is only one megabyte. A build with full CJK support
(including an Asian font) is approximately seven megabytes.
MuPDF has support for all non-interactive PDF 1.7 features, and the
toolkit provides a simple API for accessing the internal structures of
the PDF document. Example code for navigating interactive links and
bookmarks, encrypting PDF files, extracting fonts, images, and
searchable text, and rendering pages to image files is provided.
%package devel
Summary: C Development files for %{name}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description devel
The mupdf-devel package contains library and header files for developing
C applications that use the mupdf library.
%package libs
Summary: C Library files for %{name}
%description libs
The mupdf-libs package contains the mupdf C library files.
%package cpp-devel
Summary: C++ Development files for %{name}
Requires: %{name}-cpp-libs%{_isa} = %{version}-%{release}
%description cpp-devel
The mupdf-cpp-devel package contains library and header files for developing
C++ applications that use the mupdf library.
%package cpp-libs
Summary: C++ Library files for %{name}
%description cpp-libs
The mupdf-cpp-libs package contains the mupdf C++ library files.
%package -n python3-%{pypiname}
Summary: Python bindings for %{name}
%description -n python3-%{pypiname}
The python3-%{pypiname} package contains low level mupdf python bindings.
%prep
%autosetup -p1 -n %{name}-%{upversion}-source
for d in $(ls thirdparty | grep -v -e extract -e lcms2 -e mujs)
do
rm -rf thirdparty/$d
done
echo > user.make "\
USE_SYSTEM_LIBS := yes
USE_SYSTEM_MUJS := no # build needs source anyways
USE_TESSERACT := yes
VENV_FLAG :=
build := debug
shared := yes
verbose := yes
"
# c++ and python install targets rebuild unconditionally. Avoid multiple rebuilds:
sed -i -e '/^install-shared-c++:/s/ c++//' Makefile
sed -i -e '/^install-shared-python:/s/ python//' Makefile
%build
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK_EXT"
make %{?_smp_mflags} c++ python
%install
make DESTDIR=%{buildroot} install install-shared-c install-shared-c++ install-shared-python prefix=%{_prefix} libdir=%{_libdir} pydir=%{python3_sitearch} SO_INSTALL_MODE=755
# wheel bundles too much, so build & install with make and generate metadata here:
MUPDF_SETUP_VERSION=%{version} %{__python3} setup.py dist_info
mkdir -p %{buildroot}/%{python3_sitearch}/%{pypiname}-%{version}.dist-info
install -p -m644 mupdf-*.dist-info/METADATA/PKG-INFO %{buildroot}/%{python3_sitearch}/%{pypiname}-%{version}.dist-info/METADATA
# handle docs on our own
rm -rf %{buildroot}/%{_docdir}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -p -m644 docs/logo/mupdf-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mupdf.svg
install -p -m644 docs/logo/mupdf-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mupdf-gl.svg
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \;
cd %{buildroot}/%{_bindir} && ln -s %{name}-x11 %{name}
%files
%license COPYING
%doc README CHANGES docs/*
%{_bindir}/*
%{_datadir}/applications/mupdf*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/*.1.gz
%files devel
%{_includedir}/%{name}
%{_libdir}/%{libname}.so
%files libs
%license COPYING
%{_libdir}/%{libname}.so.%{soname}
%files cpp-devel
%{_includedir}/%{name}
%{_libdir}/%{libname}cpp.so
%files cpp-libs
%license COPYING
%{_libdir}/%{libname}cpp.so.%{soname}
%files -n python3-%{pypiname}
%license COPYING
%{python3_sitearch}/%{pypiname}/
%{python3_sitearch}/%{pypiname}-%{version}.dist-info/
%changelog
%autochangelog

View File

@ -0,0 +1 @@
SHA512 (mupdf-1.24.6-source.tar.gz) = 251a347cc98c837070f01abfc9463a16867e22d06a015967e3e6f4a886c2599c0027641fc36e3f6f50602e088fe9338325007988dcf00f935b2a7dde48615020