|
|
3cf3a06 |
Name: mupdf
|
|
|
b655403 |
Version: 1.1
|
|
|
4d7c4aa |
Release: 4%{?dist}
|
|
|
3cf3a06 |
Summary: A lightweight PDF viewer and toolkit
|
|
|
3cf3a06 |
Group: Applications/Publishing
|
|
|
3cf3a06 |
License: GPLv3
|
|
|
3cf3a06 |
URL: http://mupdf.com/
|
|
|
9691794 |
Source0: http://mupdf.com/download/%{name}-%{version}-source.tar.gz
|
|
|
3cf3a06 |
Source1: %{name}.desktop
|
|
|
db9819a |
## http://bugs.ghostscript.com/show_bug.cgi?format=multiple&id=693010
|
|
|
db9819a |
Patch0: %{name}-upstream.patch
|
|
|
3cf3a06 |
BuildRequires: openjpeg-devel jbig2dec-devel desktop-file-utils
|
|
|
7251245 |
BuildRequires: libjpeg-devel freetype-devel libXext-devel
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%description
|
|
|
3cf3a06 |
MuPDF is a lightweight PDF viewer and toolkit written in portable C.
|
|
|
3cf3a06 |
The renderer in MuPDF is tailored for high quality anti-aliased
|
|
|
3cf3a06 |
graphics. MuPDF renders text with metrics and spacing accurate to
|
|
|
3cf3a06 |
within fractions of a pixel for the highest fidelity in reproducing
|
|
|
3cf3a06 |
the look of a printed page on screen.
|
|
|
3cf3a06 |
MuPDF has a small footprint. A binary that includes the standard
|
|
|
3cf3a06 |
Roman fonts is only one megabyte. A build with full CJK support
|
|
|
3cf3a06 |
(including an Asian font) is approximately five megabytes.
|
|
|
3cf3a06 |
MuPDF has support for all non-interactive PDF 1.7 features, and the
|
|
|
3cf3a06 |
toolkit provides a simple API for accessing the internal structures of
|
|
|
3cf3a06 |
the PDF document. Example code for navigating interactive links and
|
|
|
3cf3a06 |
bookmarks, encrypting PDF files, extracting fonts, images, and
|
|
|
3cf3a06 |
searchable text, and rendering pages to image files is provided.
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%package devel
|
|
|
3cf3a06 |
Summary: Development files for %{name}
|
|
|
3cf3a06 |
Group: Development/Libraries
|
|
|
3cf3a06 |
Requires: %{name} = %{version}-%{release}
|
|
|
3cf3a06 |
Provides: %{name}-static = %{version}-%{release}
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%description devel
|
|
|
3cf3a06 |
The mupdf-devel package contains header files for developing
|
|
|
3cf3a06 |
applications that use mupdf and static libraries
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%prep
|
|
|
db9819a |
%setup -q -n %{name}-%{version}-source
|
|
|
76cb706 |
%patch0 -p1
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%build
|
|
|
3cf3a06 |
export CFLAGS="%{optflags}"
|
|
|
db9819a |
make -j1
|
|
|
db9819a |
## %{?_smp_mflags} verbose=1
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%install
|
|
|
9dad1cb |
make DESTDIR=%{buildroot} install prefix=%{buildroot}/usr libdir=%{buildroot}%{_libdir}
|
|
|
3cf3a06 |
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
3cf3a06 |
install -D -m644 debian/%{name}.xpm %{buildroot}/%{_datadir}/pixmaps/%{name}.xpm
|
|
|
9dad1cb |
## filename conflict with poppler
|
|
|
db9819a |
### mv %{buildroot}%{_bindir}/pdfinfo %{buildroot}%{_bindir}/pdfinfo-mupdf
|
|
|
3cf3a06 |
## fix strange permissons
|
|
|
9dad1cb |
chmod 0644 %{buildroot}/%{_includedir}/*.h
|
|
|
9dad1cb |
chmod 0644 %{buildroot}%{_libdir}/*.a
|
|
|
9691794 |
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%post
|
|
|
3cf3a06 |
update-desktop-database &> /dev/null || :
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%postun
|
|
|
3cf3a06 |
update-desktop-database &> /dev/null || :
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%files
|
|
|
3cf3a06 |
%defattr(-,root,root,-)
|
|
|
3cf3a06 |
%doc COPYING README
|
|
|
db9819a |
%{_bindir}/mupdf
|
|
|
b655403 |
%{_bindir}/mudraw
|
|
|
b655403 |
%{_bindir}/mubusy
|
|
|
db9819a |
%{_datadir}/applications/mupdf.desktop
|
|
|
db9819a |
%{_mandir}/man1/mudraw.1.gz
|
|
|
b655403 |
%{_mandir}/man1/mubusy.1.gz
|
|
|
db9819a |
%{_mandir}/man1/mupdf.1.gz
|
|
|
db9819a |
%{_datadir}/pixmaps/mupdf.xpm
|
|
|
db9819a |
|
|
|
db9819a |
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%files devel
|
|
|
3cf3a06 |
%defattr(-,root,root,-)
|
|
|
3cf3a06 |
%{_includedir}/fitz.h
|
|
|
db9819a |
%{_includedir}/memento.h
|
|
|
db9819a |
%{_includedir}/mucbz.h
|
|
|
db9819a |
%{_includedir}/mupdf.h
|
|
|
9dad1cb |
%{_includedir}/muxps.h
|
|
|
9dad1cb |
%{_libdir}/libfitz.a
|
|
|
3cf3a06 |
|
|
|
3cf3a06 |
%changelog
|
|
|
4d7c4aa |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
|
|
|
4d7c4aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4d7c4aa |
|
|
|
9f61557 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
|
|
|
9f61557 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9f61557 |
|
|
Adam Tkac |
90f5bfa |
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.1-2
|
|
Adam Tkac |
90f5bfa |
- rebuild due to "jpeg8-ABI" feature drop
|
|
Adam Tkac |
90f5bfa |
|
|
|
b655403 |
* Wed Jan 09 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 1.1-1
|
|
|
b655403 |
- New release
|
|
|
66112c0 |
|
|
|
db9819a |
* Sun May 20 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 1.0-1
|
|
|
db9819a |
- New release
|
|
|
92c98d7 |
|
|
|
db9819a |
* Wed Mar 14 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 0.9-2
|
|
|
db9819a |
- Fix buffer overflow (#752388)
|
|
|
92c98d7 |
|
|
|
8fffe58 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
8fffe58 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8fffe58 |
|
|
|
a8bcd89 |
* Wed Oct 27 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.9-1
|
|
|
a8bcd89 |
- New release
|
|
|
a8bcd89 |
|
|
|
9dad1cb |
* Tue May 03 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.8.165-2
|
|
|
9dad1cb |
- New upstream release
|
|
|
9dad1cb |
- Fix *.a and *.h permissions
|
|
|
9dad1cb |
|
|
|
9691794 |
* Sun Mar 27 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.8.15-1
|
|
|
9691794 |
- New upstream release
|
|
|
8fe1c51 |
|
|
|
9691794 |
* Tue Feb 9 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-7
|
|
|
7251245 |
- Fix dependency for F13
|
|
|
7251245 |
|
|
|
9691794 |
* Sun Feb 7 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-6
|
|
|
3cf3a06 |
- roll back to static libraries patch for shared libs has been rejected
|
|
|
3cf3a06 |
- Fix spec errors
|
|
|
3cf3a06 |
|
|
|
9691794 |
* Fri Jan 14 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-4
|
|
|
3cf3a06 |
- replac poitless macros to command names
|
|
|
3cf3a06 |
|
|
|
9691794 |
* Fri Jan 14 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-3
|
|
|
3cf3a06 |
- Create patch for optflags
|
|
|
3cf3a06 |
- Change Summary
|
|
|
3cf3a06 |
- Fix Require for devel package
|
|
|
3cf3a06 |
|
|
|
9691794 |
* Thu Jan 13 2011 Pavel Zhukov <landgraf@fedoraproject.org> -0.7-2
|
|
|
3cf3a06 |
- add Fedora CFLAGS
|
|
|
3cf3a06 |
- create patch for use shared library
|
|
|
3cf3a06 |
|
|
|
9691794 |
* Wed Jan 12 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-1
|
|
|
3cf3a06 |
- Initial package
|