%define docver 1.5 Name: drgeo Version: 1.1.0 Release: 3mamba Summary: Interactive educational geometry software Summary(it): Software per lo studio dinamico della geometria euclidea Group: Graphical Desktop/Applications/Educational Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.ofset.org/drgeo Source0: http://switch.dl.sourceforge.net/sourceforge/ofset/%{name}-%{version}.tar.gz Source1: http://documentation.ofset.org/drgeo/c/drgenius.pdf Source2: drgenius-it.pdf Source3: guidadrgeo-it.pdf Source4: http://switch.dl.sourceforge.net/sourceforge/ofset/drgeo-doc-%{docver}.tar.gz Source5: drgeo-icon.png # hack to display help pages using konqueror instead of dillo Patch: %{name}-1.1.0-help_browser.patch Patch1: %{name}-1.1.0-gcc4.patch Patch2: %{name}-1.1.0-gcc45.patch Patch3: %{name}-1.1.0-random_return_data.patch License: GPL BuildRequires: perl BuildRequires: perl-XML-Parser BuildRequires: pkgconfig >= 0.15.0 BuildRequires: gettext >= 0.14.4 BuildRequires: libX11-devel BuildRequires: libXcursor-devel BuildRequires: libXext-devel BuildRequires: libXrandr-devel BuildRequires: libXrender-devel BuildRequires: libXrender-devel BuildRequires: libXinerama-devel BuildRequires: libXft-devel BuildRequires: libXfixes-devel BuildRequires: libcairo-devel >= 1.0.0 BuildRequires: libatk-devel >= 1.6.1 BuildRequires: libpango-devel >= 1.8.0 BuildRequires: libgtk-devel >= 2.6.7 BuildRequires: libglib-devel >= 2.6.0 BuildRequires: libxml2-devel >= 2.6.17 BuildRequires: libglade-devel >= 2.4.0 BuildRequires: libfreetype-devel >= 2.1.9 BuildRequires: libguile-devel >= 1.8 BuildRequires: ImageMagick BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Dr. Geo is a interactive geometry GUI application. It allows one to create geometric figure plus the interactive manipulation of such figure in respect with their geometric constraints. It is useable in teaching situation with students from primary or secondary level. %package doc Group: Documentation Summary: Documentation for %{name} %description doc Dr. Geo is a interactive geometry GUI application. It allows one to create geometric figure plus the interactive manipulation of such figure in respect with their geometric constraints. It is useable in teaching situation with students from primary or secondary level. This package contains the documentation for %{name} in PDF format. %prep %setup -q -a4 #%patch -p1 %patch1 -p1 %patch2 -p0 %build %configure %make cd drgeo-doc-%{docver} %configure #cd it #make drgenius.html #make drgenius.pdf %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall %makeinstall -C drgeo-doc-%{docver} %{find_lang} %{name} # install documentation install -d pck_pdfdoc cp %{SOURCE1} %{SOURCE2} %{SOURCE3} pck_pdfdoc # install icon for menu install -d %{buildroot}%{_datadir}/pixmaps/ cp %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/drgeo.png convert -geometry 16x16 %{buildroot}%{_datadir}/pixmaps/drgeo.png \ %{buildroot}%{_datadir}/pixmaps/drgeo_16x16.png rm -f %{buildroot}%{_datadir}/pixmaps/drgeo.png # create the system menu entry install -d %{buildroot}%{_datadir}/applications/ cat > %{buildroot}%{_datadir}/applications/drgeo.desktop << EOF [Desktop Entry] Name=Dr.Geo Name[fr]=Dr Geo GenericName=Dr.Geo Math Tool GenericName[it]=Strumenti matematici di Dr. Geo GenericName[es]=Herramienta Matemática de Dr. Geo GenericName[fr]=Outil mathématique Dr. Geo Exec=drgeo Icon=%{_datadir}/pixmaps/drgeo_16x16.png Terminal=0 Type=Application X-KDE-StartupNotify=false Categories=GNOME;Application;Education;Math; EOF %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/drgeo %{_bindir}/tm_drgeo %{_datadir}/applications/drgeo.desktop %{_datadir}/pixmaps/drgeo_16x16.png %dir %{_datadir}/drgeo %{_datadir}/drgeo/encode/* %{_datadir}/drgeo/examples/* %{_datadir}/drgeo/glade/* %{_datadir}/drgeo/scm/* %{_datadir}/drgeo/help/c/* %exclude %{_datadir}/drgeo/help/es/* %exclude %{_datadir}/drgeo/help/fr/* %{_datadir}/drgeo/help/it/* %exclude %{_datadir}/drgeo/help/nl/* %{_datadir}/pixmaps/*.png %dir %{_datadir}/texmacs/TeXmacs/plugins/drgeo %{_datadir}/texmacs/TeXmacs/plugins/drgeo/* %files doc %defattr(-,root,root) %doc pck_pdfdoc/*.pdf %changelog * Thu Jul 15 2010 Silvan Calarco 1.1.0-3mamba - added build patches from https://build.opensuse.org/package/files?package=drgeo&project=openSUSE%3A11.1 * Sun Sep 16 2007 Silvan Calarco 1.1.0-2mamba - rebuild against libguile 1.8 * Tue Oct 25 2005 Davide Madrisan 1.1.0-1qilnx - update to version 1.1.0 by autospec - add a patch to display help pages using konqueror instead of dillo - new menu icon with drgeo logo * Fri Oct 21 2005 Alessandro Ramazzina 1.0.0-2qilnx - adddes new file desktop and icon * Tue Apr 26 2005 Davide Madrisan 1.0.0-1qilnx - package created by autospec