Blame SPECS/python-XStatic-Angular-Vis.spec

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