dia/dia.spec

321 lines
12 KiB
RPMSpec

#
# spec file for package dia (Version 0.95)
#
# Copyright (c) 2007 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 gcc-c++ gnome-patch-translation intltool libgnomeprint-devel libgnomeui-devel libxslt-devel python-devel python-gtk-devel scrollkeeper sgml-skel update-desktop-files
License: GNU General Public License (GPL)
Group: Productivity/Graphics/Other
Requires: ghostscript-fonts-std python-gtk python-numeric
Autoreqprov: on
Summary: A Diagram Creation Program
Version: 0.95
Release: 38
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: %name-0.92.2-callbrowser.diff
Patch3: dia-0.92.2-no-strict-aliasing.diff
Patch5: dia_bugfixes.diff
Patch8: dia-group-props-size.patch
Patch11: dia-cve-2006-2480.patch
Patch12: dia-cve-2006-2453.patch
Patch13: dia-64bit-clean.patch
Patch14: dia-python2.5.patch
Patch15: fix-desktop-file.diff
URL: http://www.gnome.org/projects/dia/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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>
%prep
%setup -q
gnome-patch-translation-prepare
%patch -p1
%patch3
%patch5 -p1
%patch8
%patch11
%patch12
%patch13
%patch14
%patch15
# 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
gnome-patch-translation-update
cp $RPM_SOURCE_DIR/font-test*dia .
%build
autoreconf -f -i
%configure\
--enable-db2html\
--enable-gnome\
--with-python\
--with-cairo\
--with-gnomeprint
make docdir=%{_docdir}/%{name} %{?jobs:-j%jobs}
%install
%makeinstall docdir=%{_docdir}/%{name}
%suse_update_desktop_file -r -C "" -G "Diagram Editor" dia Office FlowChart GNOME
%find_lang dia
cp -a AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO samples/*.dia font-test*dia $RPM_BUILD_ROOT%{_docdir}/%{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
%clean
rm -rf $RPM_BUILD_ROOT
%files -f dia.lang
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_libdir}/dia
%{_datadir}/applications/*.desktop
%{_datadir}/dia
%{_datadir}/pixmaps/*
%doc %{_mandir}/man1/*.*
%changelog -n dia
* 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.
* Tue Jan 30 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