%global srcname ipyxact

Name:           python-%{srcname}
Version:        0.2.4
Release:        1%{?dist}
Summary:        Python IP-Xact handling library

License:        MIT
URL:            https://github.com/olofk/ipyxact
Source0:        https://files.pythonhosted.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%description
ipyxact is a helper library that creates python structures from parsed IP-Xact
files. It is intended to make it easier to use IP-Xact files in a python
application.

%package -n     python3-%{srcname}
Summary:        %{summary}

%description -n python3-%{srcname}
ipyxact is a helper library that creates python structures from parsed IP-Xact
files. It is intended to make it easier to use IP-Xact files in a python
application.


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


%build
%{__python3} setup.py build


%install
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%check
#%{__python3} setup.py test


%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*


%changelog
* Fri Aug 23 2019 Dan Horák <dan@danny.cz> - 0.2.4
- initial Fedora version