File mingw64-dia.spec of Package mingw64-dia
#
# spec file for package mingw64-dia
#
# Copyright (c) 2014 SUSE LINUX Products 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: mingw64-dia
Version: 0.97.3
Release: 0
Summary: A Diagram Creation Program
License: GPL-2.0-or-later
Group: Productivity/Graphics/Other
Url: http://live.gnome.org/Dia
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/dia-%{version}.tar.xz
Patch0: dia-0.97.1-configure.patch
Patch1: dia-0.97.1-libdia.patch
Patch2: dia-0.97.1-mwindows.patch
Patch3: dia-0.97.1-objects.patch
Patch4: dia-0.97.1-plugins.patch
Patch5: dia-0.97.1-relocations.patch
Patch6: dia-0.97.1-mingworg.patch
Patch7: dia-0.97.3-libgdi32.patch
# PATCH-FIX-OPENSUSE dia-remove-datetime.patch vuntz@novell.com -- Do not put date/time in the compiled binary (needed for build-compare)
Patch17: dia-remove-datetime.patch
Patch18: dia-0.97.3-gcc6.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: libxslt-devel
BuildRequires: mingw64-cairo-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libpng-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-pango-devel
BuildRequires: sgml-skel
BuildRequires: xz
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
%description
Dia is designed to be much like the commercial program 'Visio.' It can
be used to draw many different kinds of diagrams. It has special
objects to help draw entity relationship diagrams, UML diagrams, SADT,
flowcharts, network diagrams, and simple circuits. It is possible to
add support for new shapes by writing simple XML files, and using a
subset of SVG to draw the shape.
Dia can load and save diagrams to a custom XML format (gzipped by
default to save space), can export diagrams to EPS, PNG, CGM, or SVG
formats, and can print diagrams (including ones that span multiple
pages).
%lang_package
%_mingw64_debug_package
%prep
%setup -q -n dia-%{version}
%patch -P 0 -p1 -b .configure
%patch -P 1 -p1 -b .libdia
%patch -P 2 -p1 -b .mwindows
%patch -P 3 -p1 -b .objects
%patch -P 4 -p1 -b .plugins
%patch -P 5 -p1 -b .relocations
%patch -P 6 -p1 -b .mingworg
%patch -P 7 -p1 -b .libgdi32
%patch -P 17 -p1
%patch -P 18 -p1
%build
libtoolize --force --copy --install --automake
autoreconf -f -i
intltoolize --force
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
MINGW64_CFLAGS="%_mingw64_cflags -fcommon"
%{_mingw64_configure} \
--disable-static\
--enable-db2html\
--without-freetype
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang dia
rm -rf %{buildroot}%{_mingw64_libdir}/dia/*.dll.a
rm -rf %{buildroot}%{_mingw64_libdir}/*.dll.a
rm -rf %{buildroot}%{_mingw64_datadir}/mime-info
%files
%defattr(-,root,root)
%{_mingw64_bindir}/*
%{_mingw64_libdir}/dia
%exclude %{_mingw64_datadir}/applications/*.desktop
%{_mingw64_datadir}/dia
%{_mingw64_datadir}/icons/hicolor/*/apps/dia.*
%{_mingw64_datadir}/doc/dia
%{_mingw64_mandir}/man1/*.*
%{_mingw64_mandir}/fr/man1/*.*
%files lang -f dia.lang
%defattr(-,root,root)
%changelog