9c2071b
%global pypi_name admesh
9c2071b
9c2071b
Name:           python-%{pypi_name}
3f8b346
Version:        0.98.9
cfd63a0
Release:        12%{?dist}
9c2071b
Summary:        Python bindings for ADMesh, STL manipulation library
9c2071b
9c2071b
License:        GPLv2+
9c2071b
URL:            https://github.com/admesh/python-admesh
1aa6227
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
9c99243
9c99243
# https://github.com/admesh/python-admesh/issues/15
9c99243
Source1:        %{url}/raw/v%{version}/test/utils.py
9c99243
8516ee3
BuildRequires:  gcc
8516ee3
9c2071b
BuildRequires:  admesh-devel >= 0.98
1aa6227
9c2071b
BuildRequires:  python3-devel
8947dcb
BuildRequires:  python3-pytest
9c2071b
BuildRequires:  python3-setuptools
9c2071b
BuildRequires:  python3-Cython
1aa6227
BuildRequires:  python3-pytest-runner
9c2071b
9c2071b
%description
9c2071b
This module provides bindings for the ADMesh library.
9c2071b
It lets you manipulate 3D models in binary or ASCII STL
9c2071b
format and partially repair them if necessary.
9c2071b
1aa6227
%package -n     python3-%{pypi_name}
1aa6227
Summary:        Python 3 bindings for ADMesh, STL manipulation library
1aa6227
%{?python_provide:%python_provide python3-%{pypi_name}}
1aa6227
a663d49
Obsoletes:      python2-%{pypi_name} < 0.98.8-2
a663d49
Obsoletes:      python-%{pypi_name} < 0.98.8-2
a663d49
9c2071b
%description -n python3-%{pypi_name}
9c2071b
This module provides bindings for the ADMesh library.
9c2071b
It lets you manipulate 3D models in binary or ASCII STL
9c2071b
format and partially repair them if necessary.
9c2071b
9c2071b
9c2071b
%prep
9c2071b
%setup -q -n %{pypi_name}-%{version}
9c99243
cp %{SOURCE1} test/
9c2071b
9c2071b
%build
1aa6227
%py3_build
9c2071b
9c2071b
9c2071b
%install
1aa6227
%py3_install
9c2071b
9c2071b
%check
3f8b346
PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-3 -v \
3f8b346
%ifarch ppc64
3f8b346
  -k "not test_saved_equals_original_binary" # likely a bug in admesh itself
3f8b346
%endif
1aa6227
9c2071b
%files -n python3-%{pypi_name}
1aa6227
%doc README.rst
1aa6227
%license COPYING
e263630
%attr(0755,root,root) %{python3_sitearch}/%{pypi_name}.*.so
be32eb4
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
9c2071b
9c2071b
9c2071b
%changelog
cfd63a0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-12
cfd63a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cfd63a0
a21ab1d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-11
a21ab1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a21ab1d
051e8f1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.98.9-10
051e8f1
- Rebuilt for Python 3.10
051e8f1
9faeac2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-9
9faeac2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9faeac2
60605a5
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-8
60605a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
60605a5
51ded20
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-7
51ded20
- Rebuilt for Python 3.9
51ded20
31b75b9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-6
31b75b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
31b75b9
2bc6da9
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-5
2bc6da9
- Rebuilt for Python 3.8
2bc6da9
b4403ba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-4
b4403ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b4403ba
4dee2ac
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-3
4dee2ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4dee2ac
b6717c9
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-2
b6717c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b6717c9
3f8b346
* Mon Jun 25 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-1
3f8b346
- Update to 0.98.9
3f8b346
- Temporarily skip a test on ppc64
ec453db
3803cb4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-3
3803cb4
- Rebuilt for Python 3.7
3803cb4
a663d49
* Fri Mar 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-2
a663d49
- Remove legacy Python subpackage
a663d49
9c99243
* Wed Feb 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-1
9c99243
- Updated to new version 0.98.8 to fix FTBFS
9c99243
c59becb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-4
c59becb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c59becb
1772bee
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-3
1772bee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1772bee
075b629
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-2
075b629
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
075b629
1aa6227
* Thu Apr 13 2017 Miro Hrončok <mhroncok@redhat.com> - 0.98.7-1
1aa6227
- Updated to new version 0.98.7
1aa6227
- Updated to the new naming scheme
1aa6227
e55a9f2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.5-5
e55a9f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e55a9f2
b54ded1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.98.5-4
b54ded1
- Rebuild for Python 3.6
b54ded1
e5e94c8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.5-3
e5e94c8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e5e94c8
edec2ec
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.5-2
edec2ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
edec2ec
e263630
* Tue Dec 08 2015 Miro Hrončok <mhroncok@redhat.com> - 0.98.5-1
e263630
- New version 0.98.5, fix FTBFS
e263630
4b8a7ea
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.3-3
4b8a7ea
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4b8a7ea
9b37340
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.3-2
9b37340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9b37340
cf170d3
* Wed Feb 25 2015 Miro Hrončok <mhroncok@redhat.com> - 0.98.3-1
cf170d3
- New version 0.98.3
cf170d3
9c2071b
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98.1-1
9c2071b
- New version
8947dcb
- Run tests, add BR pytest
9c2071b
9c2071b
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-3
9c2071b
- Set correct executable permissions
9c2071b
- Typo in summary
9c2071b
9c2071b
* Thu Jul 31 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-2
9c2071b
- Require setuptools.
9c2071b
9c2071b
* Tue Jul 29 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-1
9c2071b
- Initial package.