dia/dia.spec

381 lines
14 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dia (Version 0.96.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dia
BuildRequires: docbook-toys docbook-xsl-stylesheets fdupes gcc-c++ intltool libgnomeprint-devel libgnomeui-devel libxslt-devel python-devel python-gtk-devel scrollkeeper sgml-skel update-desktop-files
License: GPL v2 or later
Group: Productivity/Graphics/Other
Requires: ghostscript-fonts-std python-gtk python-numeric
# Ugh. I guess there should be a -devel subpackage split out
# Warning: Missing "Requires: libpng-devel" in dependency chain (/usr/lib/dia/libdia.la from dia requires /usr/lib/libpng.la).
# Warning: Missing "Requires: glibc-devel" in dependency chain (/usr/lib/dia/libdia.la from dia requires /usr/lib/libm.so).
# Warning: Missing "Requires: zlib-devel" in dependency chain (/usr/lib/dia/libdia.la from dia requires /usr/lib/libz.so).
# Requires: glibc-devel libpng-devel zlib-devel
AutoReqProv: on
Summary: A Diagram Creation Program
Version: 0.96.1
Release: 84
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-OPENSUSE dia-0.92.2-callbrowser.patch
Patch: %name-0.92.2-callbrowser.patch
# PATCH-FIX-OPENSUSE dia-0.92.2-no-strict-aliasing.patch
Patch3: dia-0.92.2-no-strict-aliasing.patch
# PATCH-FIX-OPENSUSE dia-create-user-files.patch
Patch5: dia-create-user-files.patch
# PATCH-FIX-OPENSUSE dia-group-props-size.patch
Patch8: dia-group-props-size.patch
# PATCH-FIX-UPSTREAM dia-64bit-clean.patch bgo519529
Patch13: dia-64bit-clean.patch
# PATCH-FIX-OPENSUSE dia-python-acinclude.patch
Patch14: dia-python-acinclude.patch
# PATCH-FIX-OPENSUSE dia-help.patch bnc157798
Patch15: dia-help.patch
# PATCH-FIX-UPSTREAM dia-0.96-pre3-docs.patch bgo404535
Patch16: dia-0.96-pre3-docs.patch
Url: http://live.gnome.org/Dia
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1020
Requires: %{name}-lang = %{version}
%endif
%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
%patch -p1
%patch3
%patch5 -p1
%patch8
%patch13
%patch14
%patch15 -p1
%patch16 -p1
# Work around gettext bug #186174
LANG=en_US.UTF-8 msgconv po/ko.po -o po/ko.po.new
mv po/ko.po.new po/ko.po
cp $RPM_SOURCE_DIR/font-test*dia .
%build
autoreconf -f -i
%configure\
--enable-db2html\
--enable-gnome\
--with-python\
--with-cairo\
--with-gnomeprint
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -r -N Dia -C "" -G "Diagram Editor" dia Office FlowChart GNOME
%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
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/dia
%{_datadir}/applications/*.desktop
%{_datadir}/dia
%{_datadir}/pixmaps/*
%doc %{_mandir}/man1/*.*
%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/*.dia font-test*dia
%files lang -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/gnome/help/dia/*
%changelog
* 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>
* Fri Jun 15 2001 egger@suse.de
- Updated to version 0.88.1.
- General specfile cleanup.
* Wed May 09 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