diff --git a/odML-1.5.1.tar.gz b/odML-1.5.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f4a687617b8766fe8a30c28d9b824972379dad0b Binary files /dev/null and b/odML-1.5.1.tar.gz differ diff --git a/python-odML.spec b/python-odML.spec new file mode 100644 index 0000000000000000000000000000000000000000..4176865a0cabb9f177a0484f3b3e15f870934487 --- /dev/null +++ b/python-odML.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-odML +Version: 1.5.1 +Release: 1 +Summary: open metadata Markup Language +License: BSD +URL: https://github.com/G-Node/python-odml +Source0: https://files.pythonhosted.org/packages/59/2a/31d133c30ef1ae4d4f4cc7fe7e3b5c86a17e13351ef09fc9ff8384a455a0/odML-1.5.1.tar.gz +BuildArch: noarch + + +%description +odML (open metadata Markup Language) is a file format for storing arbitrary metadata. The underlying data model offers a way to store metadata in a structured human- and machine-readable way. Well organized metadata management is a key component to guarantee reproducibility of experiments and to track provenance of performed analyses. + +%package -n python3-odML +Summary: open metadata Markup Language +Provides: python-odML +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-odML +odML (open metadata Markup Language) is a file format for storing arbitrary metadata. The underlying data model offers a way to store metadata in a structured human- and machine-readable way. Well organized metadata management is a key component to guarantee reproducibility of experiments and to track provenance of performed analyses. + +%package help +Summary: Development documents and examples for odML +Provides: python3-odML-doc +%description help +odML (open metadata Markup Language) is a file format for storing arbitrary metadata. The underlying data model offers a way to store metadata in a structured human- and machine-readable way. Well organized metadata management is a key component to guarantee reproducibility of experiments and to track provenance of performed analyses. + +%prep +%autosetup -n odML-1.5.1 + +%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-odML -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Sep 01 2021 Python_Bot - 1.5.1-1 +- Package Init