Blame SPECS/python-XStatic-JQuery-quicksearch.spec

ec9c75
%global pypi_name XStatic-JQuery.quicksearch
ec9c75
%global pkgname XStatic-JQuery-quicksearch
ec9c75
ec9c75
Name:           python-%{pkgname}
ec9c75
Version:        2.0.3.1
ec9c75
Release:        21%{?dist}
ec9c75
Summary:        JQuery.quicksearch (XStatic packaging standard)
ec9c75
ec9c75
License:        MIT
ec9c75
URL:            http://plugins.jquery.com/jquery.quicksearch/
ec9c75
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
ec9c75
BuildArch:      noarch
ec9c75
ec9c75
%description
ec9c75
JavaScript library packaged for setuptools (easy_install) / pip.
ec9c75
ec9c75
This package is intended to be used by any project that needs these files.
ec9c75
ec9c75
It intentionally does not provide any extra code except some metadata
ec9c75
nor has any extra requirements.
ec9c75
ec9c75
%package -n python3-%{pkgname}
ec9c75
Summary:        %{summary}
ec9c75
ec9c75
BuildRequires:  python3-devel
ec9c75
BuildRequires:  python3-setuptools
ec9c75
ec9c75
Requires:       python3-XStatic
ec9c75
Requires:       xstatic-jquery-quicksearch-common
ec9c75
ec9c75
%{?python_provide:%python_provide python3-%{pkgname}}
ec9c75
ec9c75
%description -n python3-%{pkgname}
ec9c75
JavaScript library packaged for setuptools (easy_install) / pip.
ec9c75
ec9c75
This package is intended to be used by any project that needs these files.
ec9c75
ec9c75
It intentionally does not provide any extra code except some metadata
ec9c75
nor has any extra requirements.
ec9c75
ec9c75
This package provides Python 3 build of %{pkgname}.
ec9c75
ec9c75
%package -n xstatic-jquery-quicksearch-common
ec9c75
Summary:        %{summary}
ec9c75
ec9c75
BuildRequires:  web-assets-devel
ec9c75
Requires:       web-assets-filesystem
ec9c75
ec9c75
%description -n xstatic-jquery-quicksearch-common
ec9c75
JavaScript library packaged for setuptools (easy_install) / pip.
ec9c75
ec9c75
This package is intended to be used by any project that needs these files.
ec9c75
ec9c75
It intentionally does not provide any extra code except some metadata
ec9c75
nor has any extra requirements.
ec9c75
ec9c75
This package contains the javascript files.
ec9c75
ec9c75
%prep
ec9c75
%autosetup -n %{pypi_name}-%{version}
ec9c75
# patch to use webassets dir
ec9c75
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_quicksearch'|" xstatic/pkg/jquery_quicksearch/__init__.py
ec9c75
ec9c75
%build
ec9c75
%py3_build
ec9c75
ec9c75
%install
ec9c75
%py3_install
ec9c75
ec9c75
mkdir -p %{buildroot}%{_jsdir}/jquery_quicksearch
ec9c75
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_quicksearch/data/jquery.quicksearch.js %{buildroot}%{_jsdir}/jquery_quicksearch
ec9c75
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_quicksearch/data/
ec9c75
# fix execute flags for js
ec9c75
chmod 644 %{buildroot}%{_jsdir}/jquery_quicksearch/jquery.quicksearch.js
ec9c75
ec9c75
%files -n python3-%{pkgname}
ec9c75
%doc README.txt
ec9c75
%{python3_sitelib}/xstatic/pkg/jquery_quicksearch
ec9c75
%{python3_sitelib}/XStatic_JQuery.quicksearch-%{version}-py%{python3_version}.egg-info
ec9c75
%{python3_sitelib}/XStatic_JQuery.quicksearch-%{version}-py%{python3_version}-nspkg.pth
ec9c75
ec9c75
%files -n xstatic-jquery-quicksearch-common
ec9c75
%doc README.txt
ec9c75
%{_jsdir}/jquery_quicksearch
ec9c75
ec9c75
%changelog
ec9c75
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-21
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ec9c75
ec9c75
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-20
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ec9c75
ec9c75
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.3.1-19
ec9c75
- Rebuilt for Python 3.9
ec9c75
ec9c75
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-18
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ec9c75
ec9c75
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.3.1-17
ec9c75
- Rebuilt for Python 3.8.0rc1 (#1748018)
ec9c75
ec9c75
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.3.1-16
ec9c75
- Rebuilt for Python 3.8
ec9c75
ec9c75
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-15
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ec9c75
ec9c75
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-14
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ec9c75
ec9c75
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.3.1-13
ec9c75
- Subpackage python2-XStatic-JQuery-quicksearch has been removed
ec9c75
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
ec9c75
ec9c75
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-12
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ec9c75
ec9c75
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.3.1-11
ec9c75
- Rebuilt for Python 3.7
ec9c75
ec9c75
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-10
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ec9c75
ec9c75
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-9
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ec9c75
ec9c75
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-8
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ec9c75
ec9c75
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.3.1-7
ec9c75
- Rebuild for Python 3.6
ec9c75
ec9c75
* Wed Oct 12 2016 Jan Beran <jberan@redhat.com> - 2.0.3.1-6
ec9c75
- Provides a Python 3 subpackage
ec9c75
ec9c75
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3.1-5
ec9c75
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ec9c75
ec9c75
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3.1-4
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ec9c75
ec9c75
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3.1-3
ec9c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ec9c75
ec9c75
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 2.0.3.1-2
ec9c75
- change BR to python2-devel (rhbz#1134900)
ec9c75
ec9c75
* Thu Aug 28 2014 Matthias Runge <mrunge@redhat.com> - 2.0.3.1-1
ec9c75
- Initial package.