Blame SPECS/python-XStatic-JS-Yaml.spec

978837
%global pypi_name XStatic-JS-Yaml
978837
978837
Name:           python-%{pypi_name}
978837
Version:        3.8.1.0
978837
Release:        11%{?dist}
978837
Summary:        JS-Yaml (XStatic packaging standard)
978837
978837
License:        MIT
978837
URL:            https://github.com/nodeca/js-yaml
978837
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
978837
BuildArch:      noarch
978837
978837
%description
978837
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.
978837
978837
This package is intended to be used by any project that needs these files.
978837
978837
It intentionally does not provide any extra code except some metadata
978837
nor has any extra requirements.
978837
978837
978837
%package -n xstatic-js-yaml-common
978837
Summary:        %{summary}
978837
978837
BuildRequires:  web-assets-devel
978837
Requires:       web-assets-filesystem
978837
978837
%description -n xstatic-js-yaml-common
978837
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.
978837
978837
This package is intended to be used by any project that needs these files.
978837
978837
It intentionally does not provide any extra code except some metadata
978837
nor has any extra requirements.
978837
978837
This package contains the JavaScript files.
978837
978837
978837
%package -n python3-%{pypi_name}
978837
Summary:        %{summary}
978837
978837
BuildRequires:  python3-devel
978837
BuildRequires:  python3-setuptools
978837
978837
Requires:       python3-XStatic
978837
Requires:       xstatic-js-yaml-common
978837
978837
%{?python_provide:%python_provide python3-%{pypi_name}}
978837
978837
%description -n python3-%{pypi_name}
978837
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.
978837
978837
This package is intended to be used by any project that needs these files.
978837
978837
It intentionally does not provide any extra code except some metadata
978837
nor has any extra requirements.
978837
978837
This package provides Python 3 build of %{pypi_name}.
978837
978837
978837
%prep
978837
%autosetup -n %{pypi_name}-%{version}
978837
# Remove bundled egg-info
978837
rm -rf %{pypi_name}.egg-info
978837
978837
# Patch to use webassets directory
978837
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/js_yaml'|" xstatic/pkg/js_yaml/__init__.py
978837
978837
978837
%build
978837
%py3_build
978837
978837
978837
%install
978837
%py3_install
978837
mkdir -p %{buildroot}/%{_jsdir}/js_yaml
978837
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/js_yaml/data/js-yaml.js %{buildroot}/%{_jsdir}/js_yaml
978837
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/js_yaml/data/
978837
978837
978837
%files -n xstatic-js-yaml-common
978837
%doc README.txt
978837
%{_jsdir}/js_yaml
978837
978837
%files -n python3-%{pypi_name}
978837
%doc README.txt
978837
%{python3_sitelib}/xstatic/pkg/js_yaml
978837
%{python3_sitelib}/XStatic_JS_Yaml-%{version}-py3.*.egg-info
978837
%{python3_sitelib}/XStatic_JS_Yaml-%{version}-py3.*-nspkg.pth
978837
978837
978837
%changelog
978837
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-11
978837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
978837
978837
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-10
978837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
978837
978837
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.1.0-9
978837
- Rebuilt for Python 3.9
978837
978837
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-8
978837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
978837
978837
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.1.0-7
978837
- Rebuilt for Python 3.8.0rc1 (#1748018)
978837
978837
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.1.0-6
978837
- Rebuilt for Python 3.8
978837
978837
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-5
978837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
978837
978837
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-4
978837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
978837
978837
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 3.8.1.0-3
978837
- Python2 binary package has been removed
978837
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
978837
978837
* Sun Jul 29 2018 Miro Hrončok <mhroncok@redhat.com> - 3.8.1.0-2
978837
- Remove bogus (build)requires from the common section
978837
- Fix changelog entry syntax in 3.8.1.0-1
978837
978837
* Fri Jul 13 2018 Radomir Dopieralski <rdopiera@redhat.com> - 3.8.1.0-1
978837
- Initial package