diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt new file mode 100644 index 0000000..748dc4a --- /dev/null +++ b/packaging/CMakeLists.txt @@ -0,0 +1,7 @@ +# Configure the version of packaging files +configure_file(conda/meta.yaml.in conda/meta.yaml) +configure_file(conda/build.sh conda/build.sh COPYONLY) +configure_file(conda/conda_build_config.yaml conda/conda_build_config.yaml COPYONLY) +configure_file(TRIQS-app4triqs-foss-2021b.eb.in TRIQS-app4triqs-foss-2021b.eb) + + diff --git a/packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb b/packaging/TRIQS-app4triqs-foss-2021b.eb.in similarity index 97% rename from packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb rename to packaging/TRIQS-app4triqs-foss-2021b.eb.in index 113872b..c5c96f2 100644 --- a/packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb +++ b/packaging/TRIQS-app4triqs-foss-2021b.eb.in @@ -1,7 +1,7 @@ easyblock = 'CMakeMake' name = 'TRIQS-app4triqs' -version = '3.2.0' +version = '@PROJECT_VERSION@' homepage = 'https://triqs.github.io/app4triqs/' description = """ diff --git a/packaging/conda/meta.yaml b/packaging/conda/meta.yaml.in similarity index 96% rename from packaging/conda/meta.yaml rename to packaging/conda/meta.yaml.in index 7345f85..bad6e1c 100644 --- a/packaging/conda/meta.yaml +++ b/packaging/conda/meta.yaml.in @@ -1,4 +1,4 @@ -{% set version = "3.2.0" %} +{% set version = "@PROJECT_VERSION@" %} package: name: app4triqs