mupdf/mupdf.spec

98 lines
2.5 KiB
RPMSpec

Name: mupdf
Version: 1.12.0
Release: 1mamba
Summary: A lightweight PDF, XPS, and E-book viewer
Group: Graphical Desktop/Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://mupdf.com/
Source: http://mupdf.com/downloads/mupdf-%{version}-source.tar.gz
License: Affero GNU Public License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libX11-devel
BuildRequires: libXcursor-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A lightweight PDF, XPS, and E-book viewer.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n %{name}-%{version}-source
%build
%make prefix=%{_prefix}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall prefix=%{_prefix}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mujstest
%{_bindir}/mjsgen
%{_bindir}/mupdf-gl
%{_bindir}/mupdf-x11
%{_bindir}/mupdf-x11-curl
%{_bindir}/muraster
%{_bindir}/mutool
%{_mandir}/man1/mupdf.1*
%{_mandir}/man1/mutool.1*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/mupdf
%{_includedir}/mupdf/*.h
%dir %{_includedir}/mupdf/fitz
%{_includedir}/mupdf/fitz/*.h
%dir %{_includedir}/mupdf/pdf
%{_includedir}/mupdf/pdf/*
%{_prefix}/lib/libmupdf.a
%{_prefix}/lib/libmupdfthird.a
%dir %{_docdir}/mupdf
%{_docdir}/mupdf/*
%doc CHANGES README
%changelog
* Sat Jan 13 2018 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
- automatic version update by autodist
* Wed Apr 12 2017 Automatic Build System <autodist@mambasoft.it> 1.11-1mamba
- automatic version update by autodist
* Sat Dec 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10a-1mamba
- package created using the webbuild interface