|
|
efc52f |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
efc52f |
%bcond_with python2
|
|
|
efc52f |
%bcond_without python3
|
|
|
efc52f |
%else
|
|
|
efc52f |
%bcond_without python2
|
|
|
efc52f |
%bcond_with python3
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%global pypi_name XStatic-Angular-FileUpload
|
|
|
efc52f |
|
|
|
efc52f |
Name: python-%{pypi_name}
|
|
|
efc52f |
Version: 12.0.4.0
|
|
|
efc52f |
Release: 18%{?dist}
|
|
|
efc52f |
Summary: Angular-FileUpload JavaScript library (XStatic packaging standard)
|
|
|
efc52f |
|
|
|
efc52f |
License: MIT
|
|
|
efc52f |
URL: https://github.com/danialfarid/ng-file-upload
|
|
|
efc52f |
Source0: https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
efc52f |
# PyPi source states License: (same as Angular-FileUpload)
|
|
|
efc52f |
Source1: https://raw.githubusercontent.com/danialfarid/ng-file-upload/master/LICENSE
|
|
|
efc52f |
BuildArch: noarch
|
|
|
efc52f |
|
|
|
efc52f |
%description
|
|
|
efc52f |
Angular-FileUpload JavaScript library packaged
|
|
|
efc52f |
for setuptools (easy_install) / pip.
|
|
|
efc52f |
|
|
|
efc52f |
Lightweight Angular directive to upload files.
|
|
|
efc52f |
|
|
|
efc52f |
%if %{with python2}
|
|
|
efc52f |
%package -n python2-%{pypi_name}
|
|
|
efc52f |
Summary: Angular-FileUpload JavaScript library (XStatic packaging standard)
|
|
|
efc52f |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
efc52f |
|
|
|
efc52f |
BuildRequires: python2-devel
|
|
|
efc52f |
BuildRequires: python2-setuptools
|
|
|
efc52f |
|
|
|
efc52f |
Requires: python2-XStatic
|
|
|
efc52f |
Requires: xstatic-angular-fileupload-common
|
|
|
efc52f |
|
|
|
efc52f |
%description -n python2-%{pypi_name}
|
|
|
efc52f |
Angular-FileUpload JavaScript library packaged
|
|
|
efc52f |
for setuptools (easy_install) / pip.
|
|
|
efc52f |
|
|
|
efc52f |
Lightweight Angular directive to upload files.
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%package -n xstatic-angular-fileupload-common
|
|
|
efc52f |
Summary: Angular-FileUpload (XStatic packaging standard) JavaScript library
|
|
|
efc52f |
|
|
|
efc52f |
BuildRequires: web-assets-devel
|
|
|
efc52f |
Requires: web-assets-filesystem
|
|
|
efc52f |
|
|
|
efc52f |
%description -n xstatic-angular-fileupload-common
|
|
|
efc52f |
Angular-FileUpload JavaScript library packaged
|
|
|
efc52f |
for setuptools (easy_install) / pip.
|
|
|
efc52f |
|
|
|
efc52f |
This package contains the javascript files.
|
|
|
efc52f |
|
|
|
efc52f |
%if %{with python3}
|
|
|
efc52f |
%package -n python3-%{pypi_name}
|
|
|
efc52f |
Summary: Angular-FileUpload JavaScript library (XStatic packaging standard)
|
|
|
efc52f |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
efc52f |
|
|
|
efc52f |
BuildRequires: python3-devel
|
|
|
efc52f |
BuildRequires: python3-setuptools
|
|
|
efc52f |
|
|
|
efc52f |
Requires: python3-XStatic
|
|
|
efc52f |
Requires: xstatic-angular-fileupload-common
|
|
|
efc52f |
|
|
|
efc52f |
%description -n python3-%{pypi_name}
|
|
|
efc52f |
Angular-FileUpload JavaScript library packaged
|
|
|
efc52f |
for setuptools (easy_install) / pip.
|
|
|
efc52f |
|
|
|
efc52f |
Lightweight Angular directive to upload files.
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%prep
|
|
|
efc52f |
%setup -q -n %{pypi_name}-%{version}
|
|
|
efc52f |
cp %{SOURCE1} .
|
|
|
efc52f |
|
|
|
efc52f |
# patch to use webassets dir
|
|
|
efc52f |
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_fileupload'|" xstatic/pkg/angular_fileupload/__init__.py
|
|
|
efc52f |
|
|
|
efc52f |
%build
|
|
|
efc52f |
%if %{with python2}
|
|
|
efc52f |
%py2_build
|
|
|
efc52f |
%endif
|
|
|
efc52f |
%if %{with python3}
|
|
|
efc52f |
%py3_build
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%install
|
|
|
efc52f |
%if %{with python2}
|
|
|
efc52f |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
efc52f |
|
|
|
efc52f |
# Move static files
|
|
|
efc52f |
mkdir -p %{buildroot}/%{_jsdir}/angular_fileupload
|
|
|
efc52f |
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/angular_fileupload/data/* %{buildroot}/%{_jsdir}/angular_fileupload/
|
|
|
efc52f |
rmdir %{buildroot}/%{python2_sitelib}/xstatic/pkg/angular_fileupload/data/
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%if %{with python3}
|
|
|
efc52f |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
efc52f |
# Move static files
|
|
|
efc52f |
mkdir -p %{buildroot}/%{_jsdir}/angular_fileupload
|
|
|
efc52f |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/angular_fileupload/data/* %{buildroot}/%{_jsdir}/angular_fileupload/
|
|
|
efc52f |
rmdir %{buildroot}/%{python3_sitelib}/xstatic/pkg/angular_fileupload/data/
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%if %{with python2}
|
|
|
efc52f |
%files -n python2-%{pypi_name}
|
|
|
efc52f |
%doc README.txt
|
|
|
efc52f |
%license LICENSE
|
|
|
efc52f |
%{python2_sitelib}/xstatic/pkg/angular_fileupload
|
|
|
efc52f |
%{python2_sitelib}/XStatic_Angular_FileUpload-%{version}-py?.?.egg-info
|
|
|
efc52f |
%{python2_sitelib}/XStatic_Angular_FileUpload-%{version}-py?.?-nspkg.pth
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%files -n xstatic-angular-fileupload-common
|
|
|
efc52f |
%doc README.txt
|
|
|
efc52f |
%license LICENSE
|
|
|
efc52f |
%{_jsdir}/angular_fileupload
|
|
|
efc52f |
|
|
|
efc52f |
%if %{with python3}
|
|
|
efc52f |
%files -n python3-%{pypi_name}
|
|
|
efc52f |
%doc README.txt
|
|
|
efc52f |
%license LICENSE
|
|
|
efc52f |
%{python3_sitelib}/xstatic/pkg/angular_fileupload
|
|
|
efc52f |
%{python3_sitelib}/XStatic_Angular_FileUpload-%{version}-py%{python3_version}.egg-info
|
|
|
efc52f |
%{python3_sitelib}/XStatic_Angular_FileUpload-%{version}-py%{python3_version}-nspkg.pth
|
|
|
efc52f |
%endif
|
|
|
efc52f |
|
|
|
efc52f |
%changelog
|
|
|
efc52f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-18
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-17
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 12.0.4.0-16
|
|
|
efc52f |
- Rebuilt for Python 3.9
|
|
|
efc52f |
|
|
|
efc52f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-15
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 12.0.4.0-14
|
|
|
efc52f |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
efc52f |
|
|
|
efc52f |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 12.0.4.0-13
|
|
|
efc52f |
- Rebuilt for Python 3.8
|
|
|
efc52f |
|
|
|
efc52f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-12
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-11
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Wed Sep 19 2018 Javier Peña <jpena@redhat.com> - 12.0.4.0-9
|
|
|
efc52f |
- Removed Python 2 package from Fedora 30+ (bz#1630333)
|
|
|
efc52f |
|
|
|
efc52f |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-9
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 12.0.4.0-8
|
|
|
efc52f |
- Rebuilt for Python 3.7
|
|
|
efc52f |
|
|
|
efc52f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-7
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 12.0.4.0-6
|
|
|
efc52f |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
efc52f |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
efc52f |
|
|
|
efc52f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-5
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.4.0-4
|
|
|
efc52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
efc52f |
|
|
|
efc52f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 12.0.4.0-3
|
|
|
efc52f |
- Rebuild for Python 3.6
|
|
|
efc52f |
|
|
|
efc52f |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.0.4.0-2
|
|
|
efc52f |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
efc52f |
|
|
|
efc52f |
* Tue May 24 2016 Javier Peña <jpena@redhat.com> - 12.0.4.0-1
|
|
|
efc52f |
- Updated to upstream version 12.0.4.0
|
|
|
efc52f |
|
|
|
efc52f |
* Mon May 23 2016 Javier Peña <jpena@redhat.com> - 1.4.0.1-2
|
|
|
efc52f |
- Updated path for javascript file
|
|
|
efc52f |
|
|
|
efc52f |
* Fri May 20 2016 Javier Peña <jpena@redhat.com> - 1.4.0.1-1
|
|
|
efc52f |
- First version
|