diff --git a/.files b/.files
new file mode 100644
index 0000000..c0f090c
Binary files /dev/null and b/.files differ
diff --git a/.meta b/.meta
new file mode 100644
index 0000000..65344bb
--- /dev/null
+++ b/.meta
@@ -0,0 +1,11 @@
+
+ The Adaptable IO System (ADIOS)
+ The Adaptable IO System (ADIOS) provides a simple, flexible way for
+scientists to describe the data in their code that may need to be
+written, read, or processed outside of the running simulation. By
+providing an external to the code XML file describing the various
+elements, their types, and how you wish to process them this run, the
+routines in the host code (either Fortran or C) can transparently change
+how they process the data.
+
+
diff --git a/.rev b/.rev
new file mode 100644
index 0000000..78de5fc
--- /dev/null
+++ b/.rev
@@ -0,0 +1,10 @@
+
+
+ 0f86c0dad6f1652018a4a83ec4c03e39
+ 1.13.1
+
+ dimstar_suse
+
+ 740995
+
+
diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..264bcb3
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,8 @@
+
+ openmpi
+ gnu-openmpi-hpc
+ gnu-openmpi2-hpc
+ gnu-openmpi3-hpc
+ gnu-mpich-hpc
+ gnu-mvapich2-hpc
+
diff --git a/adios-1.13.1.tar.gz b/adios-1.13.1.tar.gz
new file mode 120000
index 0000000..57864d3
--- /dev/null
+++ b/adios-1.13.1.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeic7znrd6osuee4mwhr3hsssemciw5gapwmukmd2fjsvda5s7lqvui
\ No newline at end of file
diff --git a/adios-correct-func-ret.patch b/adios-correct-func-ret.patch
new file mode 100644
index 0000000..f550b52
--- /dev/null
+++ b/adios-correct-func-ret.patch
@@ -0,0 +1,28 @@
+From: Ana Guerrero Lopez
+Date: Mon Oct 7 11:47:15 +0200
+Subject: make sure the function returns something
+Upstream: no
+
+diff -Nrua adios-1.13.1.orig/src/core/adiosf.c adios-1.13.1/src/core/adiosf.c
+--- adios-1.13.1.orig/src/core/adiosf.c
++++ adios-1.13.1/src/core/adiosf.c 2019-10-07 11:30:44.886522751 +0200
+@@ -548,6 +548,8 @@
+ adios_common_set_time_aggregation(g, bufsize, sg);
+ }
+ *err = adios_errno;
++
++ return 0;
+ }
+
+ ///////////////////////////////////////////////////////////////////////////////
+diff -Nrua adios-1.13.1.orig/tests/C/flexpath_tests/two_streams/writer.c adios-1.13.1/tests/C/flexpath_tests/two_streams/writer.c
+--- adios-1.13.1.orig/tests/C/flexpath_tests/two_streams/writer.c
++++ adios-1.13.1/tests/C/flexpath_tests/two_streams/writer.c
+@@ -87,6 +87,7 @@
+
+ adios_close(adios_handle);
+
++ return 0;
+ }
+
+ int main(int argc, char ** argv)
diff --git a/adios.changes b/adios.changes
new file mode 100644
index 0000000..53b1b6b
--- /dev/null
+++ b/adios.changes
@@ -0,0 +1,82 @@
+-------------------------------------------------------------------
+Fri Oct 18 08:22:51 UTC 2019 - Ana Guerrero Lopez
+
+- Disable openmpi3 and the openmpi flavor in SLE.
+
+-------------------------------------------------------------------
+Mon Oct 7 09:23:07 UTC 2019 - Ana Guerrero Lopez
+
+- Remake patch adios-correct-func-ret.patch to make sure the functions
+ return something instead of changing the return type from int to void.
+
+-------------------------------------------------------------------
+Mon Apr 29 09:40:06 UTC 2019 - Ana Guerrero Lopez
+
+- Move the static libraries to a -devel-static packages. Adios doesn't
+ provides shared libraries and the static libraries are required for
+ the bindings to work.
+
+-------------------------------------------------------------------
+Wed Apr 10 09:20:20 UTC 2019 - Ana Guerrero Lopez
+
+- Fix path for the files that were installed directly at /etc.
+
+-------------------------------------------------------------------
+Mon Apr 8 07:43:14 UTC 2019 - Ana Guerrero Lopez
+
+- Update Licensing.
+
+-------------------------------------------------------------------
+Fri Mar 29 08:28:48 UTC 2019 - Jan Engelhardt
+
+- Generalize and trim bias from description.
+
+-------------------------------------------------------------------
+Thu Mar 28 10:40:04 UTC 2019 - Ana Guerrero Lopez
+
+- Drop the packages and flavors for examples/examples-hpc. It's easier
+ for an interested user to download directly the source package and build
+ them directly.
+- Update the URLs to use https
+- Add -L option to the standard master package
+- Delete the module .version file in the %postun if it's the default one
+- Use the macro %hpc_modules_init to load the module files
+
+-------------------------------------------------------------------
+Mon Mar 25 19:37:08 UTC 2019 - Ana Guerrero Lopez
+
+- Re-add CPATH, C_INCLUDE_PATH and CPLUS_INCLUDE_PATH to the module
+file.
+- Add a separate package with the examples in two flavors one for
+non-HPC and another one for HPC: examples and examples-hpc.
+- Update Requires for the devel package.
+
+-------------------------------------------------------------------
+Wed Feb 20 14:57:33 UTC 2019 - Ana Guerrero López
+
+- Update to version 1.31.1 (jsc#SLE-6004)
+- Add python support:
+ * This is only for Python2
+ * Update in the module file
+ * Add needed Requires on python2-xml and python2-PyYAML
+- Fix a few python shebangs with patch fix_python_shebang.patch
+- Add a Requires on hdf5 for every mpi flavor and update the module
+file with 'depends-on phdf5'.
+- Add examples packages. It's only created for the openmpi flavor
+to avoid having several packages with the same content.
+- Spec file polishing: spec-cleaner and update to the lastest
+packaging convention for HPC packages.
+
+-------------------------------------------------------------------
+Tue Jan 9 19:35:14 UTC 2018 - jjolly@suse.com
+
+- Added hpc macros support
+ * Added _multibuild with serial, openmpi, and gnu-openmpi-hpc
+ * Created devel package and module package
+ * Created lua lmod module file for adios
+- Added adios-correct-func-ret.patch
+
+-------------------------------------------------------------------
+Fri Jan 5 01:12:14 UTC 2018 - jjolly@suse.com
+
+- First pass on adios specfile
diff --git a/adios.spec b/adios.spec
new file mode 100644
index 0000000..15e36cf
--- /dev/null
+++ b/adios.spec
@@ -0,0 +1,331 @@
+#
+# spec file for package adios
+#
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+
+%global flavor @BUILD_FLAVOR@%{nil}
+%define pname adios
+%define vers 1.13.1
+%define _vers %(echo %{vers} | tr . _)
+
+%if "%{flavor}" == ""
+ExclusiveArch: do_not_build
+%endif
+
+%if 0%{?is_opensuse} || 0%{?is_backports}
+%undefine DisOMPI3
+%else
+%define DisOMPI3 ExclusiveArch: do_not_build
+%endif
+
+# this is a non-HPC build
+%if "%{flavor}" == "openmpi"
+%global mpi_flavor %{flavor}
+%bcond_with hpc
+%endif
+
+# All the HPC builds are below
+%if "%{flavor}" == "gnu-openmpi-hpc"
+%bcond_without hpc
+%define compiler_family gnu
+%undefine c_f_ver
+%global mpi_flavor openmpi
+%define mpi_ver 1
+%endif
+
+%if "%{flavor}" == "gnu-openmpi2-hpc"
+%bcond_without hpc
+%define compiler_family gnu
+%undefine c_f_ver
+%global mpi_flavor openmpi
+%define mpi_ver 2
+%endif
+
+%if "%{flavor}" == "gnu-openmpi3-hpc"
+%{?DisOMPI3}
+%bcond_without hpc
+%define compiler_family gnu
+%undefine c_f_ver
+%global mpi_flavor openmpi
+%define mpi_ver 3
+%endif
+
+%if "%{flavor}" == "gnu-mvapich2-hpc"
+%bcond_without hpc
+%define compiler_family gnu
+%undefine c_f_ver
+%global mpi_flavor mvapich2
+%endif
+
+%if "%{flavor}" == "gnu-mpich-hpc"
+%bcond_without hpc
+%define compiler_family gnu
+%undefine c_f_ver
+%global mpi_flavor mpich
+%endif
+
+%if !0%{?is_opensuse} && !0%{?with_hpc:1}
+ExclusiveArch: do_not_build
+%endif
+
+%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}}
+%{?with_mpi:%{!?mpi_flavor:%global mpi_flavor openmpi}}
+%{?with_mpi:%global pkg_suffix -%{mpi_flavor}}
+
+%if %{with hpc}
+ %{hpc_init %{?compiler_family:-c %{compiler_family} %{?c_f_ver:-v %{c_f_ver}}} %{?with_mpi:-m %{mpi_flavor}} %{?mpi_ver:-V %{mpi_ver}} %{?ext:-e %{ext}}}
+ %{hpc_modules_init phdf5 pnetcdf}
+ %global hpc_module_pname %{pname}
+ %define pkg_prefix %{hpc_prefix}
+ %define pkg_bindir %{hpc_bindir}
+ %define pkg_libdir %{hpc_libdir}
+ %define pkg_incdir %{hpc_includedir}
+ %define pkg_datadir %{hpc_datadir}
+ %define pkg_sysconfdir %{hpc_prefix}/etc/
+ %define pkg_skeldir %{hpc_prefix}/etc/skel/
+ %define package_name %{hpc_package_name %{_vers}}
+ %define libname(l:s:) lib%{pname}%{-l*}%{hpc_package_name_tail %{?_vers}}
+# This will avoid rpmlint errors when non-python3 scripts are detected.
+# It needs to be addressed at some point. This needs to come after hpc_init.
+ %undefine _hpc_python3
+%else
+ %define pkg_prefix %{_libdir}/mpi/gcc/%{mpi_flavor}
+ %define pkg_bindir %{pkg_prefix}/bin/
+ %define pkg_libdir %{pkg_prefix}/%{_lib}/
+ %define pkg_incdir %{pkg_prefix}/include/
+ %define pkg_datadir %{pkg_prefix}/share/
+ %define pkg_sysconfdir %{pkg_prefix}/etc/
+ %define pkg_skeldir %{pkg_prefix}/etc/skel/
+ %define package_name %{pname}%{?pkg_suffix}
+ %define libname(l:s:) lib%{pname}%{!-l:%{-s:-}}%{-l*}%{-s*}%{?pkg_suffix}
+%endif
+
+Name: %{package_name}
+Version: %{vers}
+Release: 0
+Summary: The Adaptable IO System (ADIOS)
+License: BSD-3-Clause AND LGPL-2.1-or-later AND BSD-2-Clause
+Group: Productivity/Scientific/Other
+URL: https://www.olcf.ornl.gov/center-projects/adios/
+Source0: https://users.nccs.gov/~pnorbert/adios-%{version}.tar.gz
+Patch0: adios-correct-func-ret.patch
+Patch1: fix_python_shebang.patch
+%{?with_hpc:BuildRequires: suse-hpc >= 0.3}
+BuildRequires: fdupes
+BuildRequires: autoconf
+BuildRequires: libbz2-devel
+BuildRequires: liblz4-devel
+BuildRequires: python
+BuildRequires: python-numpy
+BuildRequires: zlib-devel
+ %if %{without hpc}
+BuildRequires: gcc-c++
+BuildRequires: gcc-fortran
+BuildRequires: %{flavor}-devel
+BuildRequires: hdf5%{?pkg_suffix}-devel
+BuildRequires: netcdf%{?pkg_suffix}-devel
+ %else # hpc
+BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
+BuildRequires: %{mpi_flavor}%{?mpi_ver}-%{compiler_family}%{?c_f_ver}-hpc-macros-devel
+BuildRequires: hdf5-%{compiler_family}%{?c_f_ver}%{?with_mpi:-%{mpi_flavor}%{?mpi_ver}}-hpc-devel
+BuildRequires: netcdf-%{compiler_family}%{?c_f_ver}%{?with_mpi:-%{mpi_flavor}%{?mpi_ver}}-hpc-devel
+BuildRequires: lua-lmod
+%{hpc_requires}
+%endif # ?hpc
+Requires: python2-xml
+Requires: python2-PyYAML
+
+%description
+The Adaptable IO System (ADIOS) provides a way for scientists to
+describe the data in their code that may need to be written, read, or
+processed outside of the running simulation. By providing an external
+to the code XML file describing the various elements, their types,
+and how one wishes to process them for a particular run, the routines
+in the host code (either FORTRAN or C) can transparently change how
+they process the data.
+
+%{?with_hpc:%hpc_master_package -L}
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries/Parallel
+Requires: %{name} = %{version}
+Requires: %{name}-devel-static = %{version}
+ %if %{without hpc}
+Requires: hdf5%{?pkg_suffix}-devel
+Requires: netcdf%{?pkg_suffix}-devel
+ %else # hpc
+Requires: hdf5-%{compiler_family}%{?c_f_ver}%{?with_mpi:-%{mpi_flavor}%{?mpi_ver}}-hpc-devel
+Requires: netcdf-%{compiler_family}%{?c_f_ver}%{?with_mpi:-%{mpi_flavor}%{?mpi_ver}}-hpc-devel
+Requires: lua-lmod
+%hpc_requires_devel
+ %endif # ?hpc
+
+%description devel
+The Adaptable IO System (ADIOS) provides a way for scientists to
+describe the data in their code that may need to be written, read, or
+processed outside of the running simulation.
+
+This package contains all files needed to create projects that use
+the %{flavor} version of ADIOS.
+
+%{?with_hpc:%{hpc_master_package -L devel}}
+
+
+%package devel-static
+Summary: Static libraries for %{name}
+Group: Development/Libraries/Parallel
+
+%description devel-static
+The Adaptable IO System (ADIOS) provides a way for scientists to
+describe the data in their code that may need to be written, read, or
+processed outside of the running simulation.
+
+This package contains all the static libraries needed to create projects
+that use the %{flavor} version of ADIOS.
+
+%{?with_hpc:%{hpc_master_package -L devel-static}}
+
+%prep
+%setup -q -n %{pname}-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{?with_hpc:%hpc_setup}
+
+export CC=gcc
+export CXX=g++
+export F77=gfortran
+export F9X=gfortran
+export FC=gfortran
+export MPICC=mpicc
+export MPICXX=mpicxx
+export MPIFC=mpif90
+export CFLAGS="-fPIE %{optflags}"
+export LDFLAGS="-pie"
+
+%if %{without hpc}
+export MPICC="%{pkg_bindir}/mpicc"
+export MPIFC="%{pkg_bindir}/mpif90"
+export PATH=${PATH}:%{pkg_bindir}
+export LDFLAGS="${LDFLAGS} -L%{pkg_libdir}"
+export LD_LIBRARY_PATH="%{pkg_libdir}"
+%configure \
+ --prefix=%{pkg_prefix} \
+ --exec-prefix=%{_prefix} \
+ --bindir=%{pkg_bindir} \
+ --libdir=%{pkg_libdir} \
+ --includedir=%{pkg_incdir} \
+ --sysconfdir=%{pkg_sysconfdir} \
+ --datadir=%{pkg_datadir} \
+ --docdir=%{_docdir}/%{name} \
+%else
+%{hpc_setup}
+
+%global _hpc_exec_prefix %{hpc_exec_prefix}
+%global hpc_exec_prefix %{_prefix}
+%{hpc_configure} \
+ --sysconfdir=%{pkg_sysconfdir} \
+%define hpc_exec_prefix %{expand:%_hpc_exec_prefix}
+%endif
+ --enable-fortran \
+ --with-phdf5="%{pkg_prefix}" \
+ --with-netcdf="%{pkg_prefix}" \
+ --with-zlib="%{_prefix}" \
+ --with-bzip2="%{_libdir}" \
+ --with-lz4="%{_libdir}" \
+ --without-evpath \
+ --without-fastbit \
+ --without-ffs \
+
+make V=1 %{?_smp_mflags}
+
+%install
+%if %{with hpc}
+%{hpc_setup}
+%endif
+%make_install
+%fdupes -s %{buildroot}/%{pkg_skeldir}/templates
+
+%if %{with hpc}
+%{hpc_write_modules_files}
+#%%Module1.0#####################################################################
+
+proc ModulesHelp { } {
+
+puts stderr " "
+puts stderr "This module loads the %{pname} library built with the %{compiler_family} compiler"
+puts stderr "toolchain and the %{mpi_flavor} MPI stack."
+puts stderr "\nVersion %{version}\n"
+
+}
+module-whatis "Name: %{pname} built with %{compiler_family} compiler and %{mpi_flavor} MPI"
+module-whatis "Version: %{version}"
+module-whatis "Category: runtime library"
+module-whatis "Description: %{SUMMARY}"
+module-whatis "%{url}"
+
+set version %{version}
+
+depends-on phdf5
+
+prepend-path PATH %{hpc_bindir}
+prepend-path LD_LIBRARY_PATH %{hpc_libdir}
+prepend-path PYTHONPATH %{hpc_libdir}/python
+
+setenv %{hpc_upcase %{pname}}_DIR %{hpc_prefix}
+setenv %{hpc_upcase %{pname}}_BIN %{hpc_bindir}
+setenv %{hpc_upcase %{pname}}_LIB %{hpc_libdir}
+setenv %{hpc_upcase %{pname}}_ETC %{hpc_prefix}/etc
+
+if {[file isdirectory %{hpc_includedir}]} {
+prepend-path LIBRARY_PATH %{hpc_libdir}
+prepend-path INCLUDE %{hpc_includedir}
+prepend-path CPATH %{hpc_includedir}
+prepend-path C_INCLUDE_PATH %{hpc_includedir}
+prepend-path CPLUS_INCLUDE_PATH %{hpc_includedir}
+
+setenv %{hpc_upcase %{pname}}_INC %{hpc_includedir}
+}
+
+EOF
+%endif
+
+%files
+%if %{with hpc}
+%{hpc_dirs}
+%{hpc_modules_files}
+%endif
+%{pkg_bindir}
+%config %{pkg_sysconfdir}/*
+%dir %{pkg_prefix}/etc
+%{pkg_skeldir}
+%{pkg_libdir}/python
+%license COPYING
+%doc AUTHORS KNOWN_BUGS NEWS README.md TODO
+
+%files devel
+%{pkg_incdir}
+
+%files devel-static
+%{pkg_libdir}/*.a
+
+%if %{with hpc}
+%postun
+%hpc_module_delete_if_default
+%endif
+
+%changelog
diff --git a/fix_python_shebang.patch b/fix_python_shebang.patch
new file mode 100644
index 0000000..7235fe4
--- /dev/null
+++ b/fix_python_shebang.patch
@@ -0,0 +1,32 @@
+From: Ana Guerrero Lopez
+Date: 2018-01-24 16:00:00 +0200
+Subject: fix shebangs
+Upstream: no
+
+diff -Nrua adios-1.13.1.original/utils/skel/bin/skel adios-1.13.1/utils/skel/bin/skel
+--- adios-1.13.1.original/utils/skel/bin/skel 2018-01-22 23:57:57.000000000 +0100
++++ adios-1.13.1/utils/skel/bin/skel 2019-01-25 09:27:24.564764182 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python
+
+ import sys
+ import os.path
+diff -Nrua adios-1.13.1.original/utils/skel/bin/skel_cat.py adios-1.13.1/utils/skel/bin/skel_cat.py
+--- adios-1.13.1.original/utils/skel/bin/skel_cat.py 2018-01-22 23:57:57.000000000 +0100
++++ adios-1.13.1/utils/skel/bin/skel_cat.py 2019-01-25 09:27:17.444808921 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python
+
+ import argparse
+ import os
+diff -Nrua adios-1.13.1.original/utils/skel/bin/skel_extract.py adios-1.13.1/utils/skel/bin/skel_extract.py
+--- adios-1.13.1.original/utils/skel/bin/skel_extract.py 2018-01-22 23:57:57.000000000 +0100
++++ adios-1.13.1/utils/skel/bin/skel_extract.py 2019-01-25 09:27:44.976635924 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python
+
+ import argparse
+ import xml.dom.minidom