2007-01-04 17:23:48 +01:00
#
2010-09-06 18:18:55 +02:00
# spec file for package inkscape (Version 0.48.0)
2007-01-04 17:23:48 +01:00
#
2010-03-05 11:42:56 +01:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-04 17:23:48 +01:00
#
2008-09-24 16:50:32 +02: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-04 17:23:48 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2008-03-07 22:01:39 +01:00
2007-01-04 17:23:48 +01:00
Name : inkscape
2010-09-06 18:18:55 +02:00
Version : 0.48.0
2010-12-20 12:17:00 +01:00
Release : 5
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program
Url : http://www.inkscape.org/
2007-01-04 17:23:48 +01:00
Group : Productivity/Graphics/Vector Editors
2007-05-10 13:56:33 +02:00
Source : %{name} -%{version} .tar.bz2
2009-12-11 17:14:04 +01:00
# openSUSE palette file
Source1 : openSUSE.gpl
2008-07-09 18:48:13 +02:00
Source2 : inkscape-split-extensions-extra.sh
2010-09-06 18:18:55 +02:00
# PATCH-FEATURE-OPENSUSE inkscape-remove-datetime.patch vuntz@novell.com -- Do not put date/time in the compiled binary (needed for build-compare)
Patch0 : inkscape-remove-datetime.patch
# PATCH-FIX-OPENSUSE inkscape-packages.patch sbrabec@suse.cz -- Suggest packages instead of compilation from source.
2009-05-28 04:31:27 +02:00
Patch1 : inkscape-packages.patch
2010-09-06 18:18:55 +02:00
# PATCH-FIX-UPSTREAM inkscape-r9710-9712.patch dimstar@opensuse.org -- Fix node editor crash when dragging near the last node of a path, upstream commits r9711 & 9712 merged.
Patch2 : inkscape-r9710-9712.patch
2009-12-11 17:14:04 +01:00
BuildRequires : boost-devel
BuildRequires : docbook-toys
BuildRequires : fdupes
BuildRequires : gc-devel
BuildRequires : gcc-c++
BuildRequires : gnome-vfs2-devel
BuildRequires : gsl-devel
BuildRequires : gtkmm24-devel
BuildRequires : intltool
BuildRequires : libMagick++-devel
BuildRequires : liblcms-devel
BuildRequires : libpoppler-glib-devel
BuildRequires : libwpg-devel
BuildRequires : libxslt-devel
BuildRequires : perl
2010-12-13 13:13:56 +01:00
BuildRequires : popt-devel
2009-12-11 17:14:04 +01:00
BuildRequires : python-devel
BuildRequires : python-gtk-devel
BuildRequires : sgml-skel
BuildRequires : update-desktop-files
2007-08-09 19:45:56 +02:00
Requires : %{name} -lang = %{version}
2009-12-11 17:14:04 +01:00
Requires : /usr/bin/gs
Requires : ghostscript-fonts-std
Requires : gzip
Requires : pstoedit
Requires : python-gtk
2008-05-17 02:43:02 +02:00
Recommends: python-lxml
2009-12-11 17:14:04 +01:00
# package in <= NLD9 and SuSE Linux <= 9.1
Obsoletes : sodipodi <= 0.34
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-01-04 17:23:48 +01:00
%description
Inkscape is a vector illustration program for the GNOME desktop.
2008-07-09 18:48:13 +02:00
%package extensions-extra
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program - Extra Extensions
2008-07-09 18:48:13 +02:00
Group : Productivity/Graphics/Vector Editors
2009-12-11 17:14:04 +01:00
Requires : %{name} = %{version}
Requires : python-lxml
2010-12-08 01:54:53 +01:00
Requires : python-xml
2008-07-09 18:48:13 +02:00
# for cdr and wmf modules
Requires : yudit
2010-12-08 01:54:53 +01:00
# python-xml is already likely installed, so the big dependency is python-lxml. Hence this supplements.
2008-07-09 18:48:13 +02:00
Supplements: packageand(%{name} :python-lxml)
# Package in openSUSE <= 11.0 and SLED <= 10
Provides : %{name} :%{_datadir} /inkscape/extensions/inkex.py
2009-12-11 17:14:04 +01:00
Enhances: %{name}
2008-07-09 18:48:13 +02:00
%description extensions-extra
Extra extensions for Inkscape. Recommended for everybody who wants to
use Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
%package extensions-dia
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program - Dia Import Extension
2008-07-09 18:48:13 +02:00
Group : Productivity/Graphics/Vector Editors
2009-12-11 17:14:04 +01:00
Requires : %{name} = %{version}
Requires : dia
2008-07-09 18:48:13 +02:00
Supplements: packageand(%{name} :dia)
# Package in openSUSE <= 11.0 and SLED <= 10
Provides : %{name} :%{_datadir} /inkscape/extensions/dia.inx
2009-12-11 17:14:04 +01:00
Enhances: %{name}
2008-07-09 18:48:13 +02:00
%description extensions-dia
Dia import extension for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
%package extensions-fig
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program - Fig Import Extension
2008-07-09 18:48:13 +02:00
Group : Productivity/Graphics/Vector Editors
2009-12-11 17:14:04 +01:00
Requires : %{name} = %{version}
Requires : transfig
2008-07-09 18:48:13 +02:00
Supplements: packageand(%{name} :transfig)
# Package in openSUSE <= 11.0 and SLED <= 10
Provides : %{name} :%{_datadir} /inkscape/extensions/fig_input.inx
2009-12-11 17:14:04 +01:00
Enhances: %{name}
2008-07-09 18:48:13 +02:00
%description extensions-fig
Fig family (XFig, Figurine, JFig, WinFig,...) import extension for
Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
%package extensions-gimp
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program - The GIMP Extensions
2008-07-09 18:48:13 +02:00
Group : Productivity/Graphics/Vector Editors
2009-12-11 17:14:04 +01:00
Requires : %{name} = %{version}
Requires : gimp-2.0
2008-07-09 18:48:13 +02:00
Supplements: packageand(%{name} :gimp)
2008-09-24 16:50:32 +02:00
Supplements: packageand(%{name} :gimp-2.0)
2008-07-09 18:48:13 +02:00
# Package in openSUSE <= 11.0 and SLED <= 10
Provides : %{name} :%{_datadir} /inkscape/extensions/gimp_xcf.inx
2009-12-11 17:14:04 +01:00
Enhances: %{name}
2008-07-09 18:48:13 +02:00
%description extensions-gimp
The GIMP import and export extensions for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
%package extensions-skencil
2009-12-11 17:14:04 +01:00
License : GPLv2 ; LGPLv2.1
Summary : Vector Illustration Program - Skencil Import Extension
2008-07-09 18:48:13 +02:00
Group : Productivity/Graphics/Vector Editors
2009-12-11 17:14:04 +01:00
Requires : %{name} = %{version}
Requires : skencil
2008-07-09 18:48:13 +02:00
Supplements: packageand(%{name} :skencil)
# Package in openSUSE <= 11.0 and SLED <= 10
Provides : %{name} :%{_datadir} /inkscape/extensions/sk_input.inx
2009-12-11 17:14:04 +01:00
Enhances: %{name}
2008-07-09 18:48:13 +02:00
%description extensions-skencil
Skencil import extension for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
2007-08-09 19:45:56 +02:00
%lang_package
2007-01-04 17:23:48 +01:00
%prep
2009-05-28 04:31:27 +02:00
%setup -q
2010-09-06 18:18:55 +02:00
%patch0 -p1
2009-12-11 17:14:04 +01:00
%patch1 -p1
2010-09-06 18:18:55 +02:00
%patch2 -p0
2007-01-04 17:23:48 +01:00
%build
2009-12-11 17:14:04 +01:00
export CXXFLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g "
2008-02-08 21:03:24 +01:00
# We're building without perl support for now...
2007-01-23 01:18:58 +01:00
%configure \
--with-python\
2008-02-08 21:03:24 +01:00
--without-perl\
2009-05-28 04:31:27 +02:00
--enable-inkboard
2007-01-04 17:23:48 +01:00
make %{?jobs:-j%jobs}
%install
2009-05-28 04:31:27 +02:00
%makeinstall
rm -rf %{buildroot} %{_datadir} /locale/en_US@piglatin
2009-12-11 17:14:04 +01:00
install -D -m 0644 %{S:1} %{buildroot} %{_datadir} /inkscape/palettes
2010-06-14 17:13:22 +02:00
%suse_update_desktop_file -N " I n k s c a p e " -G " S V G V e c t o r I l l u s t r a t o r " inkscape
2010-12-20 12:16:51 +01:00
# te_IN should really just be te, see lp#690255
test ! -e %{buildroot} %{_datadir} /locale/te
mv %{buildroot} %{_datadir} /locale/te_IN %{buildroot} %{_datadir} /locale/te
2007-01-04 17:23:48 +01:00
%find_lang %{name}
2009-05-28 04:31:27 +02:00
bash %{S:2} %{buildroot} %{_datadir} /inkscape/extensions " % %{_datadir} / i n k s c a p e / e x t e n s i o n s / "
%fdupes %{buildroot}
2007-01-04 17:23:48 +01:00
%clean
2009-05-28 04:31:27 +02:00
rm -rf %{buildroot}
2007-01-04 17:23:48 +01:00
2008-07-09 18:48:13 +02:00
%files -f inkscape.lst
2007-01-04 17:23:48 +01:00
%defattr (-,root,root)
2010-09-06 18:18:55 +02:00
%doc AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README* TRANSLATORS
2007-01-23 01:18:58 +01:00
%{_bindir} /*
%{_datadir} /applications/inkscape.desktop
2010-09-06 18:18:55 +02:00
%{_datadir} /icons/hicolor/*/apps/inkscape.png
2007-01-23 01:18:58 +01:00
%dir %{_datadir} /inkscape
2008-07-09 18:48:13 +02:00
%{_datadir} /inkscape/[cf-z]*
%{_datadir} /inkscape/examples
2007-01-23 01:18:58 +01:00
%dir %{_datadir} /inkscape/extensions
2008-07-09 18:48:13 +02:00
%{_datadir} /inkscape/extensions/xaml2svg
%{_datadir} /inkscape/extensions/*.pl
%{_datadir} /inkscape/extensions/*.xsl*
%{_datadir} /inkscape/extensions/colors.xml
%{_datadir} /inkscape/extensions/ps2*
2009-12-11 17:14:04 +01:00
%{_datadir} /inkscape/extensions/Poly3DObjects/
%{_datadir} /inkscape/extensions/alphabet_soup/
%{_datadir} /inkscape/extensions/inkweb.js
2010-09-06 18:18:55 +02:00
%{_datadir} /inkscape/extensions/jessyInk.js
%{_datadir} /inkscape/extensions/jessyInk_core_mouseHandler_noclick.js
%{_datadir} /inkscape/extensions/jessyInk_core_mouseHandler_zoomControl.js
%{_datadir} /inkscape/extensions/jessyInk_video.svg
2008-07-09 18:48:13 +02:00
#BEGIN FIXME: What is purpose of these plugins? I see no references to them:
%{_datadir} /inkscape/extensions/SpSVG.pm
2009-12-11 17:14:04 +01:00
%{_datadir} /inkscape/extensions/Inkscape.pm
2008-07-09 18:48:13 +02:00
%{_datadir} /inkscape/extensions/simplepath.rb
#END FIXME
2007-01-23 01:18:58 +01:00
%doc %{_mandir} /man?/*.*
2010-12-10 18:01:44 +01:00
# We can't really move the localized manpages to the lang package, since they'd
# create a conflict between the lang subpackage and bundles
%lang(fr) %{_mandir} /fr/man?/*.*
2009-05-28 04:31:27 +02:00
# exclude extensions that go in other packages:
%exclude %{_datadir} /inkscape/extensions/Barcode
%exclude %{_datadir} /inkscape/extensions/cdr*
%exclude %{_datadir} /inkscape/extensions/wmf*
%exclude %{_datadir} /inkscape/extensions/dia*
%exclude %{_datadir} /inkscape/extensions/fig*
%exclude %{_datadir} /inkscape/extensions/*gimp*
%exclude %{_datadir} /inkscape/extensions/sk*
2007-01-04 17:23:48 +01:00
2008-07-09 18:48:13 +02:00
%files extensions-extra -f inkscape-extensions-extra.lst
%defattr (-,root,root)
%{_datadir} /inkscape/extensions/Barcode
%{_datadir} /inkscape/extensions/cdr*
%{_datadir} /inkscape/extensions/wmf*
2009-12-11 17:14:04 +01:00
# This extensions seems erronous being copied in here too.
%exclude %{_datadir} /inkscape/extensions/*gimp*
2008-07-09 18:48:13 +02:00
%files extensions-dia
%defattr (-,root,root)
%{_datadir} /inkscape/extensions/dia*
%files extensions-fig
%defattr (-,root,root)
%{_datadir} /inkscape/extensions/fig*
%files extensions-gimp
%defattr (-,root,root)
# NOTE: export_gimp_palette* does not depend on gimp, but belongs here logically:
%{_datadir} /inkscape/extensions/*gimp*
%files extensions-skencil
%defattr (-,root,root)
%{_datadir} /inkscape/extensions/sk*
2007-08-09 19:45:56 +02:00
%files lang -f %{name}.lang
2008-01-12 02:20:15 +01:00
2007-03-29 22:18:19 +02:00
%changelog