This commit is contained in:
parent
776fda4fd6
commit
f9de24a2b0
18
scribus.spec
18
scribus.spec
@ -19,6 +19,14 @@
|
|||||||
|
|
||||||
%bcond_without podofo
|
%bcond_without podofo
|
||||||
%bcond_without released
|
%bcond_without released
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%define pyver python3
|
||||||
|
%else
|
||||||
|
%define pyver python311
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: scribus
|
Name: scribus
|
||||||
Version: 1.6.3
|
Version: 1.6.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -54,7 +62,7 @@ BuildRequires: libwpd-devel
|
|||||||
BuildRequires: libwpg-devel
|
BuildRequires: libwpg-devel
|
||||||
BuildRequires: libzmf-devel
|
BuildRequires: libzmf-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-devel
|
BuildRequires: %{pyver}-devel
|
||||||
BuildRequires: cmake(Qt5Core) >= 5.14.0
|
BuildRequires: cmake(Qt5Core) >= 5.14.0
|
||||||
BuildRequires: cmake(Qt5Gui)
|
BuildRequires: cmake(Qt5Gui)
|
||||||
BuildRequires: cmake(Qt5LinguistTools)
|
BuildRequires: cmake(Qt5LinguistTools)
|
||||||
@ -80,8 +88,8 @@ BuildRequires: pkgconfig(openssl)
|
|||||||
BuildRequires: pkgconfig(poppler) > 21.03.0
|
BuildRequires: pkgconfig(poppler) > 21.03.0
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
Requires: hicolor-icon-theme
|
Requires: hicolor-icon-theme
|
||||||
Recommends: python3-Pillow
|
Recommends: %{pyver}-Pillow
|
||||||
Recommends: python3-tk
|
Recommends: %{pyver}-tk
|
||||||
Recommends: scribus-doc
|
Recommends: scribus-doc
|
||||||
# Not packaged anymore
|
# Not packaged anymore
|
||||||
Provides: scribus-devel = %{version}
|
Provides: scribus-devel = %{version}
|
||||||
@ -112,7 +120,11 @@ find . -type f \( -iname \*.py -o -iname \*.cpp -o -iname \*.h \) -exec dos2unix
|
|||||||
# Unused test file still using QQC1
|
# Unused test file still using QQC1
|
||||||
rm scribus/ui/qml/qtq_test1.qml
|
rm scribus/ui/qml/qtq_test1.qml
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
find . \( -name "*.py" -o -name "*.html" \) -exec sed -i 's#/usr/bin/env python.*#/usr/bin/python3#' {} \;
|
find . \( -name "*.py" -o -name "*.html" \) -exec sed -i 's#/usr/bin/env python.*#/usr/bin/python3#' {} \;
|
||||||
|
%else
|
||||||
|
find . \( -name "*.py" -o -name "*.html" \) -exec sed -i 's#/usr/bin/env python.*#/usr/bin/python3.11#' {} \;
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Don't use the %%cmake macro, it causes crashes when starting scribus
|
# Don't use the %%cmake macro, it causes crashes when starting scribus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user