automatic version update by autodist [release 6.29.0-1mamba;Wed Nov 08 2023]

This commit is contained in:
Automatic Build System 2024-01-05 21:05:31 +01:00
parent f0fe9fa512
commit ac724def9b

View File

@ -1,5 +1,5 @@
Name: calibre
Version: 6.17.0
Version: 6.29.0
Release: 1mamba
Summary: A free and open source e-book library management application
Group: Graphical Desktop/Applications/Multimedia
@ -7,7 +7,8 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://calibre-ebook.com
Source: https://github.com/kovidgoyal/calibre.git/v%{version}/calibre-%{version}.tar.bz2
Source: https://github.com/kovidgoyal/calibre/releases/download/v%{version}/calibre-%{version}.tar.xz
#Source: https://github.com/kovidgoyal/calibre.git/v%{version}/calibre-%{version}.tar.bz2
Source1: calibre.desktop
Patch0: calibre-0.8.33-libpoppler-0.20.patch
Patch1: calibre-0.7.59-libpoppler-0.18.patch
@ -28,7 +29,8 @@ BuildRequires: libicu-devel
BuildRequires: libmtp-devel
BuildRequires: libopenssl-devel
BuildRequires: libpodofo-devel
BuildRequires: libpython310-devel
BuildRequires: libpython3-devel
BuildRequires: libpython311-devel
BuildRequires: libstdc++6-devel
BuildRequires: libstemmer-devel
BuildRequires: libuchardet-devel
@ -36,43 +38,43 @@ BuildRequires: libusb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: libpython310-devel
BuildRequires: libpodofo-devel >= 0.9.3
BuildRequires: libpython3-devel
BuildRequires: libpodofo-devel >= 0.10.1
BuildRequires: libwmf-devel
BuildRequires: python-apsw-py310
BuildRequires: python-beautifulsoup4-py310
BuildRequires: python-css-parser-py310
BuildRequires: python-dateutil-py310
BuildRequires: python-html5lib-py310
BuildRequires: python-html5-parser-py310
BuildRequires: python-lxml-py310
BuildRequires: python-mechanize-py310
BuildRequires: python-msgpack-py310
BuildRequires: python-regex-py310
BuildRequires: python-sip-py310
BuildRequires: python-six-py310
BuildRequires: python-soupsieve-py310
BuildRequires: python-webencodings-py310
BuildRequires: PyQt6-py310
BuildRequires: PyQt6-WebEngine-py310 >= 6.3.1
BuildRequires: PyQt-builder-py310
Requires: PyQt6-py310 >= 6.3.1
Requires: PyQt6-WebEngine-py310 >= 6.3.1
Requires: python310
Requires: python-apsw-py310
Requires: python-beautifulsoup4-py310
Requires: python-css-parser-py310
Requires: python-dateutil-py310
Requires: python-html5lib-py310
Requires: python-html5-parser-py310
Requires: python-lxml-py310
Requires: python-mechanize-py310
Requires: python-msgpack-py310
Requires: python-Pillow-py310
Requires: python-regex-py310
Requires: python-six-py310
Requires: python-soupsieve-py310
Requires: python-webencodings-py310
BuildRequires: python-apsw-py3
BuildRequires: python-beautifulsoup4-py3
BuildRequires: python-css-parser-py3
BuildRequires: python-dateutil-py3
BuildRequires: python-html5lib-py3
BuildRequires: python-html5-parser-py3
BuildRequires: python-lxml-py3
BuildRequires: python-mechanize-py3
BuildRequires: python-msgpack-py3
BuildRequires: python-regex-py3
BuildRequires: python-sip-py3
BuildRequires: python-six-py3
BuildRequires: python-soupsieve-py3
BuildRequires: python-webencodings-py3
BuildRequires: PyQt6-py3
BuildRequires: PyQt6-WebEngine-py3 >= 6.3.1
BuildRequires: PyQt-builder-py3
Requires: PyQt6-py3 >= 6.3.1
Requires: PyQt6-WebEngine-py3 >= 6.3.1
Requires: python3
Requires: python-apsw-py3
Requires: python-beautifulsoup4-py3
Requires: python-css-parser-py3
Requires: python-dateutil-py3
Requires: python-html5lib-py3
Requires: python-html5-parser-py3
Requires: python-lxml-py3
Requires: python-mechanize-py3
Requires: python-msgpack-py3
Requires: python-Pillow-py3
Requires: python-regex-py3
Requires: python-six-py3
Requires: python-soupsieve-py3
Requires: python-webencodings-py3
Requires: liberation-fonts-ttf
%description
@ -90,30 +92,39 @@ sed -e "/import config_dir/,/os.rmdir(config_dir)/d" \
-e "s/^Name=calibre/Name=Calibre/g" \
-i src/calibre/linux.py
# Remove unneeded files
rm -f resources/calibre-portable.*
%build
#:<< _EOF
%ifarch %{ix86}
export QTWEBENGINE_DISABLE_SANDBOX=1
%endif
CFLAGS="%{optflags}" %{__python310} setup.py bootstrap
LANG='en_US.UTF-8' %{__python310} setup.py build
LANG='en_US.UTF-8' %{__python310} setup.py gui
%{__python310} setup.py liberation_fonts --path-to-liberation_fonts /usr/share/fonts/liberation --system-liberation_fonts
LANG='en_US.UTF-8' %{__python310} setup.py resources
LANG='en_US.UTF-8' %{__python310} setup.py rapydscript
export LANG='en_US.UTF-8'
#CFLAGS="%{optflags}" %{__python3} setup.py bootstrap
%{__python3} setup.py build
#%{__python3} setup.py iso639
#%{__python3} setup.py iso3166
%{__python3} setup.py liberation_fonts --path-to-liberation_fonts %{_datadir}/fonts/liberation --system-liberation_fonts
%{__python3} setup.py mathjax --system-mathjax --path-to-mathjax %{_datadir}/mathjax
%{__python3} setup.py gui
#LANG='en_US.UTF-8' %{__python3} setup.py resources
#LANG='en_US.UTF-8' %{__python3} setup.py rapydscript
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# If this directory doesn't exist, zsh completion won't install.
install -d %{buildroot}%{_datadir}/zsh/site-functions
%{__python310} setup.py install \
--root=%{buildroot}/usr \
%{__python3} setup.py install \
--staging-root=%{buildroot}/usr \
--system-plugins-location=%{_datadir}/calibre/system-plugins \
--staging-libdir=%{buildroot}%{_libdir} \
--libdir=%{_libdir}
sed -i "s|bin/env python3$|bin/env python3.10|" %{buildroot}%{_bindir}/*
#sed -i "s|bin/env python3$|bin/env python3.10|" %{buildroot}%{_bindir}/*
%files
%defattr(-,root,root)
@ -140,9 +151,12 @@ sed -i "s|bin/env python3$|bin/env python3.10|" %{buildroot}%{_bindir}/*
%{_datadir}/icons/hicolor/*/mimetypes/application-*.png
%{_datadir}/icons/hicolor/*/mimetypes/gnome-mime-*.png
%{_datadir}/icons/hicolor/*/mimetypes/text-lrs.png
%{python310_sitearch}/init_calibre.py
%{python3_sitearch}/init_calibre.py
%changelog
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 6.29.0-1mamba
- automatic version update by autodist
* Thu Apr 27 2023 Automatic Build System <autodist@mambasoft.it> 6.17.0-1mamba
- automatic version update by autodist