|
|
5e2266 |
%{?python_enable_dependency_generator}
|
|
|
5e2266 |
|
|
|
5e2266 |
%global pypi_name XStatic-tv4
|
|
|
5e2266 |
|
|
|
5e2266 |
Name: python-%{pypi_name}
|
|
|
5e2266 |
Version: 1.2.7.0
|
|
|
5e2266 |
Release: 2%{?dist}
|
|
|
5e2266 |
Summary: tv4 JavaScript library (XStatic packaging standard)
|
|
|
5e2266 |
|
|
|
5e2266 |
License: Public Domain
|
|
|
5e2266 |
URL: https://github.com/geraintluff/tv4/
|
|
|
5e2266 |
Source0: https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
5e2266 |
Source1: https://raw.githubusercontent.com/geraintluff/tv4/master/LICENSE.txt
|
|
|
5e2266 |
BuildArch: noarch
|
|
|
5e2266 |
|
|
|
5e2266 |
%description
|
|
|
5e2266 |
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
|
|
|
5e2266 |
for setuptools (easy_install) / pip.
|
|
|
5e2266 |
|
|
|
5e2266 |
Use json-schema draft v4 to validate simple values and complex objects
|
|
|
5e2266 |
using a rich validation vocabulary.
|
|
|
5e2266 |
|
|
|
5e2266 |
%package -n xstatic-tv4-common
|
|
|
5e2266 |
Summary: tv4 JavaScript library (XStatic packaging standard)
|
|
|
5e2266 |
|
|
|
5e2266 |
BuildRequires: web-assets-devel
|
|
|
5e2266 |
Requires: web-assets-filesystem
|
|
|
5e2266 |
|
|
|
5e2266 |
%description -n xstatic-tv4-common
|
|
|
5e2266 |
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
|
|
|
5e2266 |
for setuptools (easy_install) / pip.
|
|
|
5e2266 |
|
|
|
5e2266 |
This package contains the javascript files.
|
|
|
5e2266 |
|
|
|
5e2266 |
%package -n python3-%{pypi_name}
|
|
|
5e2266 |
Summary: tv4 JavaScript library (XStatic packaging standard)
|
|
|
5e2266 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
5e2266 |
|
|
|
5e2266 |
BuildRequires: python3-devel
|
|
|
5e2266 |
BuildRequires: python3-setuptools
|
|
|
5e2266 |
|
|
|
5e2266 |
Requires: python3-XStatic
|
|
|
5e2266 |
Requires: xstatic-tv4-common = %{version}-%{release}
|
|
|
5e2266 |
|
|
|
5e2266 |
%description -n python3-%{pypi_name}
|
|
|
5e2266 |
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
|
|
|
5e2266 |
for setuptools (easy_install) / pip.
|
|
|
5e2266 |
|
|
|
5e2266 |
Use json-schema draft v4 to validate simple values and complex objects
|
|
|
5e2266 |
using a rich validation vocabulary.
|
|
|
5e2266 |
|
|
|
5e2266 |
%prep
|
|
|
5e2266 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
5e2266 |
cp %{SOURCE1} LICENSE
|
|
|
5e2266 |
|
|
|
5e2266 |
# patch to use webassets dir
|
|
|
5e2266 |
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/tv4'|" xstatic/pkg/tv4/__init__.py
|
|
|
5e2266 |
|
|
|
5e2266 |
%build
|
|
|
5e2266 |
%{__python3} setup.py build
|
|
|
5e2266 |
|
|
|
5e2266 |
%install
|
|
|
5e2266 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
5e2266 |
# Move static files
|
|
|
5e2266 |
mkdir -p %{buildroot}/%{_jsdir}/tv4
|
|
|
5e2266 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.async-jquery.js %{buildroot}/%{_jsdir}/tv4
|
|
|
5e2266 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.js %{buildroot}/%{_jsdir}/tv4
|
|
|
5e2266 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.min.js %{buildroot}/%{_jsdir}/tv4
|
|
|
5e2266 |
|
|
|
5e2266 |
rmdir %{buildroot}/%{python3_sitelib}/xstatic/pkg/tv4/data/
|
|
|
5e2266 |
|
|
|
5e2266 |
%files -n xstatic-tv4-common
|
|
|
5e2266 |
%doc README.txt
|
|
|
5e2266 |
%license LICENSE
|
|
|
5e2266 |
%{_jsdir}/tv4
|
|
|
5e2266 |
|
|
|
5e2266 |
%files -n python3-%{pypi_name}
|
|
|
5e2266 |
%doc README.txt
|
|
|
5e2266 |
%license LICENSE
|
|
|
5e2266 |
%{python3_sitelib}/xstatic/pkg/tv4
|
|
|
5e2266 |
%{python3_sitelib}/XStatic_tv4-%{version}-py?.?.egg-info
|
|
|
5e2266 |
%{python3_sitelib}/XStatic_tv4-%{version}-py?.?-nspkg.pth
|
|
|
5e2266 |
|
|
|
5e2266 |
%changelog
|
|
|
5e2266 |
* Fri Feb 21 2020 Yatin Karel <ykarel@redhat.com> - 1.2.7.0-2
|
|
|
5e2266 |
- Drop python2 sub package
|
|
|
5e2266 |
|
|
|
5e2266 |
* Thu Sep 27 2018 Alfredo Moralejo <amoralej@redhat.com> - 1.2.7.0-1
|
|
|
5e2266 |
- Rebuild in Fedora copr
|
|
|
5e2266 |
|
|
|
5e2266 |
* Fri Aug 5 2016 David Moreau Simard <dmsimard@redhat.com> - 1.2.7.0-0.1.pre_review
|
|
|
5e2266 |
- First version
|