File scribus.spec of Package scribus-unstable

# spec file for package scribus
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) Peter Linnell and 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           scribus
Version:        1.5.Xsvn
Release:        0
Summary:        Page Layout and Desktop Publishing (DTP)
License:        GPL-2.0-or-later
Group:          Productivity/Publishing/Other
Source:         %{name}-%{version}.tar.xz
BuildRequires:  breeze5-icons
BuildRequires:  cmake
BuildRequires:  cups-devel
BuildRequires:  fdupes
BuildRequires:  libcdr-devel
BuildRequires:  libetonyek-devel
BuildRequires:  libfreehand-devel
BuildRequires:  libmspub-devel
BuildRequires:  libpagemaker-devel
BuildRequires:  libpodofo-devel
BuildRequires:  libqxp-devel
BuildRequires:  librevenge-devel
BuildRequires:  libtiff-devel
BuildRequires:  libvisio-devel
BuildRequires:  libwpd-devel
BuildRequires:  libwpg-devel
BuildRequires:  libzmf-devel
BuildRequires:  pkgconfig
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5Core) >= 5.7.0
BuildRequires:  cmake(Qt5Gui) >= 5.7.0
BuildRequires:  cmake(Qt5LinguistTools) >= 5.7.0
BuildRequires:  cmake(Qt5Network) >= 5.7.0
BuildRequires:  cmake(Qt5OpenGL) >= 5.7.0
BuildRequires:  cmake(Qt5PrintSupport) >= 5.7.0
BuildRequires:  cmake(Qt5Widgets) >= 5.7.0
BuildRequires:  cmake(Qt5Xml) >= 5.7.0
BuildRequires:  pkgconfig(GraphicsMagick)
BuildRequires:  pkgconfig(GraphicsMagick++)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(harfbuzz)
BuildRequires:  pkgconfig(hunspell)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(icu-uc)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(poppler)
BuildRequires:  pkgconfig(zlib)
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_headers-devel
BuildRequires:  boost-devel
Provides: scribus-devel = %{version}
Obsoletes: scribus-devel < %{version}

Scribus is a page layout program which produces output in PDF and

Scribus supports publishing features such as CMYK and spot colors,
PDF creation, Encapsulated Postscript import and export and creation
of color separations.

%package doc
Summary: Documentation for Scribus
Group:   Documentation/HTML
Requires: %{name}

%description doc
This package provides the documentation for Scribus.

%package plugin-import-legacy
Summary:        Legacy file importer for Scribus
Group:          Productivity/Publishing/Other

%description plugin-import-legacy
This package contains legacy file format importers for Scribus.
Formats supported:
cdr (Corel Draw)
fh (Freehand)
pm (Pagemaker)
pub (Publisher)
qxp (QuarkXPress)
vsd (Visio)
zmf (Zoner Draw)

%package plugin-scripter
Summary:        Python scripter for Scribus
Group:          Productivity/Publishing/Other

%description plugin-scripter
This package contains the Python scripter for Scribus.

%package lang
Summary:        Translations for Scribus
Group:          Productivity/Publishing/Other

%description lang
This package contains all translation files for Scribus.

%package templates
Summary:        Templates for Scribus
Group:          Productivity/Publishing/Other

%description templates
This package contains template files for Scribus.

%setup -q

%if "%{_lib}" == "lib64"

# Still not available on all leap flavors
# %%cmake_build


# Remove duplicate files
  rm -f %{buildroot}%{_datadir}/doc/scribus/$docfile

%fdupes -s %{buildroot}%{_datadir}/doc/scribus

mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{_datadir}/icons/breeze/apps/48/scribus.svg %{buildroot}%{_datadir}/pixmaps/

%suse_update_desktop_file -r scribus Qt Office WordProcessor

# Update the mime database
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

%files doc
%license COPYING

%dir %{_datadir}/icons/hicolor/1024x1024
%dir %{_datadir}/icons/hicolor/1024x1024/apps
%lang(de) %dir %{_mandir}/de
%lang(de) %dir %{_mandir}/de/man1
%lang(pl) %dir %{_mandir}/pl
%lang(pl) %dir %{_mandir}/pl/man1
%exclude %{_datadir}/scribus/translations
%exclude %{_datadir}/scribus/templates
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/
%exclude %{_libdir}/scribus/plugins/

%files plugin-import-legacy

%files plugin-scripter

%files lang

%files templates