2011-02-08 20:26:30 +00:00
|
|
|
Name: mupdf
|
2017-12-14 09:47:00 +00:00
|
|
|
Version: 1.12.0
|
2018-02-14 13:42:49 +00:00
|
|
|
Release: 5%{?dist}
|
2011-02-08 20:26:30 +00:00
|
|
|
Summary: A lightweight PDF viewer and toolkit
|
|
|
|
Group: Applications/Publishing
|
|
|
|
License: GPLv3
|
|
|
|
URL: http://mupdf.com/
|
2017-12-14 09:47:00 +00:00
|
|
|
Source0: http://mupdf.com/downloads/%{name}-%{version}-source.tar.gz
|
2011-02-08 20:26:30 +00:00
|
|
|
Source1: %{name}.desktop
|
2015-11-28 13:20:06 +00:00
|
|
|
BuildRequires: gcc make binutils desktop-file-utils coreutils
|
2014-05-06 21:37:47 +00:00
|
|
|
BuildRequires: openjpeg2-devel jbig2dec-devel desktop-file-utils
|
2014-10-11 23:08:54 +00:00
|
|
|
BuildRequires: libjpeg-devel freetype-devel libXext-devel curl-devel
|
2017-03-02 20:16:09 +00:00
|
|
|
BuildRequires: harfbuzz-devel
|
2017-12-14 09:47:00 +00:00
|
|
|
BuildRequires: mesa-libGL-devel freeglut-devel
|
2017-11-26 16:59:11 +00:00
|
|
|
Patch0: %{name}-1.12-openjpeg.patch
|
2018-01-24 08:55:14 +00:00
|
|
|
Patch1: %{name}-1.12-CVE-2017-17858.patch
|
|
|
|
Patch2: %{name}-1.12-CVE-2018-5686.patch
|
2018-02-14 13:36:29 +00:00
|
|
|
Patch3: %{name}-1.12-CVE-2018-6187.patch
|
2018-02-14 13:42:49 +00:00
|
|
|
Patch4: %{name}-1.12-CVE-2018-6192.patch
|
2018-02-14 14:01:00 +00:00
|
|
|
Patch5: %{name}-1.12-CVE-2018-6544-1.patch
|
|
|
|
Patch6: %{name}-1.12-CVE-2018-6544-2.patch
|
|
|
|
Patch7: %{name}-1.12-CVE-2018-1000051.patch
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%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 five 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: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The mupdf-devel package contains header files for developing
|
|
|
|
applications that use mupdf and static libraries
|
|
|
|
|
|
|
|
%prep
|
2017-12-14 09:47:00 +00:00
|
|
|
%setup -q -n %{name}-%{version}-source
|
2017-02-24 17:35:13 +00:00
|
|
|
rm -rf thirdparty
|
2014-06-15 09:59:59 +00:00
|
|
|
%patch0 -p1
|
2018-01-24 08:55:14 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2018-02-14 13:36:29 +00:00
|
|
|
%patch3 -p1
|
2018-02-14 13:42:49 +00:00
|
|
|
%patch4 -p1
|
2018-02-14 14:01:00 +00:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-14 21:09:59 +00:00
|
|
|
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK"
|
2011-02-08 20:26:30 +00:00
|
|
|
|
2017-12-14 09:47:00 +00:00
|
|
|
make %{?_smp_mflags} build=debug verbose=yes HAVE_GLUT=yes SYS_GLUT_CFLAGS="-I%{_includedir}/GL" GLUT_LIBS="-lGL -lglut"
|
2011-02-08 20:26:30 +00:00
|
|
|
%install
|
2017-12-14 09:47:00 +00:00
|
|
|
make DESTDIR=%{buildroot} install prefix=%{_prefix} libdir=%{_libdir} build=debug verbose=yes HAVE_GLUT=yes
|
2015-11-18 14:50:35 +00:00
|
|
|
## handle docs on our own
|
|
|
|
rm -rf %{buildroot}/%{_docdir}
|
2011-02-08 20:26:30 +00:00
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
## fix strange permissons
|
2011-05-03 06:21:06 +00:00
|
|
|
chmod 0644 %{buildroot}%{_libdir}/*.a
|
2011-03-27 12:47:42 +00:00
|
|
|
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
|
2014-05-06 21:37:47 +00:00
|
|
|
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \;
|
2015-06-01 11:50:27 +00:00
|
|
|
cd %{buildroot}/%{_bindir} && ln -s %{name}-x11 %{name}
|
2017-03-02 20:16:09 +00:00
|
|
|
## Removing empty library as rpmlint complains about and we don't have thirdparty
|
|
|
|
rm -f %{buildroot}/%{_libdir}/libmupdfthird.a
|
|
|
|
|
2015-05-06 16:54:53 +00:00
|
|
|
|
2011-02-08 20:26:30 +00:00
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%files
|
2015-11-18 14:50:35 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README CHANGES docs/*
|
2014-05-06 21:37:47 +00:00
|
|
|
%{_bindir}/*
|
2012-05-20 14:17:25 +00:00
|
|
|
%{_datadir}/applications/mupdf.desktop
|
2014-05-06 21:37:47 +00:00
|
|
|
%{_mandir}/man1/*.1.gz
|
2012-05-20 14:17:25 +00:00
|
|
|
|
2011-02-08 20:26:30 +00:00
|
|
|
%files devel
|
2014-05-06 21:37:47 +00:00
|
|
|
%{_includedir}/%{name}
|
2017-02-11 19:19:36 +00:00
|
|
|
%{_libdir}/lib%{name}*.a
|
2014-05-06 21:37:47 +00:00
|
|
|
|
2015-11-18 14:50:35 +00:00
|
|
|
%changelog
|
2018-02-14 13:42:49 +00:00
|
|
|
* Wed Feb 14 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-5
|
|
|
|
- CVE-2018-6192 (rh bz #1539845 #1539846) (gs bz #698916)
|
2018-02-14 14:01:00 +00:00
|
|
|
- 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 13:42:49 +00:00
|
|
|
|
2018-02-08 03:32:12 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-14 13:36:29 +00:00
|
|
|
* Tue Feb 06 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.12.0-4
|
|
|
|
- CVE-2018-6187 (rh bz #1538432 #1538433) (gs bz #698908)
|
|
|
|
|
2018-01-24 08:55:14 +00:00
|
|
|
* 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)
|
|
|
|
|
2017-12-14 09:47:00 +00:00
|
|
|
* 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
|
|
|
|
|
2017-11-26 16:59:11 +00:00
|
|
|
* Sun Nov 26 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.12rc1-1
|
|
|
|
- rc test
|
|
|
|
|
2017-11-11 19:49:00 +00:00
|
|
|
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-9
|
2017-11-11 19:51:20 +00:00
|
|
|
- CVE-2017-15369
|
|
|
|
- CVE-2017-15587
|
2017-11-11 19:49:00 +00:00
|
|
|
|
2017-11-11 17:07:23 +00:00
|
|
|
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-8
|
2017-11-11 19:51:20 +00:00
|
|
|
- repair FTBFS from version specific patch in 412e729 ("New release 1.11", 2017-04-11)
|
2017-11-11 17:07:23 +00:00
|
|
|
|
2017-11-11 16:14:05 +00:00
|
|
|
* Sat Nov 11 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.11-7
|
|
|
|
- rebuild with jbig2dec 0.14 (#1456731)
|
|
|
|
|
2017-08-03 03:42:00 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 22:28:13 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-09 11:37:23 +00:00
|
|
|
* Tue May 09 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-4
|
|
|
|
- Rebuild with new jbig2dec (#1443933)
|
|
|
|
|
2017-04-14 21:32:48 +00:00
|
|
|
* Fri Apr 14 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-3
|
2017-04-14 21:09:59 +00:00
|
|
|
- Fix mupdf-gl build (#1442384)
|
|
|
|
|
2017-04-11 16:56:45 +00:00
|
|
|
* Tue Apr 11 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.11-1
|
|
|
|
- New release 1.11 (#1441186)
|
|
|
|
|
2017-04-06 12:01:38 +00:00
|
|
|
* Thu Apr 6 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-5
|
|
|
|
- Fix stack consumption CVE (#1439643)
|
|
|
|
|
2017-03-02 20:41:02 +00:00
|
|
|
* Thu Mar 2 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-4
|
|
|
|
- fix buffer overflow (#1425338)
|
|
|
|
|
2017-03-02 20:16:09 +00:00
|
|
|
* Thu Mar 02 2017 Michael J Gruber <mjg@fedoraproject.org> - 1.10a-3
|
|
|
|
- Several packaging fixes
|
|
|
|
|
2017-02-24 17:35:13 +00:00
|
|
|
* Thu Feb 23 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 1.10a-2
|
|
|
|
- Add comment with explanation of disabled debuginfo
|
|
|
|
- Fix make verbose output
|
|
|
|
|
2017-02-11 19:19:36 +00:00
|
|
|
* Sat Feb 11 2017 Pavel Zhukov <pzhukov@redhat.com> - 1.10a-1
|
|
|
|
- New release (1.10a)
|
|
|
|
|
2017-02-10 21:53:07 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 08:55:04 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-28 13:20:06 +00:00
|
|
|
* Sat Nov 28 2015 Pavel Zhukov <landgraf@fedoraproject.org> -1.8-1
|
|
|
|
- New release (#1280518)
|
|
|
|
|
2015-11-28 12:50:38 +00:00
|
|
|
* Sat Nov 28 2015 Pavel Zhukov <landgraf@fedoraproject.org> -1.7a-4
|
|
|
|
- Disable memento
|
|
|
|
|
2015-11-18 14:50:35 +00:00
|
|
|
* 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
|
|
|
|
|
2015-06-17 21:15:20 +00:00
|
|
|
* 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
|
|
|
|
|
2015-06-01 11:50:27 +00:00
|
|
|
* Mon Jun 01 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.7a-1
|
|
|
|
- New release 1.7a (#1219482)
|
2015-05-06 16:54:53 +00:00
|
|
|
* Wed May 06 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.7-1
|
|
|
|
- New release 1.7 (#1210318)
|
2015-05-06 17:09:52 +00:00
|
|
|
- Fix segfault in obj_close routine (#1202137, #1215752)
|
2015-05-06 16:54:53 +00:00
|
|
|
|
2015-05-06 16:30:51 +00:00
|
|
|
* Wed May 06 2015 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-6
|
|
|
|
- Fix executable name in desktop file
|
|
|
|
|
2014-10-11 23:08:54 +00:00
|
|
|
* Sat Oct 11 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-5
|
|
|
|
- Add missed curl-devel
|
|
|
|
|
2014-07-04 18:44:27 +00:00
|
|
|
* Fri Jul 04 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-3
|
|
|
|
- Add fPIC flag (#1109589)
|
|
|
|
- Add curl-devel to BR (#1114566)
|
2014-10-11 23:08:54 +00:00
|
|
|
|
2014-06-15 09:59:59 +00:00
|
|
|
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-2
|
|
|
|
- Add fix for new openjpeg2
|
|
|
|
|
2014-06-15 09:20:58 +00:00
|
|
|
* Sun Jun 15 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.5-1
|
|
|
|
- New release 1.5 (#1108710)
|
|
|
|
|
2014-06-07 11:34:12 +00:00
|
|
|
* 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
|
|
|
|
|
2014-06-15 09:20:58 +00:00
|
|
|
* Tue May 6 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.4-1
|
2014-05-06 21:37:47 +00:00
|
|
|
- New release 1.4 (#1087287)
|
|
|
|
|
2014-01-24 09:46:05 +00:00
|
|
|
* Fri Jan 24 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 1.1-5
|
|
|
|
- Fix stack overflow (#1056699)
|
|
|
|
|
2013-08-03 12:15:15 +00:00
|
|
|
* 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
|
|
|
|
|
2013-02-14 07:44:20 +00:00
|
|
|
* 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
|
|
|
|
|
2013-01-21 14:40:40 +00:00
|
|
|
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.1-2
|
|
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
|
2013-01-12 21:40:38 +00:00
|
|
|
* Wed Jan 09 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 1.1-1
|
|
|
|
- New release
|
2012-07-20 03:19:43 +00:00
|
|
|
|
2012-05-20 14:17:25 +00:00
|
|
|
* Sun May 20 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 1.0-1
|
|
|
|
- New release
|
2012-03-14 18:04:37 +00:00
|
|
|
|
2012-05-20 14:17:25 +00:00
|
|
|
* Wed Mar 14 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 0.9-2
|
|
|
|
- Fix buffer overflow (#752388)
|
2012-03-14 18:04:37 +00:00
|
|
|
|
2012-01-13 10:37:28 +00:00
|
|
|
* 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
|