python-configshell/python-configshell.spec
Andy Grover 143996bec1 Rehosted on github. Update to 1:1.1
I assumed configshell was version 1.99, like rtslib and targetcli, but
unfortunately it is not. Since we have already produced RPMs for rhel
and rawhide with 1.99, we need to increment Epoch to 1 to go back to
version 1.1, as tagged in git.

Rehost onto github. This allows us to package based on a proper tarball,
and allows intermediate upstream releases by moi. (This is necessary because
RTS will only take MIT, not AGPLv3, contributions.)

Signed-off-by: Andy Grover <agrover@redhat.com>
2011-11-21 18:09:35 -08:00

67 lines
1.8 KiB
RPMSpec

# Copyright 2011, Red Hat
%global oname configshell-fedora
Name: python-configshell
License: AGPLv3
Group: System Environment/Libraries
Summary: A framework to implement simple but nice CLIs
Epoch: 1
Version: 1.1
Release: 1%{?dist}
URL: https://github.com/agrover/configshell-fedora
Source: https://github.com/agrover/%{oname}/tarball/%{version}
Patch1: %{name}-git-version.patch
Patch2: %{name}-remove-epydoc-dep.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel epydoc python-simpleparse python-urwid
Requires: python-simpleparse python-urwid
%description
A framework to implement simple but nice configuration-oriented
command-line interfaces.
%prep
%setup -q -n agrover-%{oname}-3ba5560
%patch1 -p1
%patch2 -p1
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}
%doc COPYING README
%changelog
* Fri Sep 23 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git987b63b-5
* Rebuild
* Thu Aug 25 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git987b63b-4
- Add patch
- python-configshell-remove-epydoc-dep.patch
* Wed Aug 17 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git987b63b-3
- Address comments from spec review
- drop examples/myshell from doc, it hasn't been updated for API change
- Fully document procedure to generate source .tar.gz
- Remove "." from summary
- Remove commented-out spec todos and other cruft
* Mon Aug 1 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git987b63b-2
- Update to latest git version
- Add urwid builddep
* Tue May 10 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git987b63b-1
- Initial packaging