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