247 lines
8.4 KiB
RPMSpec
247 lines
8.4 KiB
RPMSpec
Name: mupdf
|
|
Version: 1.25.4
|
|
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: https://mupdf.com/
|
|
Source: https://mupdf.com/downloads/archive/mupdf-%{version}-source.tar.lz
|
|
Patch0: mupdf-1.25.3-setup.py-do-not-bundle-c-and-c-libs-in-wheel.patch
|
|
Patch1: mupdf-1.25.3-setup.py-do-not-require-libclang-and-swig.patch
|
|
Patch2: mupdf-1.25.3-Do-not-complain-to-your-friendly-local-distribution-.patch
|
|
License: Affero GNU Public License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libarchive-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libfreeglut-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libglvnd-devel
|
|
BuildRequires: libgumbo-parser-devel
|
|
BuildRequires: libharfbuzz-devel
|
|
BuildRequires: libjbig2dec-devel
|
|
BuildRequires: libjpeg-turbo
|
|
BuildRequires: libleptonica-devel
|
|
BuildRequires: libopenjpeg-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtesseract-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%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: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-source
|
|
%patch 0 -p1 -b .setup.py-do-not-bundle-c-and-c-libs-in-wheel
|
|
%patch 1 -p1 -b .setup.py-do-not-require-libclang-and-swig
|
|
%patch 2 -p1 -b .Do-not-complain-to-your-friendly-local-distribution-
|
|
|
|
for d in $(ls thirdparty | grep -v -e extract -e lcms2 -e mujs)
|
|
do
|
|
rm -rf thirdparty/$d
|
|
done
|
|
|
|
echo > user.make "\
|
|
USE_SYSTEM_LIBS := yes
|
|
USE_SYSTEM_MUJS := no # build needs source anyways
|
|
USE_TESSERACT := yes
|
|
VENV_FLAG :=
|
|
build := debug
|
|
shared := yes
|
|
verbose := yes
|
|
"
|
|
|
|
# c++ and python install targets rebuild unconditionally. Avoid multiple rebuilds:
|
|
sed -i -e '/^install-shared-c++:/s/ c++//' Makefile
|
|
sed -i -e '/^install-shared-python:/s/ python//' Makefile
|
|
|
|
%build
|
|
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK_EXT"
|
|
%make prefix=%{_prefix} libdir=%{_libdir} shared c++
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall install-shared-c install-shared-c++ prefix=%{_prefix} libdir=%{_libdir} \
|
|
pydir=%{python3_sitearch} SO_INSTALL_MODE=755
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mupdf-gl
|
|
%{_bindir}/mupdf-x11
|
|
%{_bindir}/mupdf-x11-curl
|
|
%{_bindir}/muraster
|
|
%{_bindir}/mutool
|
|
%{_mandir}/man1/mupdf.1*
|
|
%{_mandir}/man1/mutool.1*
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmupdf.so.*
|
|
%{_libdir}/libmupdfcpp.so.*
|
|
%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/*
|
|
%{_libdir}/libmupdf.so
|
|
%{_libdir}/libmupdfcpp.so
|
|
%dir %{_docdir}/mupdf
|
|
%{_docdir}/mupdf/*
|
|
%doc CHANGES README
|
|
|
|
%changelog
|
|
* Mon Jan 27 2025 Automatic Build System <autodist@openmamba.org> 1.25.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jan 25 2025 Automatic Build System <autodist@openmamba.org> 1.25.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Dec 11 2024 Automatic Build System <autodist@openmamba.org> 1.25.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 30 2024 Automatic Build System <autodist@openmamba.org> 1.25.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 27 2024 Automatic Build System <autodist@openmamba.org> 1.25.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Nov 19 2024 Automatic Build System <autodist@openmamba.org> 1.24.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 03 2024 Automatic Build System <autodist@openmamba.org> 1.24.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 31 2024 Automatic Build System <autodist@openmamba.org> 1.24.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jul 25 2024 Automatic Build System <autodist@openmamba.org> 1.24.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 20 2024 Automatic Build System <autodist@openmamba.org> 1.24.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jul 16 2024 Automatic Build System <autodist@openmamba.org> 1.24.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jun 28 2024 Automatic Build System <autodist@openmamba.org> 1.24.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jun 22 2024 Automatic Build System <autodist@openmamba.org> 1.24.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jun 07 2024 Automatic Build System <autodist@openmamba.org> 1.24.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri May 10 2024 Automatic Build System <autodist@openmamba.org> 1.24.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 06 2024 Automatic Build System <autodist@openmamba.org> 1.24.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Mar 22 2024 Automatic Build System <autodist@openmamba.org> 1.24.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 22 2024 Automatic Build System <autodist@openmamba.org> 1.23.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 08 2024 Automatic Build System <autodist@openmamba.org> 1.23.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 11 2024 Automatic Build System <autodist@openmamba.org> 1.23.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 09 2024 Automatic Build System <autodist@openmamba.org> 1.23.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 30 2023 Automatic Build System <autodist@mambasoft.it> 1.23.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 16 2023 Automatic Build System <autodist@mambasoft.it> 1.23.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Nov 07 2023 Automatic Build System <autodist@mambasoft.it> 1.23.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 11 2023 Automatic Build System <autodist@mambasoft.it> 1.23.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Sep 05 2023 Automatic Build System <autodist@mambasoft.it> 1.23.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 01 2023 Automatic Build System <autodist@mambasoft.it> 1.23.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Aug 31 2023 Automatic Build System <autodist@mambasoft.it> 1.23.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Aug 23 2023 Automatic Build System <autodist@mambasoft.it> 1.23.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri May 12 2023 Automatic Build System <autodist@mambasoft.it> 1.22.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Apr 16 2023 Automatic Build System <autodist@mambasoft.it> 1.22.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.1-1mamba
|
|
- update to 1.21.1
|
|
|
|
* Tue Apr 12 2022 Automatic Build System <autodist@mambasoft.it> 1.19.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 05 2021 Automatic Build System <autodist@mambasoft.it> 1.19.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 07 2020 Automatic Build System <autodist@mambasoft.it> 1.18.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu May 07 2020 Automatic Build System <autodist@mambasoft.it> 1.17.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Mar 30 2020 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.16.1-1mamba
|
|
- update to 1.16.1
|
|
|
|
* Tue Jun 05 2018 Automatic Build System <autodist@mambasoft.it> 1.13.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|