2011-02-08 20:26:30 +00:00
|
|
|
Name: mupdf
|
2013-01-12 21:40:38 +00:00
|
|
|
Version: 1.1
|
2013-08-03 12:15:15 +00:00
|
|
|
Release: 4%{?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/
|
2011-03-27 12:47:42 +00:00
|
|
|
Source0: http://mupdf.com/download/%{name}-%{version}-source.tar.gz
|
2011-02-08 20:26:30 +00:00
|
|
|
Source1: %{name}.desktop
|
2012-05-20 14:17:25 +00:00
|
|
|
## http://bugs.ghostscript.com/show_bug.cgi?format=multiple&id=693010
|
|
|
|
Patch0: %{name}-upstream.patch
|
2011-02-08 20:26:30 +00:00
|
|
|
BuildRequires: openjpeg-devel jbig2dec-devel desktop-file-utils
|
2011-02-08 21:07:00 +00:00
|
|
|
BuildRequires: libjpeg-devel freetype-devel libXext-devel
|
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
|
2012-05-20 14:17:25 +00:00
|
|
|
%setup -q -n %{name}-%{version}-source
|
2012-03-14 18:01:09 +00:00
|
|
|
%patch0 -p1
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
2012-05-20 14:17:25 +00:00
|
|
|
make -j1
|
|
|
|
## %{?_smp_mflags} verbose=1
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%install
|
2011-05-03 06:21:06 +00:00
|
|
|
make DESTDIR=%{buildroot} install prefix=%{buildroot}/usr libdir=%{buildroot}%{_libdir}
|
2011-02-08 20:26:30 +00:00
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
install -D -m644 debian/%{name}.xpm %{buildroot}/%{_datadir}/pixmaps/%{name}.xpm
|
2011-05-03 06:21:06 +00:00
|
|
|
## filename conflict with poppler
|
2012-05-20 14:17:25 +00:00
|
|
|
### mv %{buildroot}%{_bindir}/pdfinfo %{buildroot}%{_bindir}/pdfinfo-mupdf
|
2011-02-08 20:26:30 +00:00
|
|
|
## fix strange permissons
|
2011-05-03 06:21:06 +00:00
|
|
|
chmod 0644 %{buildroot}/%{_includedir}/*.h
|
|
|
|
chmod 0644 %{buildroot}%{_libdir}/*.a
|
2011-03-27 12:47:42 +00:00
|
|
|
find %{buildroot}/%{_mandir} -type f -exec chmod 0644 {} \;
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README
|
2012-05-20 14:17:25 +00:00
|
|
|
%{_bindir}/mupdf
|
2013-01-12 21:40:38 +00:00
|
|
|
%{_bindir}/mudraw
|
|
|
|
%{_bindir}/mubusy
|
2012-05-20 14:17:25 +00:00
|
|
|
%{_datadir}/applications/mupdf.desktop
|
|
|
|
%{_mandir}/man1/mudraw.1.gz
|
2013-01-12 21:40:38 +00:00
|
|
|
%{_mandir}/man1/mubusy.1.gz
|
2012-05-20 14:17:25 +00:00
|
|
|
%{_mandir}/man1/mupdf.1.gz
|
|
|
|
%{_datadir}/pixmaps/mupdf.xpm
|
|
|
|
|
|
|
|
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/fitz.h
|
2012-05-20 14:17:25 +00:00
|
|
|
%{_includedir}/memento.h
|
|
|
|
%{_includedir}/mucbz.h
|
|
|
|
%{_includedir}/mupdf.h
|
2011-05-03 06:21:06 +00:00
|
|
|
%{_includedir}/muxps.h
|
|
|
|
%{_libdir}/libfitz.a
|
2011-02-08 20:26:30 +00:00
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
2011-10-27 07:59:48 +00:00
|
|
|
* Wed Oct 27 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.9-1
|
|
|
|
- New release
|
|
|
|
|
2011-05-03 06:21:06 +00:00
|
|
|
* Tue May 03 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.8.165-2
|
|
|
|
- New upstream release
|
|
|
|
- Fix *.a and *.h permissions
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Sun Mar 27 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.8.15-1
|
|
|
|
- New upstream release
|
2011-02-09 21:00:55 +00:00
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Tue Feb 9 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-7
|
2011-02-08 21:07:00 +00:00
|
|
|
- Fix dependency for F13
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Sun Feb 7 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-6
|
2011-02-08 20:26:30 +00:00
|
|
|
- roll back to static libraries patch for shared libs has been rejected
|
|
|
|
- Fix spec errors
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Fri Jan 14 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-4
|
2011-02-08 20:26:30 +00:00
|
|
|
- replac poitless macros to command names
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Fri Jan 14 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-3
|
2011-02-08 20:26:30 +00:00
|
|
|
- Create patch for optflags
|
|
|
|
- Change Summary
|
|
|
|
- Fix Require for devel package
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Thu Jan 13 2011 Pavel Zhukov <landgraf@fedoraproject.org> -0.7-2
|
2011-02-08 20:26:30 +00:00
|
|
|
- add Fedora CFLAGS
|
|
|
|
- create patch for use shared library
|
|
|
|
|
2011-03-27 12:47:42 +00:00
|
|
|
* Wed Jan 12 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.7-1
|
2011-02-08 20:26:30 +00:00
|
|
|
- Initial package
|