File drgeo.spec of Package drgeo
#
# spec file for package drgeo (Version 1.1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: drgeo
Summary: Interactive Geometry Program
Url: http://www.ofset.org/drgeo
Version: 1.1.0
Release: 231
License: GPL v2 or later
Group: Productivity/Graphics/CAD
BuildRequires: fdupes gcc-c++ libglade2-devel perl-XML-Parser
%if 0%{?suse_version} < 1030
BuildRequires: guile
%else
BuildRequires: guile-devel
Requires: %{name}-lang = %{version}
%endif
Source0: %{name}-%{version}.tar.bz2
Source1: drgeo.desktop
Patch: %{name}-%{version}.patch
Patch2: %{name}-%{version}-gcc4.patch
Patch3: %{name}-%{version}-overstrike.patch
Patch4: %{name}-%{version}-random_return_data.patch
Patch5: drgeo-1.1.0-czech.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An interactive geometry program that allows the construction of
interactive geometric figures. It is oriented towards education.
Authors:
--------
Hilaire Fernandes <hilaire@seul.org>
Arturo Espinosa <arturo@nuclecu.unam.mx>
%if 0%{?suse_version} > 1020
%lang_package
%endif
%prep
%setup -q
%patch
%patch2 -p1
%patch3
%patch4
%patch5
%build
rename no nb po/no.*
sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure > configure.tmp && \
mv configure.tmp configure && chmod u+x configure
%configure
%__make %{?jobs:-j%jobs} -k
%install
%makeinstall
install -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/applications/drgeo.desktop
mkdir -p $RPM_BUILD_ROOT/usr/share/TeXmacs/plugin
cp -pr $RPM_BUILD_ROOT/usr/share/texmacs/TeXmacs/plugins $RPM_BUILD_ROOT/usr/share/TeXmacs/plugins
rm -rf $RPM_BUILD_ROOT/usr/share/texmacs
%find_lang %{name}
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} > 1020
%files lang -f %{name}.lang
%files
%else
%files -f %{name}.lang
%endif
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO NEWS
%_bindir/*
%_datadir/applications/%name.desktop
%_datadir/pixmaps/*
%_datadir/drgeo
%_datadir/TeXmacs
%changelog
* Sun May 04 2008 lrupp@suse.de
- fix czech translation by Adrian Gunis (bgo#517967)
- build on older distros
* Thu Aug 09 2007 maw@suse.de
- Fix the -lang subpackage.
* Wed Aug 08 2007 mauro@suse.de
- Split out a -lang subpackage
- Add %%fdupes stuff
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Fri Oct 13 2006 aj@suse.de
- Add guile-devel to buildrequires.
* Fri Oct 13 2006 ro@suse.de
- add gmp-devel to buildreq (guile)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Nov 24 2005 lmichnovic@suse.cz
- fixed overstrike in code which obsoletes a part of previous patch.
The rest has been renamed as drgeo-1.1.0-random_return_data.patch
* Wed Nov 23 2005 yxu@suse.de
- fixed uninitialized variables
* Wed Oct 05 2005 lmichnovic@suse.cz
- upgrade to version 1.1.0
* Tue Apr 26 2005 yxu@suse.de
- fixed for GCC4
* Tue Dec 14 2004 hvogel@suse.de
- fix desktop file
* Wed Oct 27 2004 mmj@suse.de
- locale rename no to nb
* Mon Jun 14 2004 ro@suse.de
- added return types to some non-void functions
* Tue Jan 20 2004 ltinkl@suse.cz
- fix build
- correctly package the TeXmacs plugin
- use find_lang macro
* Mon Jan 19 2004 ltinkl@suse.cz
- update to 0.9.11
- build fixes
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Mon Sep 01 2003 adrian@suse.de
- add desktop file
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Wed Apr 25 2001 cihlar@suse.cz
- compile with $RPM_OPT_FLAGS
* Wed Apr 04 2001 cihlar@suse.cz
- fixed to compile on axp
* Wed Jan 24 2001 cihlar@suse.cz
- fixed to compile on ia64
* Sun Nov 05 2000 ro@suse.de
- fixed neededforbuild
* Tue Oct 31 2000 cihlar@suse.cz
- bzipped sources
* Tue May 16 2000 cihlar@suse.cz
- created package