[packages/erlang-hex-core] Initial
arekm
arekm at pld-linux.org
Thu Mar 12 23:13:28 CET 2026
commit 3ca794b39fddb5b0b832309c6f4cc4501b4e08a3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Mar 12 23:13:12 2026 +0100
Initial
disable-project-plugins.patch | 11 +++++++++++
erlang-hex-core.spec | 44 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
---
diff --git a/erlang-hex-core.spec b/erlang-hex-core.spec
new file mode 100644
index 0000000..eef6959
--- /dev/null
+++ b/erlang-hex-core.spec
@@ -0,0 +1,44 @@
+Summary: Reference implementation of Hex specifications
+Name: erlang-hex-core
+Version: 0.12.2
+Release: 1
+License: Apache v2
+Group: Development/Languages
+Source0: https://repo.hex.pm/tarballs/hex_core-%{version}.tar
+# Source0-md5: 9208cc34628ee900206263a802786a57
+# Disable dev-only project plugins (docs/lint/format/test helpers)
+# so the package builds offline/reproducibly without changing runtime behavior.
+Patch0: disable-project-plugins.patch
+URL: https://hex.pm/packages/hex_core
+BuildRequires: erlang >= 2:17
+BuildRequires: erlang-rebar3
+BuildRequires: rpmbuild(macros) >= 2.035
+Requires: erlang >= 2:17
+BuildArch: noarch
+%{?erlang_requires}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Reference implementation of Hex specifications.
+
+%prep
+%setup -q -T -c -a 0 -n hex_core-%{version}
+tar -xzf contents.tar.gz
+%patch -P0 -p1
+rm -f rebar.lock
+
+%build
+rebar3 compile
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/hex_core-%{version}
+cp -rp _build/default/lib/hex_core/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/hex_core-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md CHANGELOG.md
+%{_libdir}/erlang/lib/hex_core-%{version}
diff --git a/disable-project-plugins.patch b/disable-project-plugins.patch
new file mode 100644
index 0000000..10eebee
--- /dev/null
+++ b/disable-project-plugins.patch
@@ -0,0 +1,11 @@
+--- a/rebar.config
++++ b/rebar.config
+@@ -3,7 +3,7 @@
+ debug_info
+ ]}.
+
+-{project_plugins, [rebar3_hex, rebar3_ex_doc, erlfmt]}.
++{project_plugins, []}.
+
+ {gpb_opts, [
+ {i, "proto"},
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/erlang-hex-core.git/commitdiff/3ca794b39fddb5b0b832309c6f4cc4501b4e08a3
More information about the pld-cvs-commit
mailing list