File python-gdchart.spec of Package python-gdchart

%define modname pygdchart
Name:           python-gdchart
URL:            http://www.nullcube.com/software/pygdchart.html
Summary:        Python interface to GDChart
Version:        0.6.1
Release:        3
License:        Other License(s), see package
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.bz2
Patch:          gcc.patch
Patch1:         long64.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
%{py_requires}
BuildRequires:  python-devel libpng-devel libjpeg-devel

%description
PyGDChart is a Python interface to the stable version of the GDChart library.

Authors:
--------
    Mike Steed <pygdchart@nullcube.com>

%prep
%setup -q -n %{modname}-%{version}
%patch -p1
%patch1 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
make PY_INCLUDE=-I%{py_incdir} 

%install
rm -rf %{buildroot}
install -D -m 0755 gdchart.so %{buildroot}%{py_sitedir}/gdchart.so

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES README TODO chart.py test.html test.py w.gif
%{py_sitedir}/gdchart.so

%changelog

* Tue Jul 04 2006 - James Oakley <jfunk@funktronics.ca> - 0.6.1-3
- Build under buildservice

* Tue May 02 2006 - James Oakley <jfunk@funktronics.ca> - 0.6.1-1
- Initial release
openSUSE Build Service is sponsored by