Blame bst-external.spec

7e48d40
# FIXME: Test won't work offline
7e48d40
%bcond_with check
7e48d40
7e48d40
%global sysname bst_external
7e48d40
f3e23be
Name:           bst-external
6dda533
Version:        0.21.0
5284e16
Release:        3%{?dist}
7e48d40
Summary:        Additional BuildStream plugins
7e48d40
7e48d40
License:        LGPLv2+
7e48d40
URL:            https://gitlab.com/BuildStream/bst-external
f3e23be
Source0:        %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
22ab532
22ab532
# Switch from pytoml to toml
22ab532
Patch1:         %{url}/-/merge_requests/131.patch
22ab532
7e48d40
BuildArch:      noarch
7e48d40
7e48d40
BuildRequires:  python3-devel
7e48d40
BuildRequires:  python3dist(pytest-runner)
7e48d40
BuildRequires:  python3dist(pytest)
7e48d40
BuildRequires:  python3dist(requests)
7e48d40
BuildRequires:  python3dist(setuptools-scm)
7e48d40
BuildRequires:  python3dist(setuptools)
22ab532
BuildRequires:  python3dist(toml)
7e48d40
%if %{with check}
7e48d40
# FIXME: Packaged was retired in Fedora
7e48d40
# * https://bugzilla.redhat.com/show_bug.cgi?id=1839789
7e48d40
# * https://gitlab.com/BuildStream/bst-external/-/issues/44
7e48d40
#BuildRequires:  python3dist(pep8)
7e48d40
#BuildRequires:  python3dist(pytest-pep8)
7e48d40
7e48d40
#BuildRequires:  python3dist(pytest-env)
7e48d40
BuildRequires:  python3dist(buildstream)
7e48d40
BuildRequires:  python3dist(coverage)
7e48d40
BuildRequires:  python3dist(pytest-cov)
7e48d40
BuildRequires:  python3dist(pytest-datafiles)
7e48d40
BuildRequires:  python3dist(pytest-xdist)
7e48d40
BuildRequires:  python3dist(ruamel.yaml)
7e48d40
%endif
7e48d40
7e48d40
%description
7e48d40
A collection of BuildStream plugins that don't fit in with the core plugins for
7e48d40
whatever reason.
7e48d40
7e48d40
7e48d40
%prep
7e48d40
%autosetup -p1
7e48d40
sed 's|coverage == 4.4.0|coverage|' -i setup.py
7e48d40
7e48d40
7e48d40
%build
7e48d40
%py3_build
7e48d40
7e48d40
7e48d40
%install
7e48d40
%py3_install
7e48d40
7e48d40
7e48d40
%if %{with check}
7e48d40
%check
7e48d40
export PATH=%{buildroot}%{_bindir}:${PATH} 
7e48d40
export PYTHONPATH=%{buildroot}%{python3_sitelib}
7e48d40
%{python3} -m pytest -v
7e48d40
%endif
7e48d40
7e48d40
7e48d40
%files
7e48d40
%license LICENSE
7e48d40
%doc README.rst NEWS MAINTAINERS
7e48d40
%{python3_sitelib}/%{sysname}/
7e48d40
%{python3_sitelib}/BuildStream_external-%{version}-py%{python3_version}.egg-info
7e48d40
7e48d40
7e48d40
%changelog
5284e16
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-3
5284e16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5284e16
22ab532
* Tue Jan 12 2021 Miro HronĨok <mhroncok@redhat.com> - 0.21.0-2
22ab532
- Switch from pytoml to toml
22ab532
- Fixes: rhbz#1899488
22ab532
6dda533
* Sat Oct  3 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.21.0-1
6dda533
- Update to 0.21.0
6dda533
eb3252f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-3
eb3252f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
eb3252f
7e48d40
* Mon May 25 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.20.0-2
7e48d40
- Adapt for Fedora packaging guidelines
7e48d40
7e48d40
* Sun Mar 01 2020 gasinvein <gasinvein@gmail.com> - 0.20.0-1
7e48d40
- new version
7e48d40
7e48d40
* Wed Nov 27 2019 gasinvein <gasinvein@gmail.com> - 0.19.1-1
7e48d40
- new version
7e48d40
7e48d40
* Fri Sep 27 2019 gasinvein <gasinvein@gmail.com> - 0.18.0-1
7e48d40
- new version
7e48d40
7e48d40
* Sat Jun  8 2019 gasinvein <gasinvein@gmail.com>
7e48d40
- Initial package