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
|
|
|
#
|
2012-05-25 16:18:46 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products 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
|
2012-05-25 16:18:46 +02:00
|
|
|
Version: 1.4.1
|
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/
|
|
|
|
Source: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
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
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
%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
|
|
|
|
2012-05-25 16:18:46 +02:00
|
|
|
%setup -q -n Scribus
|
2008-01-10 03:06:57 +01: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 \
|
|
|
|
../
|
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
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file -r -i %{name} Qt Office Publishing WordProcessor
|
|
|
|
mkdir %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -m 644 %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_includedir}/%{name}/
|
|
|
|
|
|
|
|
%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-05-25 16:18:46 +02:00
|
|
|
%desktop_database_post
|
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-05-25 16:18:46 +02:00
|
|
|
%desktop_database_postun
|
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
|
|
|
|
%{_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
|
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
|