inkscape/inkscape.spec

680 lines
18 KiB
RPMSpec

#
# spec file for package inkscape (Version 0.46)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: inkscape
BuildRequires: boost-devel docbook-toys fdupes gcc-c++ gtkmm24-devel intltool libMagick++-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel liblcms-devel libpoppler-glib-devel libwnck-devel libwpg-devel libxslt-devel loudmouth-devel perl python-devel python-gtk-devel sgml-skel update-desktop-files
License: GPL v2 only; LGPL v2.1 only
Group: Productivity/Graphics/Vector Editors
Requires: ghostscript-fonts-std python-gtk python-numeric pstoedit gzip /usr/bin/gs
Summary: Inkscape Vector Illustration Program
Version: 0.46
Release: 37
# package in <= NLD9 and SuSE Linux <= 9.1
Provides: sodipodi
Obsoletes: sodipodi
Source: %{name}-%{version}.tar.bz2
Source1: gc6.4.tar.bz2
Source2: inkscape-split-extensions-extra.sh
Patch: %{name}-boehm-gc.patch
#PATCH-FIX-OPENSUSE inkscape-packages.patch sbrabec@suse.cz -- Suggest packages instead of compilation from source.
Patch1: %{name}-packages.patch
Patch4: %{name}-swigfix.patch
Patch7: %{name}-bug-189159.patch
Patch8: %{name}-configure.patch
Patch10: gc6.4.patch
Patch13: %{name}-polyutil-newpoly.patch
Patch14: %{name}-buffer-overrun.patch
# PATCH-FIX-UPSTREAM inkscape-warnings.patch
Patch15: inkscape-warnings.patch
# PATCH-FIX-UPSTREAM inkscape-gtk-clist.patch maw@novell.com -- https://bugs.launchpad.net/inkscape/+bug/238223
Patch16: inkscape-gtk-clist.patch
Url: http://www.inkscape.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
Recommends: python-lxml
%description
Inkscape is a vector illustration program for the GNOME desktop.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%package extensions-extra
License: GPL v2 only; LGPL v2.1 only
Summary: Inkscape Vector Illustration Program - Extra Extensions
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version} python-lxml pyxml
# for cdr and wmf modules
Requires: yudit
# python-lxml requires pyxml => supplement installation, if all three are present
Supplements: packageand(%{name}:python-lxml)
Enhances: %{name}
# Package in openSUSE <= 11.0 and SLED <= 10
Provides: %{name}:%{_datadir}/inkscape/extensions/inkex.py
%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.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%package extensions-dia
License: GPL v2 only; LGPL v2.1 only
Summary: Inkscape Vector Illustration Program - Dia Import Extension
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version} dia
Supplements: packageand(%{name}:dia)
Enhances: %{name}
# Package in openSUSE <= 11.0 and SLED <= 10
Provides: %{name}:%{_datadir}/inkscape/extensions/dia.inx
%description extensions-dia
Dia import extension for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%package extensions-fig
License: GPL v2 only; LGPL v2.1 only
Summary: Inkscape Vector Illustration Program - Fig Import Extension
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version} transfig
Supplements: packageand(%{name}:transfig)
Enhances: %{name}
# Package in openSUSE <= 11.0 and SLED <= 10
Provides: %{name}:%{_datadir}/inkscape/extensions/fig_input.inx
%description extensions-fig
Fig family (XFig, Figurine, JFig, WinFig,...) import extension for
Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%package extensions-gimp
License: GPL v2 only; LGPL v2.1 only
Summary: Inkscape Vector Illustration Program - The GIMP Extensions
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version} gimp
Supplements: packageand(%{name}:gimp)
Enhances: %{name}
# Package in openSUSE <= 11.0 and SLED <= 10
Provides: %{name}:%{_datadir}/inkscape/extensions/gimp_xcf.inx
%description extensions-gimp
The GIMP import and export extensions for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%package extensions-skencil
License: GPL v2 only; LGPL v2.1 only
Summary: Inkscape Vector Illustration Program - Skencil Import Extension
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version} skencil
Supplements: packageand(%{name}:skencil)
Enhances: %{name}
# Package in openSUSE <= 11.0 and SLED <= 10
Provides: %{name}:%{_datadir}/inkscape/extensions/sk_input.inx
%description extensions-skencil
Skencil import extension for Inkscape.
Inkscape is a vector illustration program for the GNOME desktop.
Authors:
--------
Alexander Clausen
John Bintz
Arpad Biro
Daniel Borgmann
Hans Breuer
Bulia Byak
Chema Celorio
Johan Ceuppens
Zbigniew Chyla
John Cliff
Kees Cook
Robert Crosbie
Jon Cruz
Danilo Egan
Frank Felfe
Fred
Ted Gould
Bryce Harrington
Carl Hetherington
Nathan Hurst
Thomas Ingham
Bob Jamison
Lauris Kaplinski
Lynn Kerby
Petr Kovar
Raph Levien
Vitaly Lipatov
Dmitry G. Mastrukov
Michael Meeks
Federico Mena
MenTaLguY
Peter Moulder
Yukihiro Nakai
Christian Neumair
Mitsuru Oka
Jon Phillips
Christian Schaller
Tom von Schwerdtner
Pat Suwalski
Adib Taraben
Daniel Yacob
Masatake Yamato
%lang_package
%prep
%setup -q -b 1
%patch
%patch1
%patch4
%patch7
%patch8
%patch13
%patch14 -p1
%patch15 -p0
%patch16 -p0
pushd ../gc*
%patch10
popd
patch <<EOF
--- configure.ac
+++ configure.ac
@@ -612,1 +612,1 @@
-AC_DEFINE_UNQUOTED([INKSCAPE_LIBDIR], "\${prefix}/lib",
+AC_DEFINE_UNQUOTED([INKSCAPE_LIBDIR], "\${prefix}/%_lib",
EOF
# Change sr@latin to sr@Latn
rename sr@latin sr@Latn po/sr@latin.*
sed -i "/^ALL_LINGUAS/s/ sr@latin / sr@Latn /" configure.ac
chmod -x README.ca.txt
%build
pushd ../gc*
autoreconf -f -i
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: It should be fixed in the package using pkg-config:
export CPPFLAGS="$CPPFLAGS -I/usr/include/ImageMagick"
%configure\
--libdir=%{_prefix}/lib\
--disable-shared
make %{?jobs:-j%jobs}
make install DESTDIR=$RPM_BUILD_DIR/gc_install
unset CFLAGS
popd
autoreconf -f -i
intltoolize --force
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# We're building without perl support for now...
%configure\
--enable-db2html\
--enable-gnome\
--with-python\
--without-perl\
--with-gnome-print\
--enable-inkboard\
--with-gc=$RPM_BUILD_DIR/gc_install/usr
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale/en_US@piglatin
%suse_update_desktop_file -N "Inkscape" -G "SVG Vector Illustrator" inkscape Office FlowChart
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/ps2pdf.cmd # Windows script
bash %{S:2} $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions "%%{_datadir}/inkscape/extensions/"
%clean
rm -rf $RPM_BUILD_ROOT
%files -f inkscape.lst
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog HACKING* INSTALL NEWS README* TRANSLATORS
%{_bindir}/*
%{_datadir}/applications/inkscape.desktop
%dir %{_datadir}/inkscape
%{_datadir}/inkscape/[cf-z]*
%{_datadir}/inkscape/examples
%dir %{_datadir}/inkscape/extensions
%{_datadir}/inkscape/extensions/xaml2svg
%{_datadir}/inkscape/extensions/*.pl
%{_datadir}/inkscape/extensions/*.xsl*
%{_datadir}/inkscape/extensions/colors.xml
%{_datadir}/inkscape/extensions/ps2*
#BEGIN FIXME: What is purpose of these plugins? I see no references to them:
%{_datadir}/inkscape/extensions/SpSVG.pm
%{_datadir}/inkscape/extensions/inkscape-shadow*
%{_datadir}/inkscape/extensions/simplepath.rb
# *.txt contain inactive plugins
%{_datadir}/inkscape/extensions/*.txt
#END FIXME
%{_datadir}/pixmaps/inkscape.png
%doc %{_mandir}/man?/*.*
%doc %{_mandir}/??/man?/*.*
# FIXME: should be part of filesystem
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1
%files extensions-extra -f inkscape-extensions-extra.lst
%defattr(-,root,root)
%{_datadir}/inkscape/extensions/Barcode
%{_datadir}/inkscape/extensions/cdr*
%{_datadir}/inkscape/extensions/wmf*
%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*
%files lang -f %{name}.lang
%changelog
* Tue Jul 01 2008 sbrabec@suse.cz
- Added missing dependencies: libMagick++-devel, libwpg-devel,
gimp, transfig, yudit.
- Packaged extensions using pyxml, lxml and yudit as an extra
package to shrink mandatory dependencies and not break plugins.
Uses an extra script for evaluation.
- Packaged optional dia, fig, gimp and skencil plugins as separate
packages with extra dependencies.
- Removed dependency on skencil, no more needed for EPS import
(bnc#394748).
- Removed dependency on libwmf, no more needed for WMF import.
- Tell user about pyxml and lxml packages instead of suggestinng of
compilation from source (however the message should not appear).
* Sat Jun 28 2008 maw@suse.de
- Add inkscape-gtk-clist.patch, to enable building against
recent versions of gtk+.
* Thu May 15 2008 maw@suse.de
- Recommend python-lxml (bnc#370334).
* Wed May 07 2008 maw@suse.de
- Respin inkscape-warnings.patch.
* Thu Apr 03 2008 maw@suse.de
- Buildrequire libpoppler-glib-devel, thereby enabling pdf import support
(bnc#376752).
* Sat Mar 29 2008 maw@suse.de
- Update to version 0.46:
+ Many new features and bugfeatures
+ For a detailed account of what's new, see the NEWS file
- Remove stale patches: inkscape-invalid-conversion.patch,
inkscape-0.45.1-gcc43.patch, inkscape-g_assert.patch
- Respin inkscape-bug-189159.patch
- Add inkscape-warnings.patch
- Rename sr@latin to sr@Latn.
* Thu Mar 06 2008 maw@suse.de
- Fix the build when against newer versions of intltool.
* Tue Feb 05 2008 maw@suse.de
- Disable perl support for now.
* Tue Jan 29 2008 maw@suse.de
- Add inkscape-g_assert.patch.
* Fri Jan 11 2008 coolo@suse.de
- take more gcc43 patches from SVN
* Sat Nov 10 2007 mauro@suse.de
- Added inkscape-0.45.1-gcc43.patch
+ Fixes issues with gcc 4.3.
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Thu May 10 2007 prusnak@suse.cz
- recommends pyxml [#271758]
* Wed Apr 18 2007 aj@suse.de
- Fix spec list so that package builds again.
* Thu Mar 29 2007 maw@suse.de
- Update to version 0.45
- Remove upstreamed inkscape-siox-max.patch
- Remove now-unnecessary inkscape-session-manager-strcmp.patch and
inkscape-enable-perl.patch
- Add inkscape-buffer-overrun.patch
* Wed Jan 31 2007 sbrabec@suse.cz
- Removed remaining references to /opt/gnome (#240571).
* Tue Jan 23 2007 prusnak@suse.cz
- fixed build errors
* polyutil-newpoly.patch - uninitialized structure
* session-manager-strcmp.patch - comparing char* w/ string literal
* Mon Jan 22 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Jan 04 2007 prusnak@suse.cz
- fixed illegal comparison (siox-max.patch) [#231224]
* Mon Nov 06 2006 jhargadon@suse.de
- applied a patch that fixes a problem where the package would not
compile with the --with-perl option.
* Sat Oct 21 2006 schwab@suse.de
- Don't use obsolete macro.
* Sat Oct 14 2006 danw@suse.de
- Remove dead patches
* Thu Oct 05 2006 jhargadon@suse.de
- added --datadir=%%prefix/share as a configuration option. This
is a work around for bug #204719
* Sat Sep 30 2006 jhargadon@suse.de
- update to version 0.44.1
- Layers dialog
- Outline mode, many performance improvements
- Native PDF export with transparency
- Clipping and masking support
- Configurable keyboard shortcuts
- Docked color palette in the editing window
- Interactive indicator of the style of selection in the statusbar
- Innovative "node sculpting" and other improvements in Node tool
- Better SVG support: <switch> element, ICC color profiles for images
- Persistent rotation centers, Paste Size command
- many bug fixes
- removed the --with-perl option from configuration in the specfile
* Sat Sep 09 2006 meissner@suse.de
- use RPM_OPT_FLAGS.
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Sat Jul 08 2006 jpr@suse.de
- add patch to not use freetype2 internals
* Sat Feb 18 2006 stbinner@suse.de
- fix typo .desktop file
* Sat Feb 18 2006 gekker@suse.de
- fixup .desktop file for UI team
* Tue Jan 31 2006 ro@suse.de
- take fix from swig to swig-generated source file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 23 2005 sbrabec@suse.cz
- Updated to version 0.43 (#134655).
- Enabled Inkboard Collaborative Editing.
* Mon Nov 07 2005 sbrabec@suse.cz
- Fixed qualification and type conversion errors.
* Thu Aug 25 2005 nadvornik@suse.cz
- updated to bugfix release 0.42.2 [#112918]
* Mon Aug 01 2005 ro@suse.de
- added dir to filelist /usr/share/man/fr/man1
* Fri Jul 29 2005 sbrabec@suse.cz
- Updated to version 0.42.
* Tue May 31 2005 schwab@suse.de
- Fix more invalid casts.
* Wed May 18 2005 ro@suse.de
- fix build with current pkgconfig
* Thu Apr 28 2005 sbrabec@suse.cz
- Build boehm-gc with -fPIC and -fno-strict-aliasing.
* Wed Apr 27 2005 ro@suse.de
- remove boehm-gc from nfb (dropped)
- use private copy of gc6.4
* Tue Apr 26 2005 sbrabec@suse.cz
- Install missing translation files.
* Mon Apr 11 2005 sbrabec@suse.cz
- Fixed invalid casts.
* Mon Mar 21 2005 sbrabec@suse.cz
- Bi-arch fix (#66780).
- Require skencil needed for PS/EPS input (#66780).
* Mon Feb 28 2005 sbrabec@suse.cz
- Added needed Requires and triggers for optional extensions
(#66780).
- Turned on perl, python and gnome-print support.
* Mon Feb 21 2005 sbrabec@suse.cz
- Updated to version 0.41.
- Worked around problems with boehm-gc detection.
* Fri Feb 11 2005 sbrabec@suse.cz
- Updated to version 0.40.
* Fri Feb 11 2005 ro@suse.de
- change to libsigc++12 in neededforbuild
* Tue Nov 02 2004 mmj@suse.de
- Locale rename: no -> nb
* Thu Aug 12 2004 hhetter@suse.de
- Obsolete and Provide sodipodi
* Mon Aug 02 2004 hhetter@suse.de
- initial SuSE package