%define pkg_name mupdf %define pkg_version 1.8 %define pkg_release 4%{?_dist_release} Summary: A lightweight PDF and XPS viewer Name: %{pkg_name} Version: %{pkg_version} Release: %{pkg_release} License: AGPLv3+ Group: Applications/Publishing URL: http://mupdf.com/ Source: %{name}-%{version}-source.tar.gz BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root BuildRequires: xorg-x11-devel Vendor: Project Vine Distribution: Vine Linux Packager: ara_t %description MuPDF is a lightweight PDF and XPS viewer. The renderer in MuPDF is tailored for high quality anti-aliased graphics. It 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. %package static Summary: Static library for MuPDF Group: Development/Libraries Requires: mupdf = %{version}-%{release} %description static A static library for MuPDF. %prep %{__rm} -rf ${RPM_BUILD_ROOT} %setup -q -n %{name}-%{version}-source %install %{make_install} prefix=%{_prefix} libdir=%{_libdir} %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files %defattr(-, root, root) %{_bindir}/ %{_datadir}/ %files -n mupdf-static %defattr(-, root, root) %{_libdir}/libmupdf.a %{_includedir}/ %changelog * Sun Apr 10 2016 Toshiaki Ara 1.8-4 - correct SPEC file * Sun Feb 28 2016 Toshiaki Ara 1.8-3 - correct Group * Wed Feb 17 2016 Toshiaki Ara 1.8-2 - change directory for library * Sun Jan 17 2016 Toshiaki Ara 1.8-1 - new package