diff --git a/README.md b/README.md index 4e3fe17..6c55eb4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mupdf +A lightweight PDF, XPS, and E-book viewer. + diff --git a/mupdf.spec b/mupdf.spec new file mode 100644 index 0000000..6fe5db3 --- /dev/null +++ b/mupdf.spec @@ -0,0 +1,90 @@ +Name: mupdf +Version: 1.10a +Release: 1mamba +Summary: A lightweight PDF, XPS, and E-book viewer +Group: Graphical Desktop/Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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}/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 Dec 17 2016 Silvan Calarco 1.10a-1mamba +- package created using the webbuild interface