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
|
|
|
#
|
2024-02-08 17:05:00 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2020-01-24 14:04:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:09:11 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dia
|
2014-10-20 08:44:22 +02:00
|
|
|
Version: 0.97.3
|
|
|
|
Release: 0
|
|
|
|
Summary: A Diagram Creation Program
|
2018-03-29 21:58:01 +02:00
|
|
|
License: GPL-2.0-or-later
|
2014-10-20 08:44:22 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
2020-01-24 14:04:34 +01:00
|
|
|
URL: https://wiki.gnome.org/Dia
|
|
|
|
Source0: https://download.gnome.org/sources/dia/0.97/%{name}-%{version}.tar.xz
|
2014-10-20 08:44:22 +02:00
|
|
|
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
|
2009-05-20 23:10:58 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-03-29 21:58:01 +02:00
|
|
|
BuildRequires: gettext
|
2009-05-20 23:10:58 +02:00
|
|
|
BuildRequires: intltool
|
2018-03-29 21:58:01 +02:00
|
|
|
BuildRequires: libEMF-devel
|
2011-10-04 09:02:57 +02:00
|
|
|
BuildRequires: libtool
|
2020-01-24 14:04:34 +01:00
|
|
|
BuildRequires: libxslt-tools
|
2018-03-29 21:58:01 +02:00
|
|
|
BuildRequires: pkgconfig
|
2009-05-20 23:10:58 +02:00
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: update-desktop-files
|
2012-01-04 14:19:01 +01:00
|
|
|
BuildRequires: xz
|
2018-03-29 21:58:01 +02:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(gdk-2.0)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(libart-2.0)
|
|
|
|
BuildRequires: pkgconfig(libexslt)
|
|
|
|
BuildRequires: pkgconfig(libpng16)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(pango)
|
2009-05-20 23:10:58 +02:00
|
|
|
Requires: ghostscript-fonts-std
|
|
|
|
Requires: xdg-utils
|
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
|
2024-02-08 17:05:00 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 3
|
|
|
|
%patch -P 17 -p1
|
|
|
|
%patch -P 20 -p1
|
|
|
|
%patch -P 23 -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\
|
2014-02-27 20:04:50 +01:00
|
|
|
--disable-gnome\
|
2007-01-23 01:13:58 +01:00
|
|
|
--with-cairo\
|
2015-05-19 09:24:10 +02:00
|
|
|
--with-swig \
|
|
|
|
--docdir=%{_docdir}/%{name}
|
2018-03-29 21:58:01 +02:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2007-01-16 00:09:11 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-29 21:58:01 +02:00
|
|
|
%make_install
|
2014-10-20 08:44:22 +02:00
|
|
|
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
|
2018-03-29 21:58:01 +02:00
|
|
|
cp %{SOURCE4} %{buildroot}%{_datadir}/appdata/
|
2014-10-20 08:44:22 +02:00
|
|
|
fi
|
|
|
|
|
2013-01-19 20:30:32 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2007-01-16 00:09:11 +01:00
|
|
|
|
2007-08-10 01:06:25 +02:00
|
|
|
%files
|
2018-03-29 21:58:01 +02:00
|
|
|
%doc AUTHORS ChangeLog KNOWN_BUGS NEWS README TODO
|
|
|
|
%license COPYING
|
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.*
|
2017-02-15 10:59:47 +01:00
|
|
|
%dir %{_docdir}/%{name}
|
2017-02-25 14:21:30 +01:00
|
|
|
%{_docdir}/%{name}/en/
|
2017-02-15 10:59:47 +01:00
|
|
|
%dir %{_docdir}/%{name}/html
|
2017-02-04 13:52:28 +01:00
|
|
|
%doc %{_docdir}/%{name}/html/en
|
|
|
|
# EXAMPLES FOR THE (eu,fr,pl) LANGS ARE ALL SYMLINKED TO en
|
2017-02-15 10:59:47 +01:00
|
|
|
%doc %{_docdir}/%{name}/*/examples
|
2018-03-29 21:58:01 +02:00
|
|
|
%{_mandir}/man1/*.*
|
2007-01-16 00:09:11 +01:00
|
|
|
|
2007-08-10 01:06:25 +02:00
|
|
|
%files lang -f %{name}.lang
|
2017-02-26 12:46:05 +01:00
|
|
|
%exclude %{_docdir}/%{name}/AUTHORS
|
|
|
|
%exclude %{_docdir}/%{name}/COPYING
|
|
|
|
%exclude %{_docdir}/%{name}/ChangeLog
|
|
|
|
%exclude %{_docdir}/%{name}/KNOWN_BUGS
|
|
|
|
%exclude %{_docdir}/%{name}/NEWS
|
|
|
|
%exclude %{_docdir}/%{name}/README
|
|
|
|
%exclude %{_docdir}/%{name}/TODO
|
2017-02-15 10:59:47 +01:00
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%dir %{_docdir}/%{name}/html
|
2017-02-25 14:21:30 +01:00
|
|
|
%exclude %{_docdir}/%{name}/en
|
|
|
|
%doc %{_docdir}/%{name}/*
|
|
|
|
%exclude %{_docdir}/%{name}/html/en
|
|
|
|
%exclude %{_docdir}/%{name}/*/examples
|
2017-02-04 13:52:28 +01:00
|
|
|
%doc %{_docdir}/%{name}/html/*
|
2018-03-29 21:58:01 +02:00
|
|
|
%{_mandir}/fr/man1/*.*
|
2008-02-29 22:39:25 +01:00
|
|
|
|
2007-07-28 16:09:44 +02:00
|
|
|
%changelog
|