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

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