Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 82738ad6f1fff5db937aa021c9a3380e > files > 8

dia-0.94-6.1.20060mdk.src.rpm

#define pre pre6
Summary: A gtk+ based diagram creation program
Name: dia
Version: 0.94
Release: 6.1.20060mdk
License: GPL
Group: Office
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%name/%version/%{name}-%{version}.tar.bz2
Patch: dia-0.94-pre1-use-own-gtkrc.patch.bz2
#gw quick hack to find the gnome documentation
Patch1: dia-0.94-pre1-help.patch.bz2
# (fc) 0.94-0.pre3-2mdk fix DTD location in help file
Patch2: dia-0.94-dtdfix.patch.bz2
Patch3: dia-0.94-gcc4.patch.bz2
Patch4: dia-0.94-new-cairo.patch.bz2
Patch5: dia-0.94-CAN-2005-2966.patch.bz2
URL: http://www.gnome.org/projects/dia 
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires:	docbook-utils
BuildRequires:	pygtk2.0
BuildRequires:	python-devel
BuildRequires:	libgnomeui2-devel
BuildRequires:	png-devel
BuildRequires:	libxslt-devel
BuildRequires:	cairo-devel
BuildRequires:	perl-XML-Parser
BuildRequires:	ImageMagick
BuildRequires:	autoconf2.5
BuildRequires:	xorg-x11-Xvfb
BuildRequires:	docbook-style-xsl
BuildRequires:	libxslt-proc
Requires:	pygtk2.0

%description
Dia is a program designed to be much like the Windows
program 'Visio'. It can be used to draw different kind of diagrams. In
this first version there is support for UML static structure diagrams
(class diagrams) and Network diagrams. It can currently load and save
diagrams to a custom fileformat and export to postscript.

%prep
%setup -q
%patch -p1 -b .diagtkrc
%patch1 -p1 -b .help
%patch2 -p1 -b .dtdfix
%patch3 -p1
%patch4 -p1
%patch5 -p1 -b .can-2005-2966
#gw this must be regenerated
rm -f doc/en/dia.1

# Let it find python libraries gracefully
perl -pi -e "s,/lib/(python),/%{_lib}/\1,g" configure

