|
|
@ -1,28 +1,27 @@ |
|
|
|
Name: mupdf |
|
|
|
Name: mupdf |
|
|
|
Version: 1.13.0 |
|
|
|
Version: 1.16.1 |
|
|
|
Release: 8%{?dist} |
|
|
|
Release: 1%{?dist} |
|
|
|
Summary: A lightweight PDF viewer and toolkit |
|
|
|
Summary: A lightweight PDF viewer and toolkit |
|
|
|
Group: Applications/Publishing |
|
|
|
|
|
|
|
License: AGPLv3+ |
|
|
|
License: AGPLv3+ |
|
|
|
URL: http://mupdf.com/ |
|
|
|
URL: http://mupdf.com/ |
|
|
|
Source0: http://mupdf.com/downloads/%{name}-%{version}-source.tar.gz |
|
|
|
Source0: http://mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz |
|
|
|
Source1: %{name}.desktop |
|
|
|
Source1: %{name}.desktop |
|
|
|
BuildRequires: gcc make binutils desktop-file-utils coreutils |
|
|
|
Source2: %{name}-gl.desktop |
|
|
|
|
|
|
|
BuildRequires: gcc make binutils desktop-file-utils coreutils pkgconfig |
|
|
|
BuildRequires: openjpeg2-devel jbig2dec-devel desktop-file-utils |
|
|
|
BuildRequires: openjpeg2-devel jbig2dec-devel desktop-file-utils |
|
|
|
BuildRequires: libjpeg-devel freetype-devel libXext-devel curl-devel |
|
|
|
BuildRequires: libjpeg-devel freetype-devel libXext-devel curl-devel |
|
|
|
BuildRequires: harfbuzz-devel |
|
|
|
BuildRequires: harfbuzz-devel openssl-devel mesa-libEGL-devel |
|
|
|
BuildRequires: mesa-libGL-devel mesa-libGLU-devel libXi-devel libXrandr-devel |
|
|
|
BuildRequires: mesa-libGL-devel mesa-libGLU-devel libXi-devel libXrandr-devel |
|
|
|
# We need to build against the Artifex fork of lcms2 so that we are thread safe |
|
|
|
# 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 |
|
|
|
# (see bug #1553915). Artifex make sure to rebase against upstream, who refuse |
|
|
|
# to integrate Artifex's changes. |
|
|
|
# to integrate Artifex's changes. |
|
|
|
Provides: bundled(lcms2-devel) = 2.9 |
|
|
|
Provides: bundled(lcms2-devel) = 2.9 |
|
|
|
# We need to build against the Artifex fork of freeglut so that we are unicode safe. |
|
|
|
# We need to build against the Artifex fork of freeglut so that we are unicode safe. |
|
|
|
Provides: bundled(freeglut)-devel) = 3.0.0 |
|
|
|
Provides: bundled(freeglut-devel) = 3.0.0 |
|
|
|
Patch0: %{name}-1.13-openjpeg.patch |
|
|
|
# muPDF needs the muJS sources for the build even if we build against the system |
|
|
|
Patch1: 0001-fix-build-on-big-endian.patch |
|
|
|
# version so bundling them is the safer choice. |
|
|
|
Patch2: 0001-Fix-699271-skip-space-correctly.patch |
|
|
|
Provides: bundled(mujs-devel) = 1.0.5 |
|
|
|
# https://acidwords.com/posts/2016-07-26-hacking-mupdf-custom-background-colors.html |
|
|
|
Patch0: 0001-fix-build-on-big-endian.patch |
|
|
|
Patch3: mupdf-inverted-colors.patch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
MuPDF is a lightweight PDF viewer and toolkit written in portable C. |
|
|
|
MuPDF is a lightweight PDF viewer and toolkit written in portable C. |
|
|
@ -41,7 +40,6 @@ searchable text, and rendering pages to image files is provided. |
|
|
|
|
|
|
|
|
|
|
|
%package devel |
|
|
|
%package devel |
|
|
|
Summary: Development files for %{name} |
|
|
|
Summary: Development files for %{name} |
|
|
|
Group: Development/Libraries |
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
|
Provides: %{name}-static = %{version}-%{release} |
|
|
|
Provides: %{name}-static = %{version}-%{release} |
|
|
|
|
|
|
|
|
|
|
@ -51,44 +49,49 @@ applications that use mupdf and static libraries |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -n %{name}-%{version}-source |
|
|
|
%setup -q -n %{name}-%{version}-source |
|
|
|
for d in $(ls thirdparty | grep -v -e freeglut -e lcms2) |
|
|
|
for d in $(ls thirdparty | grep -v -e freeglut -e lcms2 -e mujs) |
|
|
|
do |
|
|
|
do |
|
|
|
rm -rf thirdparty/$d |
|
|
|
rm -rf thirdparty/$d |
|
|
|
done |
|
|
|
done |
|
|
|
%patch0 -p1 |
|
|
|
%patch0 -p1 -d thirdparty/lcms2 |
|
|
|
%patch1 -p1 -d thirdparty/lcms2 |
|
|
|
echo > user.make "\ |
|
|
|
%patch2 -p1 |
|
|
|
USE_SYSTEM_FREETYPE := yes |
|
|
|
%patch3 -p1 |
|
|
|
USE_SYSTEM_HARFBUZZ := yes |
|
|
|
|
|
|
|
USE_SYSTEM_JBIG2DEC := yes |
|
|
|
|
|
|
|
USE_SYSTEM_JPEGXR := yes # not used without HAVE_JPEGXR |
|
|
|
|
|
|
|
USE_SYSTEM_LCMS2 := no # need lcms2-art fork |
|
|
|
|
|
|
|
USE_SYSTEM_LIBJPEG := yes |
|
|
|
|
|
|
|
USE_SYSTEM_MUJS := no # build needs source anyways |
|
|
|
|
|
|
|
USE_SYSTEM_OPENJPEG := yes |
|
|
|
|
|
|
|
USE_SYSTEM_ZLIB := yes |
|
|
|
|
|
|
|
USE_SYSTEM_GLUT := no # need freeglut2-art frok |
|
|
|
|
|
|
|
USE_SYSTEM_CURL := yes |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK" |
|
|
|
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK" |
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} build=debug verbose=yes |
|
|
|
make %{?_smp_mflags} build=debug verbose=yes |
|
|
|
%install |
|
|
|
%install |
|
|
|
make DESTDIR=%{buildroot} install prefix=%{_prefix} libdir=%{_libdir} build=debug verbose=yes HAVE_GLUT=yes |
|
|
|
make DESTDIR=%{buildroot} install prefix=%{_prefix} libdir=%{_libdir} build=debug verbose=yes |
|
|
|
## handle docs on our own |
|
|
|
## handle docs on our own |
|
|
|
rm -rf %{buildroot}/%{_docdir} |
|
|
|
rm -rf %{buildroot}/%{_docdir} |
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} |
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} |
|
|
|
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} |
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps |
|
|
|
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.svg |
|
|
|
|
|
|
|
install -p -m644 docs/logo/mupdf-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mupdf-gl.svg |
|
|
|
## fix strange permissons |
|
|
|
## fix strange permissons |
|
|
|
chmod 0644 %{buildroot}%{_libdir}/*.a |
|
|
|
chmod 0644 %{buildroot}%{_libdir}/*.a |
|
|
|
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \; |
|
|
|
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \; |
|
|
|
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \; |
|
|
|
find %{buildroot}/%{_includedir} -type f -exec chmod 0644 {} \; |
|
|
|
cd %{buildroot}/%{_bindir} && ln -s %{name}-x11 %{name} |
|
|
|
cd %{buildroot}/%{_bindir} && ln -s %{name}-x11 %{name} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
|
|
|
update-desktop-database &> /dev/null || : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun |
|
|
|
|
|
|
|
update-desktop-database &> /dev/null || : |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%license COPYING |
|
|
|
%license COPYING |
|
|
|
%doc README CHANGES docs/* |
|
|
|
%doc README CHANGES docs/* |
|
|
|
%{_bindir}/* |
|
|
|
%{_bindir}/* |
|
|
|
%{_datadir}/applications/mupdf.desktop |
|
|
|
%{_datadir}/applications/mupdf*.desktop |
|
|
|
%{_datadir}/icons/hicolor/*/apps/* |
|
|
|
%{_datadir}/icons/hicolor/*/apps/* |
|
|
|
%{_mandir}/man1/*.1.gz |
|
|
|
%{_mandir}/man1/*.1.gz |
|
|
|
|
|
|
|
|
|
|
@ -97,6 +100,55 @@ update-desktop-database &> /dev/null || : |
|
|
|
%{_libdir}/lib%{name}*.a |
|
|
|
%{_libdir}/lib%{name}*.a |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
|
|
|
|
* 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 |
|
|
|
* Sun Jun 10 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.13.0-8 |
|
|
|
- CVE-2018-10289 (rh bz #1573050) (gs bz #699271) |
|
|
|
- CVE-2018-10289 (rh bz #1573050) (gs bz #699271) |
|
|
|
|
|
|
|
|
|
|
|