%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-AppTools
Version: 3.3.0
Release: 1%{?dist}
Summary: Enthough Tool Suite Application Tools
Group: Development/Libraries
License: BSD and LGPLv2+
URL: http://pypi.python.org/pypi/AppTools/
#md5=e67d9b40a9f88f62246a8248faede6c5
Source0: http://pypi.python.org/packages/source/A/AppTools/AppTools-%{version}.tar.gz
Source1: README.fedora.%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools, python-devel, python-setupdocs, python-sphinx, unzip
Requires: python-TraitsGUI, python-EnthoughtBase
%description
The AppTools project includes a set of packages that Enthought has
found useful in creating a number of applications. They implement
functionality that is commonly needed by many applications
* enthought.appscripting: Framework for scripting applications.
* enthought.help: Provides a plugin for displaying documents and
examples and running demos in Envisage Workbench applications.
* enthought.io: Provides an abstraction for files and folders in a
file system.
* enthought.naming: Manages naming contexts, supporting non-string
data types and scoped preferences
* enthought.permissions: Supports limiting access to parts of an
application unless the user is appropriately authorised (not
full-blown security).
and many more.
%prep
%setup -q -n AppTools-%{version}
rm -rf AppTools.egg-info
%build
%{__python} setup.py build
unzip docs/html.zip
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
sed -i 's/\.dev$//g' $RPM_BUILD_ROOT/%{python_sitelib}/AppTools-%{version}-*.egg-info/requires.txt
cp %{SOURCE1} README.fedora
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc *.txt examples html README.fedora
%{python_sitelib}/*
%changelog
* Sun Jan 31 2010 Rakesh Pandit <rakesh@fedoraproject.org> 3.3.0-1
- Updated to 3.3.0
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Jun 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.2.0-1
- Updated
* Thu Jun 04 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-4
- Added README.fedora
* Fri Apr 24 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-3
- Removed AppTools.egg-info directory
* Fri Mar 06 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-2
- Included examples in %%doc, added python-TraitsGUI & python-EnthoughtBase
- as Requires. Added html folder.
* Tue Jan 27 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-1
- Initial package