!1 Create spec file and package of python-should_dsl
From: @zhaorenhai Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
e88cdca421
66
python-should_dsl.spec
Normal file
66
python-should_dsl.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
Summary: Should assertions in Python in as clear and readable a way as possible
|
||||||
|
Name: python-should_dsl
|
||||||
|
Version: 2.1.2
|
||||||
|
Release: 6
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/nsi-iff/should-dsl
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/s/should_dsl/should_dsl-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
|
%description
|
||||||
|
The goal of Should-DSL is to write should expectations in Python in as clear
|
||||||
|
and readable a way as possible, using "almost" natural language (limited -
|
||||||
|
sometimes - by the Python language constraints).
|
||||||
|
|
||||||
|
%package -n python3-should_dsl
|
||||||
|
Summary: Should assertions in Python in as clear and readable a way as possible
|
||||||
|
%{?python_provide:%python_provide python3-should_dsl}
|
||||||
|
|
||||||
|
%description -n python3-should_dsl
|
||||||
|
The goal of Should-DSL is to write should expectations in Python in as clear
|
||||||
|
and readable a way as possible, using "almost" natural language (limited -
|
||||||
|
sometimes - by the Python language constraints).
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n should_dsl-%{version}
|
||||||
|
|
||||||
|
# Remove bundled egg-info
|
||||||
|
rm -rf should_dsl.egg-info
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
# run_all_examples.py references non-existent files and hence fails
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} run_examples.py README.rst
|
||||||
|
|
||||||
|
%files -n python3-should_dsl
|
||||||
|
%license LICENSE
|
||||||
|
%doc CONTRIBUTORS README.rst
|
||||||
|
%{python3_sitelib}/should_dsl/
|
||||||
|
%{python3_sitelib}/should_dsl-%{version}-py3.*.egg-info/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Jan 30 2021 zhaorenhai <zhaorenhai@hotmail.com> - 2.1.2-6
|
||||||
|
- Init spec from fedora project.
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.2-3
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Dec 12 2019 Paul Howarth <paul@city-fan.org> - 2.1.2-1
|
||||||
|
- Initial RPM version
|
||||||
4
python-should_dsl.yaml
Normal file
4
python-should_dsl.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: nsi-iff/should-dsl
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
BIN
should_dsl-2.1.2.tar.gz
Normal file
BIN
should_dsl-2.1.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user