From 37690890c30f56248ecb6ec94046a9e313391ac0 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Mar 15 2018 18:22:04 +0000 Subject: update to 1.5.1 include HTML documentation --- diff --git a/.gitignore b/.gitignore index afb70f1..45db330 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /gsd-v1.5.0.tar.gz +/gsd-v1.5.1-html.zip +/gsd-v1.5.1.tar.gz diff --git a/python-gsd.spec b/python-gsd.spec index fe7bc7a..16a708f 100644 --- a/python-gsd.spec +++ b/python-gsd.spec @@ -25,12 +25,13 @@ and writes hoomd schema gsd files with an easy to use syntax.\ * Fast random access to frames. Name: python-gsd -Version: 1.5.0 +Version: 1.5.1 Release: 1%{?dist} Summary: Read and write hoomd schema gsd files with an easy to use syntax License: BSD URL: https://bitbucket.org/glotzer/gsd Source0: https://glotzerlab.engin.umich.edu/Downloads/%{pname}/%{pname}-v%{version}.tar.gz +Source1: https://readthedocs.org/projects/%{pname}/downloads/htmlzip/v%{version}/#/%{pname}-v%{version}-html.zip BuildRequires: gcc %if %{with docs} BuildRequires: python3-ipython-sphinx @@ -39,6 +40,15 @@ BuildRequires: python3-ipython-sphinx %description %{desc} +%package doc +Summary: Documentation for %{name} +BuildArch: noarch + +%description doc +%{desc} + +This package contains the documentation. + %package -n python2-%{pname} Summary: %{summary} BuildRequires: python2-Cython @@ -79,6 +89,10 @@ popd PYTHONPATH=%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}:$PWD \ %{__python3} setup.py develop -d $PWD make -C doc html +%else +unzip -qq %{S:1} +mv %{pname}-v%{version}/index.html doc/ +mv %{pname}-v%{version}/_static/* doc/_static/ %endif %install @@ -88,10 +102,13 @@ make -C doc html %if %{with check} %check # tests only work with python 3.2+ https://bitbucket.org/glotzer/gsd/issues/10/ -#PYTHONPATH=%{buildroot}%{python2_sitearch} nosetests-%{python2_version} PYTHONPATH=%{buildroot}%{python3_sitearch} nosetests-%{python3_version} %endif +%files doc +%license LICENSE +%doc doc/index.html doc/_static + %files -n python2-%{pname} %license LICENSE %doc ChangeLog.md README.md @@ -105,5 +122,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} nosetests-%{python3_version} %{python3_sitearch}/%{pname} %changelog +* Thu Mar 08 2018 Dominik Mierzejewski 1.5.1-1 +- update to 1.5.1 +- include HTML documentation + * Fri Feb 23 2018 Dominik Mierzejewski 1.5.0-1 - initial build diff --git a/sources b/sources index d07ae4d..43f68bb 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (gsd-v1.5.0.tar.gz) = 43618487f4fded78998d281ec2768748cc36074563ddc3060b7c913cf69bb72da15d21f3e6f6bcc0313ca2ea4d73b87544a48ae744c6d39a7f98eed3cbe5f989 +SHA512 (gsd-v1.5.1-html.zip) = cbb7cf9095d2c9782082177b2e35287783190f041001a6d2bbabecca801aa72ff3dc8e38162c4623106ed2cd551c38d3f7cb2da9e8a8fc46ead7b9dd38737ca7 +SHA512 (gsd-v1.5.1.tar.gz) = b4f7af2c6eb5ad9e8bc1aad56e939b8229c85b7ce3d2b8d576ef9a64d029c7bf9d508443edc03b61a5c0c9b28416b90eaf231f9058def06025ed5057c93024f0