Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3baee62e9 | ||
|
|
39a4d66190 | ||
|
|
b60d024322 | ||
|
|
a2f6246683 | ||
|
|
d6d4db2aa5 | ||
|
|
d94699c0df | ||
|
|
7f4bd7bdb2 | ||
|
|
352a1282b5 |
1 changed files with 9 additions and 8 deletions
|
|
@ -35,13 +35,11 @@ BuildArch: noarch
|
||||||
%package -n python3-mmtf
|
%package -n python3-mmtf
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
BuildRequires: python3-msgpack
|
BuildRequires: python3-msgpack
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-numpy
|
BuildRequires: python3-numpy
|
||||||
%endif
|
%endif
|
||||||
%{?python_provide:%python_provide python3-mmtf}
|
|
||||||
Requires: python3-msgpack
|
Requires: python3-msgpack
|
||||||
|
|
||||||
%description -n python3-mmtf
|
%description -n python3-mmtf
|
||||||
|
|
@ -50,22 +48,25 @@ Requires: python3-msgpack
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pname}-%{version}
|
%setup -q -n %{pname}-%{version}
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files -l mmtf
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
|
%pyproject_check_import
|
||||||
|
|
||||||
%pytest mmtf/tests/codec_tests.py
|
%pytest mmtf/tests/codec_tests.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-mmtf
|
%files -n python3-mmtf -f %{pyproject_files}
|
||||||
%license LICENSE.txt
|
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%{python3_sitelib}/mmtf_python-%{version}-py%{python3_version}.egg-info
|
|
||||||
%{python3_sitelib}/mmtf
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue