2007-01-16 00:36:27 +01:00
|
|
|
#
|
2011-02-07 16:44:49 +01:00
|
|
|
# spec file for package scribus
|
2007-01-16 00:36:27 +01:00
|
|
|
#
|
2019-04-07 15:04:12 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-12-20 14:26:08 +01:00
|
|
|
# Copyright (c) Peter Linnell and 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:27 +01:00
|
|
|
#
|
2010-12-29 00:32:41 +01:00
|
|
|
# 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.
|
|
|
|
|
2018-11-24 17:39:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:36:27 +01:00
|
|
|
#
|
|
|
|
|
2010-12-29 00:32:41 +01:00
|
|
|
|
2007-01-16 00:36:27 +01:00
|
|
|
Name: scribus
|
2019-04-07 15:04:12 +02:00
|
|
|
Version: 1.5.4
|
2011-10-26 15:45:26 +02:00
|
|
|
Release: 0
|
2018-06-01 17:19:15 +02:00
|
|
|
Summary: Page Layout and Desktop Publishing (DTP)
|
|
|
|
License: GPL-2.0-or-later
|
2010-12-20 14:26:08 +01:00
|
|
|
Group: Productivity/Publishing/Other
|
2019-04-07 15:04:12 +02:00
|
|
|
URL: https://www.scribus.net/
|
2019-04-08 00:54:39 +02:00
|
|
|
# Source: https://sourceforge.net/projects/scribus/files/scribus-devel/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source: scribus-1.5.5-svn22930.tar.xz
|
2019-04-07 15:04:12 +02:00
|
|
|
BuildRequires: breeze5-icons
|
|
|
|
BuildRequires: cmake
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: cups-devel
|
2012-05-25 16:18:46 +02:00
|
|
|
BuildRequires: fdupes
|
2019-04-07 15:04:12 +02:00
|
|
|
BuildRequires: libcdr-devel
|
|
|
|
BuildRequires: libetonyek-devel
|
|
|
|
BuildRequires: libfreehand-devel
|
|
|
|
BuildRequires: libmspub-devel
|
|
|
|
BuildRequires: libpagemaker-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: libpodofo-devel
|
2019-04-07 15:04:12 +02:00
|
|
|
BuildRequires: libqxp-devel
|
|
|
|
BuildRequires: librevenge-devel
|
2011-10-26 15:45:26 +02:00
|
|
|
BuildRequires: libtiff-devel
|
2019-04-07 15:04:12 +02:00
|
|
|
BuildRequires: libvisio-devel
|
|
|
|
BuildRequires: libwpd-devel
|
|
|
|
BuildRequires: libwpg-devel
|
|
|
|
BuildRequires: libzmf-devel
|
2011-10-26 15:45:26 +02:00
|
|
|
BuildRequires: pkgconfig
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2019-04-07 15:04:12 +02:00
|
|
|
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)
|
|
|
|
Recommends: scribus-doc
|
|
|
|
Provides: scribus-devel = %{version}
|
|
|
|
Obsoletes: scribus-devel < %{version}
|
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
%endif
|
2007-01-16 00:36:27 +01:00
|
|
|
|
|
|
|
%description
|
2018-06-01 17:19:15 +02:00
|
|
|
Scribus is a page layout program which produces output in PDF and
|
|
|
|
Postscript.
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2018-06-01 17:19:15 +02:00
|
|
|
Scribus supports publishing features such as CMYK and spot colors,
|
|
|
|
PDF creation, Encapsulated Postscript import and export and creation
|
|
|
|
of color separations.
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Scribus
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: %{name}
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
%description doc
|
|
|
|
This package provides the documentation for Scribus.
|
2010-12-20 14:26:08 +01:00
|
|
|
|
|
|
|
%prep
|
2019-04-08 00:54:39 +02:00
|
|
|
%setup -q -n scribus
|
2014-05-31 21:33:36 +02:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
%build
|
2019-04-07 15:04:12 +02:00
|
|
|
%cmake -DWANT_DISTROBUILD=1 \
|
2013-01-17 10:38:22 +01:00
|
|
|
-DWANT_HUNSPELL=1 \
|
2019-04-07 15:04:12 +02:00
|
|
|
-DWANT_GRAPHICSMAGICK=1 \
|
|
|
|
%if "%{_lib}" == "lib64"
|
|
|
|
-DWANT_LIB64=1
|
|
|
|
%endif
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
# Still not available on all leap flavors
|
|
|
|
# %%cmake_build
|
|
|
|
%make_jobs
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
%install
|
2019-04-07 15:04:12 +02:00
|
|
|
%cmake_install
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
# Remove duplicate files
|
|
|
|
for docfile in {COPYING,AUTHORS,ChangeLog,README,LINKS,TRANSLATION}; do
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/scribus/$docfile
|
|
|
|
done
|
2012-05-25 16:18:46 +02:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/doc/scribus
|
2012-06-26 17:37:41 +02:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
cp %{_datadir}/icons/breeze/apps/48/scribus.svg %{buildroot}%{_datadir}/pixmaps/
|
2018-04-29 05:00:40 +02:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
%suse_update_desktop_file -r scribus Qt Office WordProcessor
|
2011-10-26 15:45:26 +02:00
|
|
|
|
2019-04-07 15:04:12 +02:00
|
|
|
# Update the mime database
|
2007-01-16 00:36:27 +01:00
|
|
|
%post
|
2016-11-15 23:04:39 +01:00
|
|
|
%mime_database_post
|
2007-01-16 00:36:27 +01:00
|
|
|
|
|
|
|
%postun
|
2016-11-15 23:04:39 +01:00
|
|
|
%mime_database_postun
|
2019-04-07 15:04:12 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/doc/scribus/
|
2007-01-16 00:36:27 +01:00
|
|
|
|
|
|
|
%files
|
2019-04-07 15:04:12 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README ChangeLog LINKS TRANSLATION
|
|
|
|
%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
|
2010-12-20 14:26:08 +01:00
|
|
|
%{_bindir}/scribus
|
2019-04-07 15:04:12 +02:00
|
|
|
%{_datadir}/applications/scribus.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/scribus.png
|
|
|
|
%{_datadir}/metainfo/scribus.appdata.xml
|
2010-12-20 14:26:08 +01:00
|
|
|
%{_datadir}/mime/packages/scribus.xml
|
2019-04-07 15:04:12 +02:00
|
|
|
%{_datadir}/pixmaps/scribus.svg
|
|
|
|
%{_datadir}/scribus/
|
|
|
|
%{_libdir}/scribus/
|
|
|
|
%{_mandir}/*/man?/*.*
|
|
|
|
%{_mandir}/man?/*.*
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2010-12-29 00:32:41 +01:00
|
|
|
%changelog
|