2007-01-16 00:09:11 +01:00
|
|
|
#
|
2011-02-14 01:12:52 +01:00
|
|
|
# spec file for package dia
|
2007-01-16 00:09:11 +01:00
|
|
|
#
|
2015-04-09 15:31:38 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:09:11 +01:00
|
|
|
#
|
2009-02-06 22:10:08 +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:09:11 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dia
|
2014-10-20 08:44:22 +02:00
|
|
|
Version: 0.97.3
|
|
|
|
Release: 0
|
|
|
|
Summary: A Diagram Creation Program
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
Url: http://live.gnome.org/Dia
|
|
|
|
Source0: http://download.gnome.org/sources/dia/0.97/%{name}-%{version}.tar.xz
|
|
|
|
Source1: font-test-japanese.dia
|
|
|
|
Source2: font-test-czech.dia
|
|
|
|
Source3: font-test-german-euro.dia
|
|
|
|
Source4: dia.appdata.xml
|
2015-04-09 15:31:38 +02:00
|
|
|
# PATCH-FIX-UPSTREAM dia-intltool-0.51.patch bgo#737255 dimstar@opensuse.org -- Fix installation of locales with intltool 0.51
|
|
|
|
Patch0: dia-intltool-0.51.patch
|
2014-10-20 08:44:22 +02:00
|
|
|
# PATCH-FIX-OPENSUSE dia-0.92.2-no-strict-aliasing.patch
|
|
|
|
Patch3: dia-0.92.2-no-strict-aliasing.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
|
|
|
|
# PATCH-FIX-UPSTREAM dia-libemf-64bit.patch bgo#675495 sbrabec@suse.cz -- Fix build with libEMF on 64-bit platforms.
|
|
|
|
Patch20: dia-libemf-64bit.patch
|
|
|
|
# PATCH-FIX-OPENSUSE dia-enable-html-doc.patch mgorse@suse.com -- Always enable html docs if xsltproc present.
|
|
|
|
Patch23: dia-enable-html-doc.patch
|
2014-02-27 20:04:50 +01:00
|
|
|
BuildRequires: docbook-toys
|
2009-05-20 23:10:58 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: intltool
|
2011-10-04 09:02:57 +02:00
|
|
|
BuildRequires: libtool
|
2009-05-20 23:10:58 +02:00
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-gtk-devel
|
|
|
|
BuildRequires: scrollkeeper
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
BuildRequires: update-desktop-files
|
2012-01-04 14:19:01 +01:00
|
|
|
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
|
|
|
|
BuildRequires: xz
|
2009-05-20 23:10:58 +02:00
|
|
|
Requires: ghostscript-fonts-std
|
|
|
|
Requires: python-gtk
|
|
|
|
# for xdg-open
|
|
|
|
Requires: xdg-utils
|
2011-02-14 01:12:46 +01:00
|
|
|
Recommends: %{name}-lang
|
2014-10-20 08:44:22 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: libEMF-devel
|
|
|
|
%else
|
|
|
|
%ifarch %ix86
|
|
|
|
# libEMF was not on x86_64 before 12.2
|
|
|
|
BuildRequires: libEMF-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2007-01-16 00:09:11 +01:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2007-08-10 01:06:25 +02:00
|
|
|
%lang_package
|
2014-10-20 08:44:22 +02:00
|
|
|
|
2007-01-16 00:09:11 +01:00
|
|
|
%prep
|
2007-01-23 01:13:58 +01:00
|
|
|
%setup -q
|
2009-03-11 23:35:09 +01:00
|
|
|
translation-update-upstream
|
2015-04-09 15:31:38 +02:00
|
|
|
%patch0 -p1
|
2007-01-16 00:09:11 +01:00
|
|
|
%patch3
|
2009-04-01 22:03:05 +02:00
|
|
|
%patch17 -p1
|
2012-10-02 23:16:54 +02:00
|
|
|
%patch20 -p1
|
2014-02-27 20:04:50 +01:00
|
|
|
%patch23 -p1
|
2007-01-16 00:09:11 +01:00
|
|
|
cp $RPM_SOURCE_DIR/font-test*dia .
|
|
|
|
|
|
|
|
%build
|
2007-01-23 01:13:58 +01:00
|
|
|
autoreconf -f -i
|
2008-03-07 20:56:20 +01:00
|
|
|
intltoolize --force
|
2007-01-23 01:13:58 +01:00
|
|
|
%configure\
|
2009-05-20 23:10:58 +02:00
|
|
|
--disable-static\
|
2007-01-23 01:13:58 +01:00
|
|
|
--enable-db2html\
|
2014-02-27 20:04:50 +01:00
|
|
|
--disable-gnome\
|
2007-01-23 01:13:58 +01:00
|
|
|
--with-python\
|
|
|
|
--with-cairo\
|
2009-05-20 23:10:58 +02:00
|
|
|
--with-swig
|
2011-09-21 17:41:32 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:09:11 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-20 08:44:22 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-05-20 23:10:58 +02:00
|
|
|
%suse_update_desktop_file -r -N Dia -C "" -G "Diagram Editor" dia Office FlowChart
|
2011-02-14 01:12:46 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2007-01-23 01:13:58 +01:00
|
|
|
# No need for mime-info-to-mime, application/x-dia-diagram is defined in freedesktop.org.xml
|
2014-10-20 08:44:22 +02:00
|
|
|
rm -r %{buildroot}%{_datadir}/mime-info
|
2009-05-28 04:31:59 +02:00
|
|
|
rm samples/Makefile* samples/*png
|
2014-10-20 08:44:22 +02:00
|
|
|
if [ -f %{buildroot}%{_datadir}/appdata/dia.appdata.xml ]; then
|
|
|
|
echo "Please remove the added dia.appdata.xml file from the sources - the tarball installs it"
|
|
|
|
false
|
|
|
|
else
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata
|
|
|
|
cp %{S:4} %{buildroot}%{_datadir}/appdata/
|
|
|
|
fi
|
|
|
|
|
2013-01-19 20:30:32 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2007-01-16 00:09:11 +01:00
|
|
|
|
2011-02-14 01:12:46 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
|
|
|
|
2007-08-10 01:06:25 +02:00
|
|
|
%files
|
2007-01-16 00:09:11 +01:00
|
|
|
%defattr(-,root,root)
|
2009-05-28 04:31:59 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/ font-test*dia
|
2007-01-23 01:13:58 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/dia
|
2014-10-20 08:44:22 +02:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/dia.appdata.xml
|
2007-01-23 01:13:58 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/dia
|
2009-05-20 23:10:58 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/dia.*
|
|
|
|
%doc %{_datadir}/doc/dia
|
2007-01-23 01:13:58 +01:00
|
|
|
%doc %{_mandir}/man1/*.*
|
2009-05-20 23:10:58 +02:00
|
|
|
%doc %{_mandir}/fr/man1/*.*
|
2007-01-16 00:09:11 +01:00
|
|
|
|
2007-08-10 01:06:25 +02:00
|
|
|
%files lang -f %{name}.lang
|
2014-10-20 08:44:22 +02:00
|
|
|
%defattr(-,root,root)
|
2008-02-29 22:39:25 +01:00
|
|
|
|
2007-07-28 16:09:44 +02:00
|
|
|
%changelog
|