Blame SPECS/python-XStatic-Magic-Search.spec

89a0eb
%global pypi_name XStatic-Magic-Search
89a0eb
89a0eb
Name:           python-%{pypi_name}
89a0eb
Version:        0.2.5.1
89a0eb
Release:        16%{?dist}
89a0eb
Summary:        Magic-Search (XStatic packaging standard)
89a0eb
89a0eb
License:        ASL 2.0
89a0eb
URL:            https://github.com/eucalyptus/magic-search
89a0eb
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
89a0eb
BuildArch:      noarch
89a0eb
89a0eb
%description
89a0eb
MagicSearch is an AngularJS directive that provides a UI for both faceted
89a0eb
filtering and as-you-type filtering. It is intended for filtering tables,
89a0eb
such as an AngularJS smart-table, but it can be used in any situation
89a0eb
where you can provide it with facets/options and consume its events.
89a0eb
89a0eb
%package -n python3-%{pypi_name}
89a0eb
BuildRequires:  python3-devel
89a0eb
BuildRequires:  python3-setuptools
89a0eb
BuildRequires:  web-assets-devel
89a0eb
89a0eb
Requires:       python3-XStatic
89a0eb
Requires:       XStatic-Magic-Search-common = %{version}-%{release}
89a0eb
89a0eb
Summary:        Magic-Search (XStatic packaging standard)
89a0eb
%{?python_provide:%python_provide python3-%{pypi_name}}
89a0eb
89a0eb
%description -n python3-%{pypi_name}
89a0eb
MagicSearch is an AngularJS directive that provides a UI for both faceted
89a0eb
filtering and as-you-type filtering. It is intended for filtering tables,
89a0eb
such as an AngularJS smart-table, but it can be used in any situation
89a0eb
where you can provide it with facets/options and consume its events.
89a0eb
89a0eb
%package -n XStatic-Magic-Search-common
89a0eb
Summary:        Xstatic-Magic-Search common files
89a0eb
Requires:       web-assets-filesystem
89a0eb
%description -n XStatic-Magic-Search-common
89a0eb
Xstatic-Magic-Search common files
89a0eb
89a0eb
%prep
89a0eb
%autosetup -n %{pypi_name}-%{version}
89a0eb
89a0eb
# patch to use webassets dir
89a0eb
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/magic_search'|" xstatic/pkg/magic_search/__init__.py
89a0eb
89a0eb
%build
89a0eb
%py3_build
89a0eb
89a0eb
%install
89a0eb
%py3_install
89a0eb
mkdir -p %{buildroot}/%{_jsdir}/magic_search
89a0eb
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/magic_search/data/magic_search.* %{buildroot}/%{_jsdir}/magic_search
89a0eb
89a0eb
%files -n python3-%{pypi_name}
89a0eb
%doc README.txt
89a0eb
%{python3_sitelib}/xstatic/pkg/magic_search
89a0eb
%{python3_sitelib}/XStatic_Magic_Search-%{version}-py%{python3_version}.egg-info
89a0eb
%{python3_sitelib}/XStatic_Magic_Search-%{version}-py%{python3_version}-nspkg.pth
89a0eb
89a0eb
%files -n XStatic-Magic-Search-common
89a0eb
%{_jsdir}/magic_search
89a0eb
89a0eb
89a0eb
%changelog
89a0eb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-16
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
89a0eb
89a0eb
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-15
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
89a0eb
89a0eb
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.5.1-14
89a0eb
- Rebuilt for Python 3.9
89a0eb
89a0eb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-13
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
89a0eb
89a0eb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.5.1-12
89a0eb
- Rebuilt for Python 3.8.0rc1 (#1748018)
89a0eb
89a0eb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.5.1-11
89a0eb
- Rebuilt for Python 3.8
89a0eb
89a0eb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-10
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
89a0eb
89a0eb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-9
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
89a0eb
89a0eb
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.5.1-8
89a0eb
- Subpackage python2-XStatic-Magic-Search has been removed
89a0eb
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
89a0eb
89a0eb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-7
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
89a0eb
89a0eb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.5.1-6
89a0eb
- Rebuilt for Python 3.7
89a0eb
89a0eb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-5
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
89a0eb
89a0eb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-4
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
89a0eb
89a0eb
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5.1-3
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
89a0eb
89a0eb
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5.1-2
89a0eb
- Rebuild for Python 3.6
89a0eb
89a0eb
* Wed Aug 31 2016 Matthias Runge <mrunge@redhat.com> - 0.2.5.1-1
89a0eb
- update package, add python3 subpackage (rhbz#1210069)
89a0eb
89a0eb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0.1-4
89a0eb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
89a0eb
89a0eb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0.1-3
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
89a0eb
89a0eb
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0.1-2
89a0eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
89a0eb
89a0eb
>>>>>>> f5864c96ae5709602069a2b35170e0ec84cea720
89a0eb
* Mon Mar 23 2015 Matthias Runge <mrunge@redhat.com> - 0.2.0.1-1
89a0eb
- Initial package. (rhbz#1204779)