diff --git a/h5io-0.1.2.tar.gz b/h5io-0.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e4ee3b30754bcbb778bfd1ea5f7a9715c991ac66 Binary files /dev/null and b/h5io-0.1.2.tar.gz differ diff --git a/python-h5io.spec b/python-h5io.spec new file mode 100644 index 0000000000000000000000000000000000000000..4d12e2a345dbd4f62d9d42e28df0220fe8cc0dd8 --- /dev/null +++ b/python-h5io.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-h5io +Version: 0.1.2 +Release: 1 +Summary: Python Objects Onto HDF5 +License: BSD +URL: https://github.com/h5io/h5io +Source0: https://files.pythonhosted.org/packages/98/51/d217c113187061b97d955d34f895304764a2386106ac91f503ce92dc246b/h5io-0.1.2.tar.gz +BuildArch: noarch + + +%description +h5io is a package designed to facilitate saving some standard Python objects +into the forward-compatible HDF5 format. It is a higher-level package than h5py. + +%package -n python3-h5io +Summary: Python Objects Onto HDF5 +Provides: python-h5io +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-numpy + +%description -n python3-h5io +h5io is a package designed to facilitate saving some standard Python objects +into the forward-compatible HDF5 format. It is a higher-level package than h5py. + +%package help +Summary: Development documents and examples for h5io +Provides: python3-h5io-doc +%description help +h5io is a package designed to facilitate saving some standard Python objects +into the forward-compatible HDF5 format. It is a higher-level package than h5py. + +%prep +%autosetup -n h5io-0.1.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-h5io -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Sep 14 2021 Python_Bot - 0.1.2-1 +- Package Init