diff --git a/.gitignore b/.gitignore index e69de29..e7df3d2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/envisage-4.3.0.tar.gz diff --git a/python-envisage.spec b/python-envisage.spec new file mode 100644 index 0000000..3b4f12f --- /dev/null +++ b/python-envisage.spec @@ -0,0 +1,96 @@ +Name: python-envisage +Version: 4.3.0 +Release: 3%{?dist} +Summary: Extensible application framework + +# Images have different licenses. For image license breakdown check +# image_LICENSE.txt file. +# All remaining source or image files are in BSD 3-clause license +License: BSD and LGPLv2 and CC-BY-SA +URL: http://code.enthought.com/projects/envisage/ +Source0: http://www.enthought.com/repo/ets/envisage-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-sphinx +BuildRequires: python-AppTools +BuildRequires: python-traitsui + +Requires: python-AppTools +Requires: python-traitsui + +%description +Envisage is a Python-based framework for building extensible applications, +that is, applications whose functionality can be extended by adding +"plug-ins". Envisage provides a standard mechanism for features to be added +to an application, whether by the original developer or by someone else. In +fact, when you build an application using Envisage, the entire application +consists primarily of plug-ins. In this respect, it is similar to the Eclipse +and Netbeans frameworks for Java applications. + +Each plug-in is able to: + +* Advertise where and how it can be extended (its "extension points"). +* Contribute extensions to the extension points offered by other plug-ins. +* Create and share the objects that perform the real work of the application + ("services"). + +The Envisage project provides the basic machinery of the plug-in framework as +well as GUI building tools (envisage.ui). The workbench is the older way to +build GUIs from Envisage. It is now recommended to use the Task framework. + + +%package doc +Summary: Documentation for %{name} +License: BSD and CC-BY-SA + +%description doc +Documentation and examples for %{name} + + +%prep +%setup -q -n envisage-%{version} +rm -rf envisage.egg-info +find -name \*.egg -delete +# Fix line endings +sed -i -e 's/\r//' docs/source/envisage_core_documentation/*.rst +# Cleanup +find -name .gitignore -delete + + +%build +%{__python} setup.py build +cd docs +make html +# Remove empty file +rm build/html/.buildinfo + + +%install +%{__python} setup.py install --skip-build --root %{buildroot} + + +%check +%{__python} setup.py test + + +%files +%doc *.txt README.rst +%{python_sitelib}/envisage/ +%{python_sitelib}/*egg-info/ + +%files doc +%doc docs/build/html examples + + +%changelog +* Tue May 14 2013 Orion Poplawski - 4.3.0-3 +- Remove shipped egg-info and eggs + +* Tue May 7 2013 Orion Poplawski - 4.3.0-2 +- Fix line-endings, cleanup some files +- Fix license tag + +* Wed May 1 2013 Orion Poplawski - 4.3.0-1 +- Initial package diff --git a/sources b/sources index e69de29..9df24cd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +80439d265c92e2c14a680a58d7cb8f16 envisage-4.3.0.tar.gz