File mingw32-inkscape.spec of Package mingw32-inkscape
#
# spec file for package mingw32-inkscape
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-inkscape
Version: 0.91
Release: 0
Summary: MinGW Windows port of Inkscape vector graphics editor
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: http://www.inkscape.org/
Source0: http://downloads.sourceforge.net/inkscape/inkscape-%{version}.tar.bz2
Patch0: inkscape-0.91-iconv.patch
Patch1: inkscape-0.91-win32ie.patch
Patch2: inkscape-0.91-win32.patch
Patch3: inkscape-0.91-gstatbuf.patch
Patch4: inkscape-0.91-gcc6.patch
Patch5: inkscape-0.91-abs.patch
Patch6: inkscape-0.91-fix-gtkmm-2.48.patch
BuildRequires: autoconf
BuildRequires: automake
# For /usr/bin/glib-gettextize
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: libtool
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-boost-devel
BuildRequires: mingw32-cairomm-devel
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 40
BuildRequires: mingw32-fontconfig-devel
BuildRequires: mingw32-freetype-devel
BuildRequires: mingw32-gc-devel
BuildRequires: mingw32-glibmm2-devel
BuildRequires: mingw32-gnome-vfs2-devel
BuildRequires: mingw32-gtkmm2-devel
BuildRequires: mingw32-libcdr-devel >= 0.1.0
BuildRequires: mingw32-libgsl-devel
BuildRequires: mingw32-liblcms-devel
BuildRequires: mingw32-libmagick++-devel
BuildRequires: mingw32-libpoppler-devel
BuildRequires: mingw32-libpoppler-glib-devel
BuildRequires: mingw32-libsigc++2-devel
BuildRequires: mingw32-libvisio-devel >= 0.1.0
BuildRequires: mingw32-libwpg-devel >= 0.3.0
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-libxslt-devel
BuildRequires: mingw32-pangomm-devel
BuildRequires: mingw32-popt-devel
BuildRequires: mingw32-win_iconv-devel
BuildRequires: python
BuildRequires: python-xml
Requires: %{name}-lang = %{version}
%_mingw32_package_header_debug
BuildArch: noarch
%description
An Open Source vector graphics editor, with capabilities similar to
Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable
Vector Graphics (SVG) file format.
Inkscape supports many advanced SVG features (markers, clones, alpha
blending, etc.) and great care is taken in designing a streamlined
interface. It is very easy to edit nodes, perform complex path
operations, trace bitmaps and much more. We also aim to maintain a
thriving user and developer community by using open,
community-oriented development.
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n inkscape-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
%build
autopoint --force
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
sed 's/itlocaledir = $(prefix)\/$(DATADIRNAME)\/locale/itlocaledir = $(datarootdir)\/locale/' < po/Makefile.in.in > po/Makefile.in.in.tmp
mv po/Makefile.in.in.tmp po/Makefile.in.in
PATH=%{_mingw32_bindir}:$PATH \
MINGW32_CXXFLAGS="%{_mingw32_cflags} -std=c++11" \
%{_mingw32_configure} \
--enable-lcms=yes --disable-strict-build
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang inkscape
%files
%defattr(-,root,root)
%{_mingw32_bindir}/inkscape.exe
%{_mingw32_bindir}/inkview.exe
%exclude %{_mingw32_datadir}/applications/inkscape.desktop
%{_mingw32_datadir}/inkscape/
%{_mingw32_datadir}/icons/hicolor/*/apps/inkscape.png
%{_mingw32_mandir}/*/man1/*.1*
%{_mingw32_mandir}/man1/*.1*
%files lang -f inkscape.lang
%defattr(-,root,root)
%changelog