LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-pychart.spec of Package python-pychart (Project spins:invis)

%define version 1.39
#%define release 1
%define modname pychart
Name: 	 	python-pychart
Summary:	Python library for data graphs and charts 	
Version: 	%{version}
Release: 	13.2

Source:		pychart-%{version}.tar.bz2
URL:		http://home.gna.org/pychart/
License:	GPL
Group:		Development/Libraries/Python
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:	python-devel
BuildArch:      noarch

%description
PyChart is a Python library for creating high quality Encapsulated Postscript,
PDF, PNG, or SVG charts. It currently supports line plots, bar plots,
range-fill plots, and pie charts. Because it is based on Python, you can make
full use of Python's scripting power.

%prep
%setup -q -n %modname-%version
chmod 644 `find -type f`

%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build


%install
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES


%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README demos doc COPYING
%dir %py_sitedir/pychart
%dir %py_sitedir/pychart/afm
#/usr/local/lib/python*/site-packages/%name
#/usr/local/lib/python*/site-packages/PyChart-1.39-py*.egg-info

%changelog
* Tue Nov 30 2010 Bruno Friedmann <bruno@ioda.net.ch> 
- 1.39 opensuse new package
- Rebuild for new python

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 1.33-3mdk
- Rebuild for new python

* Fri Aug 8 2003 Austin Acton <aacton@yorku.ca> 1.33-2mdk
- python 2.3

* Tue Jun 10 2003 Austin Acton <aacton@yorku.ca> 1.33-1mdk
- initial package