%build
XDISPLAY=$(i=2; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
%{_prefix}/X11R6/bin/Xvfb :$XDISPLAY &
export DISPLAY=:$XDISPLAY
%configure2_5x --enable-gnome --with-python --with-cairo
kill $(cat /tmp/.X$XDISPLAY-lock)

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std
install -m 644 doc/en/*.xml %buildroot%_datadir/gnome/help/%name/en
install -m 644 doc/pl/*.xml %buildroot%_datadir/gnome/help/%name/pl
rm -f %buildroot%{_datadir}/gnome/help/%{name}/C
mv %buildroot%{_datadir}/gnome/help/%{name}/en %buildroot%{_datadir}/gnome/help/%{name}/C

mkdir -p $RPM_BUILD_ROOT%{_menudir}

cat <<EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): needs="x11" section="Office/Graphs" title="Dia" longtitle="A gtk+ based diagram creation program" command="%{_bindir}/dia" icon="dia.png"
EOF
mkdir -p $RPM_BUILD_ROOT/%{_miconsdir}
mkdir -p $RPM_BUILD_ROOT/%{_liconsdir}

convert -scale 16x16 dia_gnome_icon.png $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png
convert -scale 32x32 dia_gnome_icon.png $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png
ln -s %_datadir/pixmaps/dia_gnome_icon.png $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png

for i in $RPM_BUILD_ROOT%{_datadir}/dia/sheets/{ER,GRAFCET,Istar,KAOS,Jackson}/*.xpm ; do
 convert $i `dirname $i`/`basename $i .xpm`.png
done

%{find_lang} %{name} --with-gnome
%clean
rm -fr $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files -f %{name}.lang
%defattr(-,root,root)
%doc README TODO NEWS INSTALL COPYING ChangeLog AUTHORS
%{_bindir}/*
%{_libdir}/dia
%{_mandir}/*/*
%{_datadir}/dia
%{_datadir}/mime-info/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/dia.desktop
%{_menudir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png


%changelog
* Tue Oct 18 2005 Stew Benedict <sbenedict@mandriva.com> 0.94-6.1.20060mdk
- security update for CAN-2005-2966 (P5)
- needs X to configure (Xvfb)
- buildrequires docbook-style-xsl, libxslt-proc (to regenerate the man page)

* Sun Sep 18 2005 Götz Waschk <waschk@mandriva.org> 0.94-6mdk
- fix the man page format

* Fri Aug 12 2005 Götz Waschk <waschk@mandriva.org> 0.94-5mdk
- patches for gcc4 and new cairo
- rebuild for new cairo

* Wed Jan 05 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.94-4mdk 
- Rebuild with latest howl

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.94-3mdk
- Rebuild for new python

* Mon Aug 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-2mdk
- fix buildrequires

* Thu Aug 19 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-1mdk
- rediff patch 2
- new version

* Sun Aug  8 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre6.1mdk
- rediff patch 2
- new version

* Tue Aug  3 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre5.1mdk
- rediff patch 2
- new version

* Mon Aug  2 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre4.1mdk
- rediff patch 2
- new version

* Fri Jul 30 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.94-0.pre3.2mdk
- Patch1: fix DTD location in help file
- Add png version of ER,GRAFCET,Istar,KAOS,Jackson symbols
- Remove hard dependencies on ISO fonts, it pulls X server

* Mon Jul 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre3.1mdk
- new version

* Fri Jul 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre2.1mdk
- new version

* Mon Jul 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.94-0.pre1.1mdk
- fix help menu entry
- convert icons with imagemagick
- drop yelp stuff
- enable cairo
- rediff patch 0
- new version

* Wed Jun 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-3mdk
- reenable libtoolize
- fix accellerator key setting (bug #10123)

* Fri May  7 2004 Robert Vojta <robert.vojta@mandrake.cz> 0.93-2mdk
- URL fixed (http://www.gnome.org/projects/dia)

* Sat May  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-1mdk
- New release 0.93

* Wed Apr 14 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-0.pre3.1mdk
- new version

* Sun Apr 11 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-0.pre2.2mdk
- fix help files conflict

* Fri Apr  9 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-0.pre2.1mdk
- fix gnome help file listing
- new version

* Wed Apr  7 2004 Götz Waschk <waschk@linux-mandrake.com> 0.93-0.pre1.1mdk
- drop all patches
- new version

* Wed Dec 10 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 0.92.2-2mdk
- Patch5 : fix compilation with latest freetype

* Wed Nov  5 2003 Götz Waschk <waschk@linux-mandrake.com> 0.92.2-1mdk
- rediff patch 4
- fix libtool build
- update file list
- drop unused patches
- new version

* Thu Oct  2 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.91-9mdk
- libtool & lib64 fixes

* Thu Sep 11 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 0.91-8mdk
- Patch2 (CVS): fix font size (Mdk bug 5343)

* Tue Sep 02 2003 Frederic Crozat <fcrozat@mandraksoft.com> 0.91-7mdk
- Fix BuildRequires


* Tue Sep  2 2003 Abel Cheung <deaddog@deaddog.org> 0.91-6mdk
- Add missing BuildRequires and nuke useless ones

* Thu Aug 07 2003 Frederic Lepied <flepied@mandrakesoft.com> 0.91-5mdk
- python 2.3

* Sat Jul 19 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-4mdk
- rebuild for new orbit

* Tue Jun 10 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-3mdk
- patch1: fix gcc 3.3 preprocessor stuff

* Tue Apr 22 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-2mdk
- fix xslt stylesheet location
- fix xslt plugin

* Wed Apr  2 2003 Götz Waschk <waschk@linux-mandrake.com> 0.91-1mdk
- needs pygtk2.0
- fix source url
- new version
- fix buildrequires
- drop patches 

* Wed Dec  4 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.90-5mdk
- Patch2: Fixes for 64-bit platforms

* Wed Dec  4 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.90-4mdk
- Poor man's perl'ification to let it find the correct python path

* Sun Nov 17 2002 Stefan van der Eijk <stefan@eijk.nu> 0.90-3mdk
- BuildRequires

* Thu Jun 27 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.90-2mdk
- png icon
- Disable gnome-print support, it is somehow broken

* Mon Jun  3 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.90-1mdk
- Release 0.90
- Remove patches 0, 1 & 2 (merged upstream)

* Thu Mar  7 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.88.1-7mdk
- Patch2 (GNOME CVS): fix crash in tools menu (bug 55047)

* Fri Jan 11 2002 Stefan van der Eijk <stefan@eijk.nu> 0.88.1-6mdk
- BuildRequires

* Thu Jan  3 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.88.1-5mdk
- Recompiled against python 2.2

* Tue Dec 11 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.88.1-4mdk
- Patch0 (Rawhide): disable doc generation (broken)
- Patch1 (Rawhide): fix text rendering

* Fri Jun 15 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.88.1-3mdk
- Add missing BuildRequires

* Thu Jun 14 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.88.1-2mdk
- new office menu structure
- embed menu entry in specfile
- Add dependency on pygtk (for plugins)
- Reactivate xim
- configure macro is back

* Mon May 21 2001 Vincent Saugey <vince@mandrakesoft.com> 0.88.1-1mdk
- Up to 0.88.1


* Mon May 14 2001 Vincent Saugey <vince@mandrakesoft.com> 0.88-1mdk
- UP to 0.88
- reactivate bonobo support
- reactivate gnome support

* Mon Apr 30 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.86-6mdk
- Add locales (really)
- Disable GNOME support (seems to break i18n)
- Disable Bonobo support (since GNOME is needed to support Bonobo)
- Remove patch0

* Wed Jan 24 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.86-5mdk
- Recompiled against oaf 0.6.2

* Fri Jan 19 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.86-4mdk
- Recompiled against last bonobo
- Add missing files
- Bzip patch

* Thu Oct 26 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.86-3mdk
- recompiled with gnome-print 0.24

* Thu Sep  7 2000 Vincent Saugey <vince@mandrakesoft.com> 0.86-2mdk
- Adding many icons on various format

* Mon Aug  7 2000 Vincent Saugey <vince@mandrakesoft.com> 0.86-1mdk
- Up to 0.86

* Tue Jul 25 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.85-2mdk
- macroszification
- rebuild for BM

* Fri May 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.85-1mdk
- Up to 0.85

* Mon May 15 2000 Pixel <pixel@mandrakesoft.com> 0.84-6mdk
- add buildrequires libxml

* Fri May  5 2000 Vincent Saugey <vince@mandrakesoft.com> 0.84-5mdk
- Remove locale to prevent crash

* Fri Apr 28 2000 Vincent Saugey <vince@mandrakesoft.com> 0.84-4mdk
- Add dependencie to ISO font

* Mon Apr 17 2000 Vincent Saugey <vince@mandrakesoft.com> 0.84-3mdk
- Corrected group
- Add icon

* Mon Mar 27 2000 Vincent Saugey <vince@mandrakesoft.com> 0.84-2mdk
- add menu


* Mon Mar 07 2000 Vincent Saugey <vince@mandrakesoft.com> 0.84-1mdk
- v0.84


* Mon Jan 03 2000 Lenny Cartier <lenny@mandrakesoft.com> 
- v0.83
- used srpm provided by Gwenael Letellier <gwenael@linux-mandrake.com>


* Mon Dec 20 1999 Lenny Cartier <lenny@mandrakesoft.com>
 
- bz2 archive
 
* Fri Dec 17 1999 Frederic Lepied <flepied@mandrakesoft.com>
 
- 0.82
- first mandrake version.
 
* Sun Oct 17 1999 Miles Lott <milos@insync.net>
 
- Build for 0.80
- added version string to setup line
 
* Sun Sep 05 1999 James Henstridge <james@daa.com.au>
 
- added $(prefix)/share/dia to files list.
 
* Thu Apr 29 1999 Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
 
- Made %setup quiet
- Enabled build from cvs
- Removed superfluous mkdir's
- using DESTDIR and install-strip
 
* Fri Aug 28 1998 Francis J. Lacoste <francis@Contre.COM>
 
- First RPM release.