2011-11-09 00:20:17 +00:00
|
|
|
# Copyright 2011, Red Hat
|
|
|
|
|
2017-12-01 21:49:29 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
2014-11-13 21:50:31 +00:00
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2011-12-07 01:25:14 +00:00
|
|
|
%global oname configshell-fb
|
2011-11-09 00:20:17 +00:00
|
|
|
|
|
|
|
Name: python-configshell
|
2013-07-24 01:30:04 +00:00
|
|
|
License: ASL 2.0
|
2011-11-09 00:20:17 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: A framework to implement simple but nice CLIs
|
2011-11-22 02:09:35 +00:00
|
|
|
Epoch: 1
|
2018-01-26 22:17:54 +00:00
|
|
|
Version: 1.1.fb24
|
2018-01-29 12:29:42 +00:00
|
|
|
Release: 2%{?dist}
|
2011-12-07 01:25:14 +00:00
|
|
|
URL: https://github.com/agrover/configshell-fb
|
2013-11-01 18:28:02 +00:00
|
|
|
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
|
2011-11-09 00:20:17 +00:00
|
|
|
BuildArch: noarch
|
2018-01-29 12:29:42 +00:00
|
|
|
BuildRequires: python2-devel python2-setuptools
|
2011-11-09 00:20:17 +00:00
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-06-23 17:26:59 +00:00
|
|
|
BuildRequires: python3-devel python3-setuptools
|
2014-11-13 21:50:31 +00:00
|
|
|
%endif
|
|
|
|
|
2017-08-19 13:39:57 +00:00
|
|
|
%global _description\
|
|
|
|
A framework to implement simple but nice configuration-oriented\
|
2011-11-09 00:20:17 +00:00
|
|
|
command-line interfaces.
|
|
|
|
|
2017-08-19 13:39:57 +00:00
|
|
|
%description %_description
|
|
|
|
|
|
|
|
%package -n python2-configshell
|
|
|
|
Summary: %summary
|
2018-01-29 12:29:42 +00:00
|
|
|
Requires: python2-pyparsing python2-urwid python2-six
|
2017-08-19 13:39:57 +00:00
|
|
|
%{?python_provide:%python_provide python2-configshell}
|
|
|
|
|
|
|
|
%description -n python2-configshell %_description
|
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-configshell
|
|
|
|
Summary: A framework to implement simple but nice CLIs
|
|
|
|
Group: System Environment/Libraries
|
2014-11-15 00:54:55 +00:00
|
|
|
Requires: python3-pyparsing python3-urwid
|
2014-11-13 21:50:31 +00:00
|
|
|
|
|
|
|
%description -n python3-configshell
|
|
|
|
A framework to implement simple but nice configuration-oriented
|
|
|
|
command-line interfaces.
|
|
|
|
%endif
|
|
|
|
|
2011-11-09 00:20:17 +00:00
|
|
|
%prep
|
2012-07-31 17:34:32 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
2011-11-09 00:20:17 +00:00
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
2011-11-09 00:20:17 +00:00
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2011-11-09 00:20:17 +00:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2015-06-23 17:26:59 +00:00
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
2014-11-13 21:50:31 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2017-08-19 13:39:57 +00:00
|
|
|
%files -n python2-configshell
|
2012-07-31 17:34:32 +00:00
|
|
|
%{python_sitelib}/*
|
2013-07-24 01:30:04 +00:00
|
|
|
%doc COPYING README.md
|
2011-11-09 00:20:17 +00:00
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-configshell
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%doc COPYING README.md
|
|
|
|
%endif
|
|
|
|
|
2011-11-09 00:20:17 +00:00
|
|
|
%changelog
|
2018-01-29 12:29:42 +00:00
|
|
|
* Mon Jan 29 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:1.1.fb24-2
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-01-26 22:17:54 +00:00
|
|
|
* Fri Jan 26 2018 Andy Grover <agrover@redhat.com> - 1:1.1.fb24-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove patch configshell-fix-term.patch
|
|
|
|
|
2017-12-01 21:49:29 +00:00
|
|
|
* Fri Dec 01 2017 Troy Dawson <tdawson@redhat.com> - 1:1.1.fb23-5
|
|
|
|
- Update spec file conditionals
|
|
|
|
|
2017-08-19 13:39:57 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.1.fb23-4
|
|
|
|
- Python 2 binary package renamed to python2-configshell
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-07-27 09:55:19 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.fb23-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-23 19:23:48 +00:00
|
|
|
* Tue May 23 2017 Andy Grover <agrover@redhat.com> - 1:1.1.fb23-2
|
|
|
|
- Add patch configshell-fix-term.patch
|
|
|
|
|
2017-03-01 23:35:05 +00:00
|
|
|
* Wed Mar 1 2017 Andy Grover <agrover@redhat.com> - 1:1.1.fb23-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-02-11 08:37:56 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.fb20-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1:1.1.fb20-3
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-07-19 09:16:26 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb20-2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-04-08 01:06:39 +00:00
|
|
|
* Thu Apr 7 2016 Andy Grover <agrover@redhat.com> - 1:1.1.fb20-1
|
|
|
|
- New upstream release
|
|
|
|
|
2016-02-04 19:15:23 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.fb19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-12-01 20:07:56 +00:00
|
|
|
* Tue Dec 1 2015 Andy Grover <agrover@redhat.com> - 1:1.1.fb19-1
|
|
|
|
- New upstream release
|
|
|
|
|
2015-11-10 15:28:37 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb18-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-10-27 22:54:32 +00:00
|
|
|
* Tue Oct 27 2015 Andy Grover <agrover@redhat.com> - 1:1.1.fb18-2
|
|
|
|
- Rebuild
|
|
|
|
|
2015-06-23 17:26:59 +00:00
|
|
|
* Tue Jun 23 2015 Andy Grover <agrover@redhat.com> - 1:1.1.fb18-1
|
|
|
|
- New upstream release
|
|
|
|
- Add dependency on python-six instead of 2to3
|
|
|
|
|
2015-06-18 18:48:34 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-13 19:23:39 +00:00
|
|
|
* Tue Jan 13 2015 Andy Grover <agrover@redhat.com> - 1:1.1.fb17-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-12-02 18:12:56 +00:00
|
|
|
* Tue Dec 2 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb16-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-11-15 00:54:55 +00:00
|
|
|
* Fri Nov 14 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb14-3
|
|
|
|
- Add python 3 dependencies to Python 3 package
|
|
|
|
|
2014-11-13 21:50:31 +00:00
|
|
|
* Thu Nov 13 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb14-2
|
|
|
|
- Add Python 3 subpackage
|
|
|
|
|
2014-08-28 18:39:53 +00:00
|
|
|
* Thu Aug 28 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb14-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-06-07 19:11:17 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-25 22:33:09 +00:00
|
|
|
* Tue Mar 25 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb13-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-03-14 18:07:48 +00:00
|
|
|
* Fri Mar 14 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb12-1
|
|
|
|
- New upstream release
|
|
|
|
|
2014-01-06 20:15:55 +00:00
|
|
|
* Mon Jan 6 2014 Andy Grover <agrover@redhat.com> - 1:1.1.fb11-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-11-01 18:28:02 +00:00
|
|
|
* Fri Nov 1 2013 Andy Grover <agrover@redhat.com> - 1:1.1.fb10-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-09-12 17:43:52 +00:00
|
|
|
* Thu Sep 12 2013 Andy Grover <agrover@redhat.com> - 1:1.1.fb9-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove dependency on python-simpleparse in favor of pyparsing
|
|
|
|
- Remove BuildRequires
|
|
|
|
|
2013-08-04 06:48:29 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-24 01:30:04 +00:00
|
|
|
* Tue Jul 23 2013 Andy Grover <agrover@redhat.com> - 1:1.1.fb8-1
|
|
|
|
- New upstream release
|
|
|
|
- License now Apache 2.0
|
|
|
|
- README.md instead of README
|
|
|
|
|
2013-02-26 23:21:45 +00:00
|
|
|
* Tue Feb 26 2013 Andy Grover <agrover@redhat.com> - 1:1.1.fb7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-02-14 19:09:48 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-04 22:29:20 +00:00
|
|
|
* Fri Jan 4 2013 Andy Grover <agrover@redhat.com> - 1:1.1.fb6-1
|
|
|
|
- New upstream release
|
|
|
|
- Update source URL
|
|
|
|
|
2012-07-31 17:44:03 +00:00
|
|
|
* Tue Jul 31 2012 Andy Grover <agrover@redhat.com> - 1:1.1.fb5-1
|
2012-07-31 17:34:32 +00:00
|
|
|
- New upstream release
|
|
|
|
- Update Source URL to proper tarball
|
|
|
|
|
2012-07-21 05:28:37 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.fb4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-10 21:35:30 +00:00
|
|
|
* Tue Jan 10 2012 Andy Grover <agrover@redhat.com> - 1:1.1.fb4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-11-01 18:28:02 +00:00
|
|
|
* Wed Dec 14 2011 Andy Grover <agrover@redhat.com> - 1:1.1.fb3-1
|
2011-12-14 23:42:04 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2011-12-13 22:50:07 +00:00
|
|
|
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 1:1.1.fb2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-12-07 01:25:14 +00:00
|
|
|
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 1:1.1.fb1-1
|
|
|
|
- New upstream source and release
|
|
|
|
- Remove patches:
|
|
|
|
* python-configshell-remove-epydoc-dep.patch
|
|
|
|
* python-configshell-git-version.patch
|
|
|
|
|
2011-11-22 06:02:51 +00:00
|
|
|
* Mon Nov 21 2011 Andy Grover <agrover@redhat.com> - 1:1.1-2
|
|
|
|
- Properly update changelog
|
|
|
|
- Sync version with upstream, Epoch used
|
|
|
|
- Change Source URL to intermediate github repo
|
|
|
|
|
2011-11-09 00:20:17 +00:00
|
|
|
* 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
|