Blob Blame History Raw
%global srcname json2table

%{?python_enable_dependency_generator}

Name:           python-%{srcname}
Version:        1.1.5
Release:        2%{?dist}
Summary:        Python module to convert JSOn to a HTML table

License:        MIT
URL:            https://github.com/latture/json2table
Source0:        %{pypi_source}
BuildArch:      noarch

%description
This is a simple Python package that allows a JSON object to be converted
to HTML. It provides a convert function that accepts a dict instance and
returns a string of converted HTML.

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-beautifulsoup4

%description -n python3-%{srcname}
This is a simple Python package that allows a JSON object to be converted
to HTML. It provides a convert function that accepts a dict instance and
returns a string of converted HTML.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/

%changelog
* Thu Apr 25 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.5-2
- Add missing license file

* Sun Apr 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.5-1
- Initial package for Fedora