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