diff --git a/README.md b/README.md index e62cf67..d47a0e4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,5 @@ See [GitHub releases](https://github.com/jasonmcintosh/esl-erlang-compat/release ## Building new RPMs Command (with the right tools installed) to build: ``` -cd rpmbuilds -rpmbuild -ba SPECS/esl-erlang-compat.spec -mv ~/rpmbuilds/RPMS/noarch/esl-erlang-compat-19.3.6-1.noarch.rpm ./RPMS/noarch +docker run -e "VERSION=1.2.3" -v $(pwd):/srv -v $(pwd):/home/builder rpmbuild/centos7 ``` diff --git a/pkg b/pkg new file mode 100755 index 0000000..be31aac --- /dev/null +++ b/pkg @@ -0,0 +1,2 @@ +cd ~/ +rpmbuild -ba rpmbuild/SPECS/esl-erlang-compat.spec diff --git a/rpmbuild/RPMS/noarch/esl-erlang-compat-20.2.2-1.noarch.rpm b/rpmbuild/RPMS/noarch/esl-erlang-compat-20.2.2-1.noarch.rpm index 97054ea..03f68b4 100644 Binary files a/rpmbuild/RPMS/noarch/esl-erlang-compat-20.2.2-1.noarch.rpm and b/rpmbuild/RPMS/noarch/esl-erlang-compat-20.2.2-1.noarch.rpm differ diff --git a/rpmbuild/RPMS/noarch/esl-erlang-compat-20.3.8.20-1.noarch.rpm b/rpmbuild/RPMS/noarch/esl-erlang-compat-20.3.8.20-1.noarch.rpm new file mode 100644 index 0000000..64a1723 Binary files /dev/null and b/rpmbuild/RPMS/noarch/esl-erlang-compat-20.3.8.20-1.noarch.rpm differ diff --git a/rpmbuild/RPMS/noarch/esl-erlang-compat-21.2.6-1.noarch.rpm b/rpmbuild/RPMS/noarch/esl-erlang-compat-21.2.6-1.noarch.rpm new file mode 100644 index 0000000..1340eef Binary files /dev/null and b/rpmbuild/RPMS/noarch/esl-erlang-compat-21.2.6-1.noarch.rpm differ diff --git a/rpmbuild/SPECS/esl-erlang-compat.spec b/rpmbuild/SPECS/esl-erlang-compat.spec index 23a48c4..1edf8c6 100755 --- a/rpmbuild/SPECS/esl-erlang-compat.spec +++ b/rpmbuild/SPECS/esl-erlang-compat.spec @@ -1,11 +1,11 @@ Name: esl-erlang-compat -Version: 20.2.2 +Version: %{getenv:VERSION} Release: 1 Summary: A compat file to get esl-erlang to provide erlang URL: https://github.com/jasonmcintosh/esl-erlang-compat License: MPLv1.1 and MIT and ASL 2.0 and BSD BuildArch: noarch -Requires: esl-erlang >= 20.2.2 +Requires: esl-erlang >= %{getenv:VERSION} Provides: erlang BuildRoot: %{_tmppath}/%{name}-root @@ -21,6 +21,9 @@ A shim (compatibility) package to allow esl-erlang to provide an erlang package %files %changelog +* Tue Feb 20 2018 Jason McIntosh +- Updated to use environment variables for version and docker builder + * Tue Feb 20 2018 Michael Klishin - Updated to use 20.2.2 as minimum version diff --git a/rpmbuild/SRPMS/esl-erlang-compat-20.2.2-1.src.rpm b/rpmbuild/SRPMS/esl-erlang-compat-20.2.2-1.src.rpm new file mode 100644 index 0000000..7c2a21a Binary files /dev/null and b/rpmbuild/SRPMS/esl-erlang-compat-20.2.2-1.src.rpm differ diff --git a/rpmbuild/SRPMS/esl-erlang-compat-20.3.8.20-1.src.rpm b/rpmbuild/SRPMS/esl-erlang-compat-20.3.8.20-1.src.rpm new file mode 100644 index 0000000..2ee573d Binary files /dev/null and b/rpmbuild/SRPMS/esl-erlang-compat-20.3.8.20-1.src.rpm differ diff --git a/rpmbuild/SRPMS/esl-erlang-compat-21.2.6-1.src.rpm b/rpmbuild/SRPMS/esl-erlang-compat-21.2.6-1.src.rpm new file mode 100644 index 0000000..82f4992 Binary files /dev/null and b/rpmbuild/SRPMS/esl-erlang-compat-21.2.6-1.src.rpm differ