File graphthing.spec of Package graphthing

#
# 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:           graphthing
Summary:        Graph Education Tool
Url:            http://graph.seul.org/
Version:        1.3.2
Release:        1
License:        GPL v2 or later
Group:          Productivity/Scientific/Math
BuildRequires:  gcc-c++ bison flex
%if 0%{?suse_version} >= 1140
BuildRequires:  wxWidgets-devel
%else
BuildRequires:  wxGTK-devel
%endif
Source0:        %{name}-%{version}.tar.bz2
Patch0:         %{name}-deprecated-hide-readonly-flag.patch
Patch1:         %{name}-install-dir.patch
Patch2:         %{name}-build-gcc.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>

%lang_package

%prep
%setup -q
%patch0
%patch1
%patch2 -p1

%build
%configure 
make CXXFLAGS="$RPM_OPT_FLAGS $(wx-config --cxxflags)"

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_mandir}/man1/graphthing.1.gz
%{_bindir}/graphthing

%changelog
openSUSE Build Service is sponsored by