Blame python-gsd.spec

c63542d
%bcond_without check
c63542d
# https://bitbucket.org/glotzer/gsd/issues/11/
c63542d
%bcond_with docs
c63542d
c63542d
%global pname gsd
c63542d
c63542d
%global desc \
c63542d
GSD (General Simulation Data) is a file format specification and a library\
c63542d
to read and write it. The package also contains a python module that reads\
c63542d
and writes hoomd schema gsd files with an easy to use syntax.\
c63542d
\
c63542d
* Efficiently store many frames of data from simulation runs.\
c63542d
* High performance file read and write.\
c63542d
* Support arbitrary chunks of data in each frame (position, orientation,\
c63542d
  type, etc...).\
c63542d
* Append frames to an existing file with a monotonically increasing frame\
c63542d
  number.\
c63542d
* Resilient to job kills.\
c63542d
* Variable number of named chunks in each frame.\
c63542d
* Variable size of chunks in each frame.\
c63542d
* Each chunk identifies data type.\
c63542d
* Common use cases: NxM arrays in double, float, int, char types.\
c63542d
* Generic use case: binary blob of N bytes.\
c63542d
* Easy to integrate into other tools with python, or a C API (< 1k lines).\
c63542d
* Fast random access to frames.
c63542d
c63542d
Name: python-gsd
15a28b2
Version: 2.1.2
15a28b2
Release: 1%{?dist}
c63542d
Summary: Read and write hoomd schema gsd files with an easy to use syntax 
c63542d
License: BSD
6c4c123
URL: https://gsd.readthedocs.io/
6c4c123
Source0: https://github.com/glotzerlab/%{pname}/archive/v%{version}/%{pname}-%{version}.tar.gz
3769089
Source1: https://readthedocs.org/projects/%{pname}/downloads/htmlzip/v%{version}/#/%{pname}-v%{version}-html.zip
c63542d
BuildRequires: gcc
c63542d
%if %{with docs}
c63542d
BuildRequires: python3-ipython-sphinx
c63542d
%endif
c63542d
c63542d
%description
c63542d
%{desc}
c63542d
3769089
%package doc
3769089
Summary: Documentation for %{name}
3769089
BuildArch: noarch
3769089
3769089
%description doc
3769089
%{desc}
3769089
3769089
This package contains the documentation.
3769089
c63542d
%package -n python3-%{pname}
c63542d
Summary: %{summary}
c63542d
BuildRequires: python3-Cython
c63542d
BuildRequires: python3-devel
c63542d
BuildRequires: python3-numpy
c63542d
%if %{with check}
6c4c123
BuildRequires: python3-pytest
c63542d
%endif
c63542d
%{?python_provide:%python_provide python3-%{pname}}
c63542d
c63542d
%description -n python3-%{pname}
c63542d
%{desc}
c63542d
c63542d
%prep
6c4c123
%setup -q -n %{pname}-%{version}
c63542d
c63542d
%build
c63542d
%py3_build
c63542d
%if %{with docs}
c63542d
PYTHONPATH=%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}:$PWD \
c63542d
  %{__python3} setup.py develop -d $PWD
c63542d
make -C doc html
3769089
%else
3769089
unzip -qq %{S:1}
3769089
mv %{pname}-v%{version}/index.html doc/
15a28b2
rm doc/_static/css/gsd-theme.css
3769089
mv %{pname}-v%{version}/_static/*  doc/_static/
c63542d
%endif
c63542d
c63542d
%install
c63542d
%py3_install
c63542d
c63542d
%if %{with check}
c63542d
%check
162a8bf
PYTHONPATH=%{buildroot}%{python3_sitearch} pytest-3 -v tests/ \
162a8bf
--basetemp=$(mktemp -d -p %{_tmppath}) \
162a8bf
%ifarch armv7hl i686
469fc64
-k 'not test_large_n'
162a8bf
# array size too large for 32-bit arches
162a8bf
# https://github.com/glotzerlab/gsd/issues/58
c63542d
%endif
469fc64
%ifarch ppc64 s390x
469fc64
-k 'not test_gsd_v1_read \
469fc64
and not test_gsd_v1_upgrade_read \
469fc64
and not test_gsd_v1_write \
469fc64
and not test_gsd_v1_upgrade_write'
469fc64
# reading little-endian files on big-endian is unsupported
469fc64
# https://github.com/glotzerlab/gsd/issues/12
469fc64
%endif
469fc64
%endif
c63542d
3769089
%files doc
3769089
%license LICENSE
3769089
%doc doc/index.html doc/_static
3769089
c63542d
%files -n python3-%{pname}
c63542d
%license LICENSE
6c4c123
%doc CHANGELOG.rst README.md
c63542d
%{python3_sitearch}/%{pname}-%{version}-py%{python3_version}.egg-info
c63542d
%{python3_sitearch}/%{pname}
c63542d
c63542d
%changelog
15a28b2
* Thu Jul 23 2020 Dominik Mierzejewski <dominik@greysector.net> 2.1.2-1
15a28b2
- update to 2.1.2 (#1851376)
15a28b2
9501e58
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.1-2
9501e58
- Rebuilt for Python 3.9
9501e58
469fc64
* Thu Apr 23 2020 Dominik Mierzejewski <dominik@greysector.net> 2.1.1-1
469fc64
- update to 2.1.1 (#1797605)
469fc64
- update largefile test name to skip on 32-bit
469fc64
- skip little-endian GSD file access tests on big-endian
469fc64
845e023
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
845e023
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
845e023
162a8bf
* Sat Nov 30 2019 Dominik Mierzejewski <dominik@greysector.net> 1.10.0-1
162a8bf
- update to 1.10.0 (#1754636)
162a8bf
- skip largefile tests on 32-bit arches
162a8bf
- use /var/tmp instead of /tmp for test files to avoid filling up builder memory
162a8bf
6c4c123
* Sun Sep 22 2019 Dominik Mierzejewski <dominik@greysector.net> 1.9.0-1
6c4c123
- update to 1.9.0
6c4c123
- point to new upstream URLs
6c4c123
- switch test framework to pytest
6c4c123
f2a8bd6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-7
f2a8bd6
- Rebuilt for Python 3.8
f2a8bd6
09701e9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
09701e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
09701e9
5a2b966
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
5a2b966
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5a2b966
0564311
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.1-4
0564311
- Subpackage python2-gsd has been removed
0564311
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
0564311
edcf9b5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
edcf9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
edcf9b5
cca796f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-2
cca796f
- Rebuilt for Python 3.7
cca796f
3769089
* Thu Mar 08 2018 Dominik Mierzejewski <dominik@greysector.net> 1.5.1-1
3769089
- update to 1.5.1
3769089
- include HTML documentation
3769089
c63542d
* Fri Feb 23 2018 Dominik Mierzejewski <dominik@greysector.net> 1.5.0-1
c63542d
- initial build