SHA256
1
0
forked from pool/dia
dia/dia.spec

467 lines
18 KiB
RPMSpec

#
# spec file for package dia (Version 0.97)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: dia
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
%ifarch %ix86
# libEMF is not on x86_64
BuildRequires: libEMF-devel
%endif
BuildRequires: libgnomeui-devel
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
License: GPL v2 or later
Group: Productivity/Graphics/Other
Requires: ghostscript-fonts-std
Requires: python-gtk
# for xdg-open
Requires: xdg-utils
Summary: A Diagram Creation Program
Version: 0.97
Release: 2
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{version}.tar.bz2
Source1: font-test-japanese.dia
Source2: font-test-czech.dia
Source3: font-test-german-euro.dia
# PATCH-FIX-UPSTREAM bgo581529 dia-xdg-open.patch -- Use xdg-open instead of gnome-open
Patch: dia-xdg-open.patch
# PATCH-FIX-OPENSUSE dia-0.92.2-no-strict-aliasing.patch
Patch3: dia-0.92.2-no-strict-aliasing.patch
# PATCH-FIX-UPSTREAM bgo581531 dia-diagtkrc.patch vuntz@novell.com -- Use diagtkrc from config dir
Patch5: dia-diagtkrc.patch
# PATCH-FIX-UPSTREAM bgo581533 dia-python-acinclude.patch
Patch14: dia-python-acinclude.patch
# PATCH-FIX-UPSTREAM bgo581542 dia-build-errors.patch vuntz@novell.com -- Fix compilation warnings
Patch15: dia-build-errors.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
Url: http://live.gnome.org/Dia
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
%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).
Authors:
--------
James Henstridge <james@daa.com.au>
Alexander Larsson <alla@lysator.liu.se>
%lang_package
%prep
%setup -q
translation-update-upstream
%patch -p1
%patch3
%patch5 -p1
%patch14
%patch15 -p1
%patch17 -p1
cp $RPM_SOURCE_DIR/font-test*dia .
%build
autoreconf -f -i
intltoolize --force
%configure\
--disable-static\
--enable-db2html\
--enable-gnome\
--with-python\
--with-cairo\
--with-swig
make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%suse_update_desktop_file -r -N Dia -C "" -G "Diagram Editor" dia Office FlowChart
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Workaround for bgo#581537: the C help is just a symlink to the en help. But
# find_lang doesn't like this
rm %{buildroot}%{_datadir}/gnome/help/dia/C
mv %{buildroot}%{_datadir}/gnome/help/dia/en %{buildroot}%{_datadir}/gnome/help/dia/C
%find_lang %{name}
# No need for mime-info-to-mime, application/x-dia-diagram is defined in freedesktop.org.xml
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info
rm samples/Makefile* samples/*png
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/ font-test*dia
%{_bindir}/*
%{_libdir}/dia
%{_datadir}/applications/*.desktop
%{_datadir}/dia
%{_datadir}/icons/hicolor/*/apps/dia.*
%doc %{_datadir}/doc/dia
%doc %{_mandir}/man1/*.*
%doc %{_mandir}/fr/man1/*.*
%files lang -f %{name}.lang
%changelog
* Mon May 25 2009 vuntz@novell.com
- Keep samples subdirectory for the documentation.
* Wed May 06 2009 vuntz@novell.com
- Update to version 0.97:
+ Many build fixes.
+ Updated translations.
+ Improved rendering with cairo (PS, PDF, SVG, PNG, EMF) and also
default print through Gtk+/cairo support.
+ Simple Find & Replace for diagram objects names
+ Dedicated text editing mode finally allows to use 'Del' while
editing text and/or for whole object removal
+ Custom lines plug-in
+ Shapes can now have sub-shapes that can be scaled or not when
the main shape is scaled. Also, it is now possible to specify
that shapes are created with their stated sizes.
+ Much decreased start-up time and memory usage by delay loading
custom shapes.
+ Rotated text by "Standard - Outline" object (based on cairo)
+ Overhaul of the DXF plug-in (import and export)
+ With the help of libEMF dia now can write EMF on Linux(x86),
too.
+ New database table relation shapes
+ A huge step forward regarding properties of grouped objects
bgo#60331
+ Antialiased rendering done with cairo if the plug-in is loaded
+ Improvements on arrow bounding box calculations
+ The "UML - Class" dialog fits again 800x600 screen again
+ There is an optional 'integrated' UI for people otherwise
loosing their toolbox ;)
+ Experimental stand-alone bindings with the help of SWIG/C++
- Rename dia-0.92.2-callbrowser.patch to dia-xdg-open.patch, and
update the patch to use xdg-open.
- Respin dia-0.92.2-no-strict-aliasing.patch.
- Replace dia-create-user-files.patch with dia-diagtkrc.patch. This
last one is simpler and doesn't do things we don't want it to do.
- Drop dia-group-props-size.patch: doesn't seem to be needed
anymore.
- Drop dia-64bit-clean.patch: fixed upstream.
- Drop dia-help.patch: the use of --enable-gnome is enough for
this.
- Drop dia-0.96-pre3-docs.patch: fixed upstream.
- Add dia-build-errors.patch to fix compilation warnings.
- Remove unneeded BuildRequires: docbook-toys, libgnomeprint-devel
- Add BuildRequires: libEMF-devel (only for ix86), swig.
- Remove workaround for bnc#186174: I don't see how it could still
be needed.
- Remove --with-gnomeprint from configure: this doesn't exist
anymore.
- Pass --with-swig to configure.
- Pass --disable-static to configure and remove .la files.
- Do not add the GNOME category to the desktop file: it's already
there.
- Add a workaround for bgo#581537: rename the en help to C.
- Reorganize file list a bit.
* Fri May 01 2009 vuntz@novell.com
- Remove AutoReqProv: it's default now.
- Remove checks for old versions of openSUSE.
* Fri Apr 03 2009 vuntz@novell.com
- Remove python-numeric Requires: there's no reference to it
anywhere in the code, so it wasn't needed.
* Sat Mar 28 2009 vuntz@novell.com
- Add dia-remove-datetime.patch to be more build-compare friendly.
* Mon Feb 16 2009 sbrabec@suse.cz
- Added support for translation-update-upstream (FATE#301344).
* Sat Jan 31 2009 vuntz@novell.com
- Use sr@latin instead of sr@Latn.
* Thu Mar 06 2008 maw@suse.de
- Fix the build when against newer versions of intltool.
* Fri Feb 29 2008 rodrigo@suse.de
- Upstream, tag and rename (where appropriate) patches
* Thu Nov 01 2007 btimothy@suse.de
- Force xmldocs.make and doc/Makefile.am to use GNOME
configuration for help files (BNC #157798).
- Fix en language help file XML parsing (BGO #404535).
* Thu Aug 16 2007 jpr@suse.de
- Update to 0.96.1
* Empty initial lines in shapes crashes Dia (BGO #421250).
* several Python fixes, including a Doxygen import filter.
* Text-line rendering in SVG export.
* Keyboard shortcuts for tools now use shift-alt.
* Improvement in autogaps for some objects.
* .desktop file now has current version.
* Change in zoom levels in menus.
* Check that windows are within bounds before opening.
* Various compilation-time improvements.
* UML class improvements on comment and wrapped underlined names.
* Text rendering is now based on the TextLine objects
* Visio VXD files can now be imported and exported
* Renderer API change: Added function draw_text_line.
* Object API change: can_parent replaced by flags field.
* Dia menus now based on GtkAction framework.
* A number of new keyboard shortcuts.
* Layer visibility is now undoable.
* New sheets for Business Process Modelling
* The initial diagram will now be filled with opened diagram if
unchanged, like Gnumeric.
* Pasted objects now no longer land on top of each other.
* Fix of bug BGO #339562 (page margins restriction), BGO #338336
("query" in umloperation_offsets), and BGO #334771 (ungroup
crashes)
- Improved SVG export (#283773)
- Remove upstreamed patches
* Thu Aug 09 2007 maw@suse.de
- Fix the -lang subpackage.
* Tue Aug 07 2007 mauro@suse.de
- Split out a -lang subpackage
* Fri Jul 27 2007 maw@suse.de
- Add %%fdupes stuff
* Mon Jan 22 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
- Enabled GNOME print support.
* Tue Nov 14 2006 sbrabec@suse.cz
- Re-enabled use of gnome-patch-translation.
* Sun Nov 12 2006 stbinner@suse.de
- don't duplicate GenericName content within Name in .desktop file
* Fri Nov 03 2006 sbrabec@suse.cz
- Fixed python 2.5 related crash (#217495, backport Andreas Hanke).
* Fri Oct 13 2006 danw@suse.de
- Remove dead patches
* Sat Sep 30 2006 aj@suse.de
- Cleanup BuildRequires.
- Build C++ with RPM_OPT_FLAGS.
* Fri Sep 29 2006 jhargadon@suse.de
- update to version 0.95
- Update of Gane/Sarson sheets
- Fix of configure check for xgettext
- Fix of font placement in xfig import
- Three security holes in the XFig importer fixed after review
- Made children of objects not be magnetic to their parents.
- new or improved plugins written in Python
- many bug fixes
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Fri Aug 11 2006 cthiel@suse.de
- remove dia-0.94-pygtk-hack.patch, since python-gtk has been fixed in the
meanwhile
* Sun Aug 06 2006 cthiel@suse.de
- fixed build by adding dia-0.94-pygtk-hack.patch to hack around an
unfavorable configure check
* Mon Jun 19 2006 sbrabec@suse.cz
- Worked around failing msgmerge (#186174).
* Tue May 23 2006 sbrabec@suse.cz
- Fixed more format string vulnerabilities (CVE-2006-2453,
[#173867]).
* Wed May 17 2006 sbrabec@suse.cz
- Fixed message format string vulnerability (CVE-2006-2480,
[#173867]).
* Thu Mar 30 2006 sbrabec@suse.cz
- Fixed XFig import buffer overflows (#162074).
http://mail.gnome.org/archives/dia-list/2006-March/msg00149.html
* Fri Feb 24 2006 sbrabec@suse.cz
- Improved Categories.
* Wed Feb 15 2006 stbinner@suse.de
- fix %%suse_update_desktop and add .desktop file GenericName entry
* Wed Feb 01 2006 sbrabec@suse.cz
- Use translation compendium gnome-patch-translation.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 sbrabec@suse.cz
- Removed libpixman from neededforbuild.
* Tue Dec 20 2005 ro@suse.de
- add /opt/gnome/share/gnome/help/dia/C to filelist
* Tue Oct 04 2005 sbrabec@suse.cz
- Fixed SVG import arbitary python code execution
(#120091, CAN-2005-2966).
* Thu Aug 18 2005 sreeves@suse.de
- Patch to fix bugzilla.novell.com defect#6341 - "popup of group
properties is too small"
* Fri Jun 10 2005 sbrabec@suse.cz
- Updated cairo patch from Hans Breuer.
http://bugzilla.gnome.org/show_bug.cgi?id=307144
* Fri Jun 03 2005 ro@suse.de
- fix build with new cairo using cairo-api-update script
* Wed May 11 2005 uli@suse.de
- fixed to build (glitz* missing in neededforbuild)
* Fri Apr 08 2005 sbrabec@suse.cz
- Fixed GCC 4 related problems.
* Mon Feb 21 2005 sbrabec@suse.cz
- Updated to version 0.94.
* Wed Oct 27 2004 mmj@suse.de
- locale rename no to nb
* Mon Aug 23 2004 ro@suse.de
- adapt filelist (help is installed below pkgdatadir)
* Fri Aug 20 2004 shprasad@suse.de
- Fixes bug #60814
Remove the default gnome-menu style. It will display
'Help -> Manual' and clicking on it will bring the help
window.
* Thu Jul 22 2004 kimmidi@suse.de
- Fixes bugs #60003 and #61815 on ximian bugzilla.
* Fri Jul 16 2004 kimmidi@suse.de
- Correct the -p option for patch6 and patch7 in dia.spec
* Thu Jul 15 2004 kimmidi@suse.de
- Fixes bugs #60814 and #60816 on ximian bugzilla.
* Mon Jun 28 2004 kimmidi@suse.de
- Fixes bugs #59101, #59230, #59097 and #59548 on ximian bugzilla.
* Mon May 31 2004 sbrabec@suse.cz
- Fixed crash on IA64 (#41339).
http://bugzilla.gnome.org/show_bug.cgi?id=143448
* Fri May 14 2004 ro@suse.de
- use -fno-strict-aliasing
* Mon Feb 23 2004 adrian@suse.de
- fix multiple menu entries
* Thu Jan 08 2004 ro@suse.de
- fix build with current freetype
- fix build with lib64
* Sun Nov 09 2003 mmj@suse.de
- Update to dia-0.92.2
* Mon Oct 27 2003 sbrabec@suse.cz
- Updated to version 0.92.
- Enabled python, xslt and GNOME support.
* Thu Oct 16 2003 mmj@suse.de
- Don't build as root
* Wed Sep 10 2003 mmj@suse.de
- Bug [#30080] brought to my attention we don't package the docu-
mentation.
- Use call-browser instead of netscape [#30080]
* Mon Sep 01 2003 mmj@suse.de
- Disable buggy xslt plugin [#29690]
* Sat Aug 16 2003 adrian@suse.de
- add Categories
* Thu Jul 24 2003 hhetter@suse.de
- %%_lib fixes
* Tue Jul 22 2003 hhetter@suse.de
- prefix to /opt/gnome
- remove former prefix clash fixes
- use gnome-filesystem
* Wed Jun 18 2003 sbrabec@suse.cz
- Desktop file prefix clash fix.
* Wed Mar 26 2003 mmj@suse.de
- Update to 0.91, which switches to GNOME2
* Fri Mar 07 2003 mmj@suse.de
- Add patch to avoid strlen(0); [#24620]
* Wed Jan 08 2003 ro@suse.de
- fixed configure
* Wed Nov 06 2002 uli@suse.de
- fixed segfault on x86-64 and other 64 bit systems
* Thu Oct 24 2002 hhetter@suse.de
- applied patch from CVS (no longer translate font
strings) (Bug Id #20676)
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Thu Aug 08 2002 mfabian@suse.de
- update to 0.90
- add configure option --enable-freetype
using this option, fonts will be embedded in the PostScript
ouput and all scalable fonts installed can be used.
This works nicely for most European languages.
Unfortunately it doesn't work for CJK. Japanese can be displayed
on screen but printing doesn't work (but Japanese printing
stopped working without "--enable-freetype" as well).
* Tue Jul 02 2002 meissner@suse.de
- auto* rerun, some automake related fixes.
* Thu Mar 21 2002 mfabian@suse.de
- fix for bugzilla #15026 (dia crashes for LANG=de_DE@euro)
use fallback fonts which certainly work with gdk_fontset_load
if some fonts cannot be found to avoid crashing.
(I made iso8859-15 fonts usable with 'dia' available in the
ghostscript-fonts-std package, i.e. 'dia' will not crash anymore
for de_DE@euro even without this fallback font fix. Nevertheless
it is a safer to have valid fallback fonts as well).
- include test file for de_DE@euro font-test-german-euro.dia
* Sat Mar 02 2002 mfabian@suse.de
- fix for bugzilla #13267 and #14015
(International fonts are broken (can't write in czech)):
- use the URW Type1 fonts as the preferred fonts for display on X11
as these are very similar to the fonts used for printing
(identical when our Ghostscript is used). Leaving in the bitmap
fonts as fallbacks doesn't hurt.
- add Requires: ghostscript-fonts-std
- use gdk_fontset_load instead of gdk_font_load always *exept*
for the "fontspecific" fonts (i.e. "Symbol" and "Dingbats").
- Add support for the Japanese fonts
Ryumin-Light-EUC-H and GothicBBB-Medium-EUC-H
- don't reencode the "Dingbats" font and the Japanese fonts either
when generating .eps
* Thu Feb 21 2002 hhetter@suse.de
- dia-fonts.dif: Dia maintains a static font list with
nearly only Bitmap-Fonts. It does internal AA via libart
and requests the fonts in sizes that our X-Server doesn't
provide because the :unscaled flag is set on bitmap fonts.
The patch reorganizes Dia's font list to actually scaleable
ones and fonts where scaling makes sense.
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Jun 14 2001 egger@suse.de
- Updated to version 0.88.1.
- General specfile cleanup.
* Tue May 08 2001 mfabian@suse.de
- bzip2 sources
* Wed Mar 21 2001 ro@suse.de
- added esound-devel
* Sun Feb 25 2001 egger@suse.de
- Remove unnecessary dependencies from #neededforbuild,
especially imlib-config.
* Wed Jan 31 2001 ro@suse.de
- changed neededforbuild <imlibcfe> to <imlib-config>
* Wed Nov 01 2000 egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
* Tue Aug 08 2000 grimmer@suse.de
- update to 0.86
- moved man page to %%{_mandir}/man1
- added some more docu (doc/*)
* Wed May 24 2000 egger@suse.de
- update to 0.85
* Tue Feb 29 2000 grimmer@suse.de
- update to 0.84
- use BUILD_ROOT and strip binary during installation
* Wed Jan 26 2000 grimmer@suse.de
- update to 0.83
- use version macro in spec file
* Tue Jan 04 2000 grimmer@suse.de
- update to 0.82
- reworked package descriptions
- added NLS support
- added missing files to file list
* Thu Nov 11 1999 ray@suse.de
- new package dia version 0.81