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
|
|
|
#
|
2016-03-18 20:47:27 +01:00
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
2007-01-16 00:36:27 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-12-29 00:32:41 +01:00
|
|
|
|
2007-01-16 00:36:27 +01:00
|
|
|
Name: scribus
|
2016-01-13 12:35:48 +01:00
|
|
|
Version: 1.4.6
|
2011-10-26 15:45:26 +02:00
|
|
|
Release: 0
|
2010-12-20 14:26:08 +01:00
|
|
|
Summary: Open Source Page Layout and Desktop Publishing (DTP)
|
2012-05-25 16:18:46 +02:00
|
|
|
License: GPL-2.0+
|
2010-12-20 14:26:08 +01:00
|
|
|
Group: Productivity/Publishing/Other
|
2012-05-25 16:18:46 +02:00
|
|
|
Url: http://www.scribus.net/
|
2013-01-17 10:38:22 +01:00
|
|
|
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.xz
|
2012-06-26 17:37:41 +02:00
|
|
|
Source1: %{name}-icon24.png
|
|
|
|
Source2: %{name}-icon32.png
|
|
|
|
Source3: %{name}-icon64.png
|
|
|
|
Source4: %{name}-icon128.png
|
|
|
|
Source5: %{name}-icon256.png
|
2011-06-20 14:03:50 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-25 16:18:46 +02:00
|
|
|
BuildRequires: aspell
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: aspell-devel
|
|
|
|
BuildRequires: boost-devel
|
2011-10-26 15:45:26 +02:00
|
|
|
BuildRequires: cairo-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
BuildRequires: cups-devel
|
2012-05-25 16:18:46 +02:00
|
|
|
BuildRequires: fdupes
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: fontconfig-devel
|
2012-06-26 17:37:41 +02:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2014-04-18 11:08:31 +02:00
|
|
|
BuildRequires: hunspell-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: libQtWebKit-devel
|
2012-05-25 16:18:46 +02:00
|
|
|
BuildRequires: liblcms2-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: libpodofo-devel
|
|
|
|
BuildRequires: libqt4-devel >= 4.6.0
|
2011-10-26 15:45:26 +02:00
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2010-12-20 14:26:08 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
BuildRequires: update-desktop-files
|
2013-01-17 10:38:22 +01:00
|
|
|
##BuildRequires: libMagick++-devel
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2011-10-26 15:45:26 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-12-20 14:26:08 +01:00
|
|
|
Requires: ghostscript-library
|
|
|
|
Requires: python-imaging
|
|
|
|
Requires: tk
|
|
|
|
Suggests: AdobeICCProfiles
|
2014-04-18 11:08:31 +02:00
|
|
|
Suggests: Uniconvertor
|
2010-12-20 14:26:08 +01:00
|
|
|
%endif
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2011-06-20 14:03:50 +02:00
|
|
|
Provides: scribus-templates > 1.2
|
|
|
|
Obsoletes: scribus-templates =< 1.2
|
2011-02-21 00:23:53 +01:00
|
|
|
|
2007-01-16 00:36:27 +01:00
|
|
|
%description
|
2010-12-20 14:26:08 +01:00
|
|
|
Scribus is a open source page layout program which
|
|
|
|
produces commercial grade output in PDF and Postscript, primarily,
|
|
|
|
though not exclusively, for Linux.
|
|
|
|
|
|
|
|
While the goals of the program are ease of use and simple
|
|
|
|
easy-to-understand tools, Scribus support for professional
|
|
|
|
publishing features, such as CMYK and spot colors, easy PDF creation,
|
|
|
|
Encapsulated Postscript import and export and creation of color
|
|
|
|
separations.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Open Source Page Layout / Desktop Publishing (DTP)
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: freetype2-devel
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: zlib-devel
|
|
|
|
|
|
|
|
%description devel
|
2012-05-25 16:18:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
This package provides the development headers for scribus. It is most useful
|
|
|
|
for developing scribus plugins.
|
2010-12-20 14:26:08 +01:00
|
|
|
|
|
|
|
%prep
|
2008-01-10 03:06:57 +01:00
|
|
|
|
2013-01-17 10:38:22 +01:00
|
|
|
%setup -q
|
2014-05-31 21:33:36 +02:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
%build
|
2012-05-25 16:18:46 +02:00
|
|
|
# Delete non-free colour swatches (bnc#763586)
|
|
|
|
rm resources/swatches/givelife_colors_license.rtf
|
|
|
|
rm resources/swatches/GiveLife_Color_System*.xml
|
|
|
|
# All .eps swatches come with the same non-free license by dtp studio Oldenburg.
|
|
|
|
rm resources/swatches/*.eps
|
|
|
|
rm resources/swatches/dtp-studio-free-palettes-license.rtf
|
2008-01-10 03:06:57 +01:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
mkdir build
|
2012-05-25 16:18:46 +02:00
|
|
|
pushd build
|
2010-12-20 14:26:08 +01:00
|
|
|
cmake \
|
2011-08-15 11:18:29 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2010-12-20 14:26:08 +01:00
|
|
|
%if "%{_lib}" == "lib64"
|
|
|
|
-DWANT_LIB64=1 \
|
|
|
|
%endif
|
|
|
|
-DWANT_CAIRO=1 \
|
|
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
|
|
|
|
-DCMAKE_SKIP_RPATH=TRUE \
|
2013-01-17 10:38:22 +01:00
|
|
|
-DWANT_HUNSPELL=1 \
|
|
|
|
../
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2011-08-22 16:15:09 +02:00
|
|
|
make %{_smp_mflags}
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
%install
|
2007-01-16 00:36:27 +01:00
|
|
|
|
2012-05-25 16:18:46 +02:00
|
|
|
pushd build
|
|
|
|
make install DESTDIR=%{buildroot}
|
2010-12-20 14:26:08 +01:00
|
|
|
|
2012-05-25 16:18:46 +02:00
|
|
|
popd
|
|
|
|
|
2012-06-26 17:37:41 +02:00
|
|
|
# install hi-res icons for better appearance on gnome-shell
|
|
|
|
install -D -m 0644 %{S:1} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
|
|
|
|
install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
|
install -D -m 0644 %{S:3} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
|
|
|
install -D -m 0644 %{S:4} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
|
|
|
install -D -m 0644 %{S:5} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
|
|
|
|
2012-05-25 16:18:46 +02:00
|
|
|
%if 0%{?suse_version}
|
2012-06-26 17:37:41 +02:00
|
|
|
%suse_update_desktop_file -r -i %{name} Qt Office Publishing WordProcessor
|
|
|
|
# hi-res icons are already installed in hicolor-icon-theme directory
|
|
|
|
# mkdir %{buildroot}%{_datadir}/pixmaps
|
|
|
|
# install -m 644 %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/
|
2012-05-25 16:18:46 +02:00
|
|
|
%endif
|
|
|
|
|
2016-03-18 20:47:27 +01:00
|
|
|
%fdupes -s %{buildroot}%{_includedir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
2012-05-25 16:18:46 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2010-12-20 14:26:08 +01:00
|
|
|
%suse_update_desktop_file -i %{buildroot}%{_datadir}/mimelnk/application/vnd.scribus.desktop Office WordProcessor
|
|
|
|
%endif
|
|
|
|
|
2011-10-26 15:45:26 +02:00
|
|
|
#update the mime database
|
|
|
|
|
2007-01-16 00:36:27 +01:00
|
|
|
%post
|
|
|
|
if [ -f /usr/bin/update-mime-database ]; then
|
|
|
|
/usr/bin/update-mime-database /usr/share/mime > /dev/null
|
|
|
|
fi
|
2012-09-11 07:59:46 +02:00
|
|
|
%if 0%{?suse_version} > 1130
|
2012-05-25 16:18:46 +02:00
|
|
|
%desktop_database_post
|
2012-06-26 17:37:41 +02:00
|
|
|
%icon_theme_cache_post
|
2012-09-11 07:59:46 +02:00
|
|
|
%endif
|
2007-01-16 00:36:27 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ -f /usr/bin/update-mime-database ]; then
|
|
|
|
/usr/bin/update-mime-database /usr/share/mime > /dev/null
|
|
|
|
fi
|
2012-09-11 07:59:46 +02:00
|
|
|
%if 0%{?suse_version} > 1130
|
2012-05-25 16:18:46 +02:00
|
|
|
%desktop_database_postun
|
2012-06-26 17:37:41 +02:00
|
|
|
%icon_theme_cache_postun
|
2012-09-11 07:59:46 +02:00
|
|
|
%endif
|
2007-01-16 00:36:27 +01:00
|
|
|
|
|
|
|
%files
|
2012-05-25 16:18:46 +02:00
|
|
|
%defattr(-,root,root)
|
2010-12-20 14:26:08 +01:00
|
|
|
%{_bindir}/scribus
|
|
|
|
%{_mandir}/man?/*.*
|
|
|
|
%{_mandir}/*/man?/*.*
|
2007-01-16 00:36:27 +01:00
|
|
|
%{_libdir}/scribus
|
2010-12-20 14:26:08 +01:00
|
|
|
%{_datadir}/mime/packages/scribus.xml
|
|
|
|
%{_datadir}/scribus
|
2011-10-26 15:45:26 +02:00
|
|
|
%{_datadir}/doc/scribus
|
2012-05-25 16:18:46 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2012-06-26 17:37:41 +02:00
|
|
|
#%%{_datadir}/pixmaps/%%{name}.png
|
2010-12-20 14:26:08 +01:00
|
|
|
# This should be owned by filesystem or man, but there are only scribus files:
|
|
|
|
%lang(pl) %dir %{_mandir}/pl
|
2011-10-26 15:45:26 +02:00
|
|
|
%lang(pl) %{_mandir}/pl/man1
|
2010-12-20 14:26:08 +01:00
|
|
|
%dir %{_datadir}/mimelnk
|
|
|
|
%dir %{_datadir}/mimelnk/application
|
|
|
|
%{_datadir}/mimelnk/application/vnd.scribus.desktop
|
2012-06-26 17:37:41 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
2011-08-22 16:15:09 +02:00
|
|
|
|
2010-12-20 14:26:08 +01:00
|
|
|
%files devel
|
2012-05-25 16:18:46 +02:00
|
|
|
%defattr(-,root,root)
|
2010-12-20 14:26:08 +01:00
|
|
|
%{_includedir}/scribus
|
|
|
|
|
2010-12-29 00:32:41 +01:00
|
|
|
%changelog
|