Blob Blame History Raw
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

%global shortname pycha

Name:           python-pycha
ersion:        0.6.0
Release:        1%{?dist}
Summary:        A library for drawing charts with Python and Cairo

Group:          Development/Libraries
License:        LGPLv3+
Source1:        chavier.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  desktop-file-utils
BuildRequires:  pycairo
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
Requires:       pycairo

Pycha is a very simple Python package for drawing charts using the great Cairo
library. Its goals are:
    * Lightweight
    * Simple to use
    * Nice looking with default values
    * Customization 
It won't try to draw any possible chart on earth but draw the most common ones

%package -n     chavier
Summary:        GUI application for exploring the pycha library
Group:          Development/Tools
Requires:       %{name} = %{version}-%{release}

%description -n chavier
Chavier allows the user to generate random data sets or use existing data to
test the various options that %{shortname} provides in an interactive GUI
application. Various chart types can be plotted and their options adjusted
from the interface.

%setup -q -n %{shortname}-%{version}

%{__python} build

rm -rf %{buildroot}
%{__python} install -O1 --skip-build --root %{buildroot}

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

rm -rf %{buildroot}

%{__python} test

%doc examples/ COPYING AUTHORS README.txt

%files -n chavier

* Sun Jan 16 2011 Ionuț C. Arțăriși <> - 0.6.0-1
- new upstream release 0.6.0

* Sat Aug  7 2010 Ionuț C. Arțăriși <> - 0.5.3-1
- new upstream bugfix release

* Thu Jul 22 2010 David Malcolm <> - 0.5.2-3
- Rebuilt for

* Sat Mar 27 2010 Ionuț C. Arțăriși <> - 0.5.2-2
- changed license from LGPLv3 to LGPLv3+
- fixed spelling error in %%description
- capitalized chavier package %%summary
- added pycairo Requires
- removed tests

* Tue Mar 23 2010 Ionuț C. Arțăriși <> - 0.5.2-1
- first Fedora release