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