SHA256
1
0
forked from pool/scribus
Dominique Leuenberger 2020-09-18 12:44:20 +00:00 committed by Git OBS Bridge
commit c033a44a54
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Sep 17 17:36:18 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Depend on hicolor-icon-theme for directory structure
- Enable proper debuginfo/debugsource creation
- Spec file cleanup
* Remove unused libetonyek and GraphicsMagick++ build dependencies
* Do not install breeze SVG icon into pixmap directory, drop
breeze-icons dependency
* Remove conditionals for obsolete distro versions
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 9 17:36:50 UTC 2020 - Wolfgang Bauer <wbauer@tmo.at> Sat May 9 17:36:50 UTC 2020 - Wolfgang Bauer <wbauer@tmo.at>

View File

@ -44,13 +44,13 @@ Patch6: Fails-to-build-with-python-3.8.patch
Patch7: 0001-PDF-import-plugin-support-poppler-0.86.x.patch Patch7: 0001-PDF-import-plugin-support-poppler-0.86.x.patch
# PATCH-FIX-UPSTREAM # PATCH-FIX-UPSTREAM
Patch8: 0001-Fix-build-with-Qt-5.15.patch Patch8: 0001-Fix-build-with-Qt-5.15.patch
BuildRequires: breeze5-icons
BuildRequires: cmake BuildRequires: cmake
BuildRequires: cups-devel BuildRequires: cups-devel
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libboost_headers-devel
BuildRequires: libcdr-devel BuildRequires: libcdr-devel
BuildRequires: libetonyek-devel
BuildRequires: libfreehand-devel BuildRequires: libfreehand-devel
BuildRequires: libmspub-devel BuildRequires: libmspub-devel
BuildRequires: libpagemaker-devel BuildRequires: libpagemaker-devel
@ -74,7 +74,6 @@ BuildRequires: cmake(Qt5PrintSupport) >= 5.7.0
BuildRequires: cmake(Qt5Widgets) >= 5.7.0 BuildRequires: cmake(Qt5Widgets) >= 5.7.0
BuildRequires: cmake(Qt5Xml) >= 5.7.0 BuildRequires: cmake(Qt5Xml) >= 5.7.0
BuildRequires: pkgconfig(GraphicsMagick) BuildRequires: pkgconfig(GraphicsMagick)
BuildRequires: pkgconfig(GraphicsMagick++)
BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(freetype2)
@ -88,6 +87,7 @@ BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(poppler) BuildRequires: pkgconfig(poppler)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
Requires: hicolor-icon-theme
Recommends: python3-Pillow Recommends: python3-Pillow
Recommends: python3-tk Recommends: python3-tk
# Only available in graphics for the moment # Only available in graphics for the moment
@ -97,11 +97,6 @@ Recommends: scribus-doc
# Not packaged anymore # Not packaged anymore
Provides: scribus-devel = %{version} Provides: scribus-devel = %{version}
Obsoletes: scribus-devel < %{version} Obsoletes: scribus-devel < %{version}
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%description %description
Scribus is a page layout program which produces output in PDF and Scribus is a page layout program which produces output in PDF and
@ -121,7 +116,8 @@ This package provides the documentation for Scribus.
%prep %prep
%setup -q %setup -q
# W: wrong-script-end-of-line-encoding # W: wrong-script-end-of-line-encoding
find . -type f -exec dos2unix {} \; # also required for cherry-picked patches
find . -type f \( -iname \*.py -o -iname \*.cpp -o -iname \*.h \) -exec dos2unix {} \;
%autopatch -p1 %autopatch -p1
@ -131,6 +127,7 @@ mkdir build
pushd build pushd build
cmake .. \ cmake .. \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DWANT_RELEASEWITHDEBUG=1 \
-DWANT_DISTROBUILD=1 \ -DWANT_DISTROBUILD=1 \
-DWANT_HUNSPELL=1 \ -DWANT_HUNSPELL=1 \
-DWANT_GRAPHICSMAGICK=1 \ -DWANT_GRAPHICSMAGICK=1 \
@ -144,9 +141,6 @@ popd
%install %install
%cmake_install %cmake_install
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{_datadir}/icons/breeze/apps/48/scribus.svg %{buildroot}%{_datadir}/pixmaps/
# These files are required at runtime to populate the help/about window # These files are required at runtime to populate the help/about window
mkdir -p %{buildroot}%{_datadir}/scribus/aboutData mkdir -p %{buildroot}%{_datadir}/scribus/aboutData
mv %{buildroot}%{_datadir}/doc/scribus/{AUTHORS,COPYING,LINKS,TRANSLATION} %{buildroot}%{_datadir}/scribus/aboutData/ mv %{buildroot}%{_datadir}/doc/scribus/{AUTHORS,COPYING,LINKS,TRANSLATION} %{buildroot}%{_datadir}/scribus/aboutData/
@ -184,7 +178,6 @@ rm -f %{buildroot}%{_datadir}/doc/scribus/{ChangeLog,README}
%{_datadir}/icons/hicolor/*/apps/scribus.png %{_datadir}/icons/hicolor/*/apps/scribus.png
%{_datadir}/metainfo/scribus.appdata.xml %{_datadir}/metainfo/scribus.appdata.xml
%{_datadir}/mime/packages/scribus.xml %{_datadir}/mime/packages/scribus.xml
%{_datadir}/pixmaps/scribus.svg
%{_datadir}/scribus/ %{_datadir}/scribus/
%{_libdir}/scribus/ %{_libdir}/scribus/
%{_mandir}/man1/scribus.1%{?ext_man} %{_mandir}/man1/scribus.1%{?ext_man}