216 lines
6.6 KiB
RPMSpec
216 lines
6.6 KiB
RPMSpec
|
%define with_python 1
|
||
|
%define with_cairo 0
|
||
|
%define majver %(echo %version | cut -d. -f 1-2)
|
||
|
Name: dia
|
||
|
Version: 0.97.2
|
||
|
Release: 1mamba
|
||
|
Summary: Dia is a gtk+ based diagram creation program
|
||
|
Group: Graphical Desktop/Applications/Graphics
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://live.gnome.org/Dia
|
||
|
Source: http://ftp.gnome.org/pub/gnome/sources/%{name}/%{majver}/%{name}-%{version}.tar.xz
|
||
|
##ftp://ftp.gnome.org/pub/gnome/sources/dia/%{version}/dia-%{version}.tar.bz2
|
||
|
Patch0: %{name}-0.95-use_kde_browser.patch
|
||
|
Patch1: %{name}-0.95-cve_2006_2480.patch
|
||
|
Patch2: %{name}-0.95-formatstring.patch
|
||
|
# FC patches
|
||
|
Patch3: %{name}-0.96.1-dtdfix.patch
|
||
|
Patch4: %{name}-0.95-pre6-help.patch
|
||
|
Patch5: %{name}-0.97.2-glib-2.31.patch
|
||
|
Patch6: dia-0.97.2-x86_64-wmf-cast.patch
|
||
|
License: GPL
|
||
|
BuildRequires: intltool >= 0.21
|
||
|
BuildRequires: perl >= 5.8.0
|
||
|
BuildRequires: pkgconfig >= 0.19
|
||
|
BuildRequires: libart_lgpl-devel >= 2.0.0
|
||
|
BuildRequires: gettext-devel >= 0.14.0
|
||
|
BuildRequires: xmlto >= 0.0.18
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: GConf-devel
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libart_lgpl-devel
|
||
|
BuildRequires: libatk-devel
|
||
|
BuildRequires: libbonobo-devel
|
||
|
BuildRequires: libbonoboui-devel
|
||
|
%if %with_cairo
|
||
|
BuildRequires: libcairo-devel
|
||
|
%endif
|
||
|
BuildRequires: libfontconfig-devel
|
||
|
BuildRequires: libfreetype-devel >= 2.0.9
|
||
|
BuildRequires: libglib-devel >= 2.0.0
|
||
|
BuildRequires: libgnomecanvas-devel
|
||
|
BuildRequires: libgnome-devel
|
||
|
BuildRequires: libgnome-keyring-devel
|
||
|
BuildRequires: libgnomeui-devel
|
||
|
BuildRequires: libgnome-vfs-devel
|
||
|
BuildRequires: libgtk-devel >= 2.0.0
|
||
|
BuildRequires: libICE-devel
|
||
|
BuildRequires: libpango-devel >= 1.1.5
|
||
|
BuildRequires: libpng-devel >= 1.2.8
|
||
|
BuildRequires: libpopt-devel
|
||
|
BuildRequires: libSM-devel
|
||
|
BuildRequires: libxml2-devel >= 2.0.0
|
||
|
BuildRequires: libxslt-devel >= 1.1.15
|
||
|
BuildRequires: libz-devel >= 1.2.3
|
||
|
BuildRequires: ORBit2-devel
|
||
|
%if %with_python
|
||
|
BuildRequires: pygtk
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: python >= 1.5.2
|
||
|
BuildRequires: libpython-devel
|
||
|
BuildRequires: python-pyxml >= 0.8.4
|
||
|
%endif
|
||
|
Requires: %{_bindir}/gnome-open
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Dia is designed to be much like the commercial Windows program 'Visio'.
|
||
|
It can be used to draw many different kinds of diagrams.
|
||
|
It currently has special objects to help draw entity relationship diagrams, UML diagrams, flowcharts, network diagrams, and simple circuits.
|
||
|
It is also possible to add support for new shapes by writing simple XML files, using a subset of SVG to draw the shape.
|
||
|
|
||
|
%package -n python-%{name}
|
||
|
Summary: Python bindings for %{name}
|
||
|
Group: Development/Bindings
|
||
|
Requires: %{name} = %{version}
|
||
|
Requires: python
|
||
|
Requires: pygtk
|
||
|
|
||
|
%description -n python-%{name}
|
||
|
Dia is designed to be much like the commercial Windows program 'Visio'.
|
||
|
It can be used to draw many different kinds of diagrams.
|
||
|
It currently has special objects to help draw entity relationship diagrams, UML diagrams, flowcharts, network diagrams, and simple circuits.
|
||
|
It is also possible to add support for new shapes by writing simple XML files, using a subset of SVG to draw the shape.
|
||
|
|
||
|
This package contains the dia plugins for python.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
# note: remove this comment to use konqueror instead of gnome-open
|
||
|
#%patch0 -p1
|
||
|
#%patch1 -p1 -b .cve_2006_2480
|
||
|
#%patch2 -p1 -b .formatstring
|
||
|
#%patch3 -p1 -b .dtdfix
|
||
|
%patch4 -p1 -b .help
|
||
|
%patch5 -p1
|
||
|
%ifarch x86_64
|
||
|
%patch6 -p1
|
||
|
# FIXME: workaround
|
||
|
sed -i "s|\${py_lib}/libpython|lib64/libpython|" configure
|
||
|
%endif
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--enable-gnome \
|
||
|
%if %with_cairo
|
||
|
--with-cairo \
|
||
|
%endif
|
||
|
%if %with_python
|
||
|
--with-python \
|
||
|
%endif
|
||
|
|
||
|
%make
|
||
|
|
||
|
#xmlto -o doc/en/manual html doc/en/dia.xml
|
||
|
#xmlto -o doc/pl/manual html doc/pl/dia.xml
|
||
|
# source broken
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||
|
%makeinstall
|
||
|
|
||
|
rm -fr %{buildroot}%{_datadir}/gnome/help/dia
|
||
|
|
||
|
|
||
|
install -d %{buildroot}%{_datadir}/gnome/help/dia/en
|
||
|
cp -a doc/en/* %{buildroot}%{_datadir}/gnome/help/dia/en
|
||
|
cp -a doc/en/graphics %{buildroot}%{_datadir}/gnome/help/dia/en/
|
||
|
|
||
|
ln -s en %{buildroot}%{_datadir}/gnome/help/dia/C
|
||
|
|
||
|
# FIXME: link needed to see help pages from dia
|
||
|
ln -s %{_datadir}/gnome/help/dia %{buildroot}%{_datadir}/dia/help
|
||
|
|
||
|
%{find_lang} %{name}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/*
|
||
|
%dir %{_libdir}/dia
|
||
|
%{_libdir}/dia/*
|
||
|
%{_datadir}/applications/*
|
||
|
%dir %{_datadir}/dia
|
||
|
#%{_datadir}/dia/dia_logo.png
|
||
|
#%dir %{_datadir}/dia/images
|
||
|
#%{_datadir}/dia/images/*
|
||
|
%dir %{_datadir}/dia/ui
|
||
|
%{_datadir}/dia/ui/*-ui.xml
|
||
|
%dir %{_datadir}/dia/shapes
|
||
|
%{_datadir}/dia/shapes/*
|
||
|
%dir %{_datadir}/dia/sheets
|
||
|
%{_datadir}/dia/sheets/*
|
||
|
%dir %{_datadir}/dia/xslt
|
||
|
%{_datadir}/dia/xslt/*
|
||
|
%dir %{_datadir}/dia/help
|
||
|
%{_datadir}/dia/dia-splash.png
|
||
|
%{_datadir}/icons/hicolor/*/apps/dia.png
|
||
|
%{_datadir}/icons/hicolor/scalable/apps/dia.svg
|
||
|
%{_datadir}/omf/dia/dia-C.omf
|
||
|
%{_datadir}/omf/dia/dia-eu.omf
|
||
|
%{_datadir}/omf/dia/dia-fr.omf
|
||
|
%{_datadir}/omf/dia/dia-pl.omf
|
||
|
%dir %{_datadir}/doc/dia
|
||
|
%lang(en) %dir %{_datadir}/doc/dia/en
|
||
|
%lang(en) %{_datadir}/doc/dia/en/*
|
||
|
%lang(eu) %dir %{_datadir}/doc/dia/eu
|
||
|
%lang(eu) %{_datadir}/doc/dia/eu/*
|
||
|
%lang(fr) %dir %{_datadir}/doc/dia/fr
|
||
|
%lang(fr) %{_datadir}/doc/dia/fr/*
|
||
|
%lang(pl) %dir %{_datadir}/doc/dia/pl
|
||
|
%lang(pl) %{_datadir}/doc/dia/pl/*
|
||
|
%{_mandir}/fr/man1/dia.1.gz
|
||
|
|
||
|
%dir %{_datadir}/gnome/help/dia
|
||
|
%{_datadir}/gnome/help/dia/*
|
||
|
%{_datadir}/mime-info/*
|
||
|
#%{_datadir}/pixmaps/*
|
||
|
%{_mandir}/man1/dia.*
|
||
|
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
||
|
|
||
|
%if %with_python
|
||
|
%files -n python-%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_datadir}/dia/python
|
||
|
%{_datadir}/dia/python-startup.py
|
||
|
%{_datadir}/dia/python/*
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Sat Jul 21 2012 Automatic Build System <autodist@mambasoft.it> 0.97.2-1mamba
|
||
|
- update to 0.97.2
|
||
|
|
||
|
* Sun Jul 20 2008 gil <puntogil@libero.it> 0.96.1-1mamba
|
||
|
- update to 0.96.1
|
||
|
- removed patch 2
|
||
|
- edit: patch 3. URL, Source
|
||
|
|
||
|
* Fri May 26 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.95-1qilnx
|
||
|
- update to version 0.95 by autospec
|
||
|
- drop gcc4, new-cairo, fix against CVE-2005-2966 (merged upstream)
|
||
|
- security fixes: format strings vulnerabilities CVE-2006-[1550,2453,2480]
|
||
|
|
||
|
* Thu Oct 20 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.94-2qilnx
|
||
|
- security fix CAN-2005-2966
|
||
|
- patch for gcc4
|
||
|
- rebuild with python support (new package python-%{name})
|
||
|
- do not use netscape as default browser, use konqueror
|
||
|
- build help pages in html format
|
||
|
|
||
|
* Thu Jun 16 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.94-1qilnx
|
||
|
- package created by autospec
|