|
 |
8e4a2b |
|
|
 |
8e4a2b |
%define srcname cram
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
Name: python-cram
|
|
 |
8e4a2b |
Version: 0.7
|
|
 |
8e4a2b |
Release: 8%{?dist}
|
|
 |
8e4a2b |
Summary: Simple testing framework for command line applications
|
|
 |
8e4a2b |
License: GPLv2+
|
|
 |
8e4a2b |
URL: https://bitheap.org/cram/
|
|
 |
8e4a2b |
Source0: %{pypi_source}
|
|
 |
8e4a2b |
BuildArch: noarch
|
|
 |
8e4a2b |
BuildRequires: python3-devel
|
|
 |
8e4a2b |
BuildRequires: /usr/bin/pathfix.py
|
|
 |
8e4a2b |
BuildRequires: /usr/bin/pyflakes
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%description
|
|
 |
8e4a2b |
Cram tests look like snippets of interactive shell sessions. Cram runs each
|
|
 |
8e4a2b |
command and compares the command output in the test with the command's actual
|
|
 |
8e4a2b |
output.
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%package -n python3-cram
|
|
 |
8e4a2b |
Summary: %{summary}
|
|
 |
8e4a2b |
Requires: python3
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%description -n python3-cram
|
|
 |
8e4a2b |
Cram tests look like snippets of interactive shell sessions. Cram runs each
|
|
 |
8e4a2b |
command and compares the command output in the test with the command's actual
|
|
 |
8e4a2b |
output.
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%prep
|
|
 |
8e4a2b |
%autosetup -n %{srcname}-%{version}
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
# Fix shebang - cram install adds -s so we avoid adding %%py3_shbang_opts here
|
|
 |
8e4a2b |
pathfix.py -pni "%python3" scripts/cram
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
# remove shebangs
|
|
 |
8e4a2b |
find . -type f -name '*.py' \
|
|
 |
8e4a2b |
-exec sed -i -e '/^#!/{1D}' {} \;
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%build
|
|
 |
8e4a2b |
%py3_build
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%install
|
|
 |
8e4a2b |
%py3_install
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%check
|
|
 |
8e4a2b |
# dist.t needs check-manifest which isn't packaged
|
|
 |
8e4a2b |
# pep8.t needs pep8 which has been retired
|
|
 |
8e4a2b |
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHON=%python3 scripts/cram -v tests
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%files -n python3-%{srcname}
|
|
 |
8e4a2b |
%doc NEWS.rst README.rst TODO.md
|
|
 |
8e4a2b |
%license COPYING.txt
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%{python3_sitelib}/*
|
|
 |
8e4a2b |
%{_bindir}/cram
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
%changelog
|
|
 |
8e4a2b |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-8
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-7
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7-6
|
|
 |
8e4a2b |
- Rebuilt for Python 3.9
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-5
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sat Nov 23 2019 Orion Poplawski <orion@nwra.com> - 0.7-4
|
|
 |
8e4a2b |
- Fix cram shebang
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Fri Nov 22 2019 Orion Poplawski <orion@nwra.com> - 0.7-3
|
|
 |
8e4a2b |
- Fix license (GPLv2+)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Nov 21 2019 Orion Poplawski <orion@nwra.com> - 0.7-2
|
|
 |
8e4a2b |
- Run tests properly in mock
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Nov 21 2019 Orion Poplawski <orion@nwra.com> - 0.7-1
|
|
 |
8e4a2b |
- Update to 0.7
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-22
|
|
 |
8e4a2b |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-21
|
|
 |
8e4a2b |
- Rebuilt for Python 3.8
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-20
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-19
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6-18
|
|
 |
8e4a2b |
- Subpackage python2-cram has been removed
|
|
 |
8e4a2b |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-17
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-16
|
|
 |
8e4a2b |
- Rebuilt for Python 3.7
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-15
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-14
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-13
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6-12
|
|
 |
8e4a2b |
- Rebuild for Python 3.6
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-11
|
|
 |
8e4a2b |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-10
|
|
 |
8e4a2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Mon Dec 07 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-9
|
|
 |
8e4a2b |
- Use %%{summary} macro in py2/py3 subpackages (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
- Drop old py3 minimum version numbers (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Mon Dec 07 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-8
|
|
 |
8e4a2b |
- BR: python2-devel instead of python-devel (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
- rm Group tag from py3 subpackage (thanks zbyszek@in.waw.pl) (rhbz#1179484)
|
|
 |
8e4a2b |
- Only package a single executable, /usr/bin/cram (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sun Dec 06 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-7
|
|
 |
8e4a2b |
- Correct Summary for python3-cram subpackage (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
- rm py3dir macro (thanks zbyszek@in.waw.pl) (rhbz#1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sun Dec 06 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-6
|
|
 |
8e4a2b |
- Update for latest Python packaging guidelines (thanks zbyszek@in.waw.pl)
|
|
 |
8e4a2b |
(rhbz#1179484)
|
|
 |
8e4a2b |
- rm Group tag
|
|
 |
8e4a2b |
- drop support for el6
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Sat Apr 04 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-5
|
|
 |
8e4a2b |
- Use %%license macro (RHBZ #1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Thu Jan 08 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-4
|
|
 |
8e4a2b |
- Correct License tag (RHBZ #1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Wed Jan 07 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-3
|
|
 |
8e4a2b |
- Do not ship examples files in package. These are more like test files.
|
|
 |
8e4a2b |
(RHBZ #1179484)
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Tue Jan 06 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-2
|
|
 |
8e4a2b |
- Fix bad copy-and-paste for %%description in python3 subpackage
|
|
 |
8e4a2b |
- Fix shebangs to satisfy rpmlint's non-executable-script errors
|
|
 |
8e4a2b |
|
|
 |
8e4a2b |
* Tue Jan 06 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.6-1
|
|
 |
8e4a2b |
- initial package
|