[packages/erlang-rebar3-hex] Up to 7.1.0

arekm arekm at pld-linux.org
Thu Mar 12 23:14:27 CET 2026


commit a80d3a1844b19f210816c2d582dfc98785bbca3a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Mar 12 23:14:20 2026 +0100

    Up to 7.1.0

 erlang-rebar3-hex.spec   | 41 +++++++++++++++++++----------------------
 offline-local-deps.patch |  8 ++++++++
 2 files changed, 27 insertions(+), 22 deletions(-)
---
diff --git a/erlang-rebar3-hex.spec b/erlang-rebar3-hex.spec
index a9188cf..f616649 100644
--- a/erlang-rebar3-hex.spec
+++ b/erlang-rebar3-hex.spec
@@ -1,19 +1,21 @@
-%bcond_with	tests		# build without tests
-
 Summary:	a plugin for Rebar3 that bundles providers to interact with Hex
 Name:		erlang-rebar3-hex
-Version:	7.0.10
-Release:	0.1
+Version:	7.1.0
+Release:	1
 License:	APLv2
 Group:		Development/Tools
-Source0:	https://github.com/erlef/rebar3_hex/archive/refs/tags/v%{version}.tar.gz
-# Source0-md5:	de158261831c87af76ac64ba7834177e
-URL:		https://github.com/erlef/rebar3_hex/
+Source0:	https://repo.hex.pm/tarballs/rebar3_hex-%{version}.tar
+# Source0-md5:	7bb101e1ad41629979a289200cfce09a
+# Disable dev-only project plugins and Hex dep fetching during build;
+# runtime behavior comes from Requires: erlang-hex-core and erlang-verl.
+Patch0:		offline-local-deps.patch
+URL:		https://hex.pm/packages/rebar3_hex
 BuildRequires:	erlang >= 2:17
-%if %{without bootstrap}
 BuildRequires:	erlang-rebar3
-%endif
 BuildRequires:	rpmbuild(macros) >= 2.035
+Requires:	erlang-hex-core
+Requires:	erlang-rebar3
+Requires:	erlang-verl
 %{?erlang_requires}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,22 +25,18 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 A plugin for Rebar3 that bundles providers to interact with Hex.
 
 %prep
-%setup -q -n rebar3_hex-%{version}
+%setup -q -T -c -a 0 -n rebar3_hex-%{version}
+tar -xzf contents.tar.gz
+%patch -P0 -p1
+rm -f rebar.lock
 
 %build
-rebar3 hex build
-
-%if %{with tests}
-rebar3 eunit -v
-%endif
+rebar3 compile
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir} \
-	$RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar3_hex-%{version}/ebin
-
-cp -p ebin/rebar.app $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar3_hex-%{version}/ebin
-cp -p ebin/*.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar3_hex-%{version}/ebin
+install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar3_hex-%{version}
+cp -rp _build/default/lib/rebar3_hex/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar3_hex-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -46,5 +44,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md
-%defattr(644,root,root,755)
-%{_libdir}/erlang/lib/*-*
+%{_libdir}/erlang/lib/rebar3_hex-%{version}
diff --git a/offline-local-deps.patch b/offline-local-deps.patch
new file mode 100644
index 0000000..6984e1b
--- /dev/null
+++ b/offline-local-deps.patch
@@ -0,0 +1,8 @@
+--- a/rebar.config
++++ b/rebar.config
+@@ -16,1 +16,1 @@
+-{project_plugins, [{covertool, "2.0.6"}, {rebar3_ex_doc, "0.2.30"}, {rebar3_hank, "1.4.0"}]}.
++{project_plugins, []}.
+@@ -18,1 +18,1 @@
+-{deps, [{hex_core, "0.12.2"}, {verl, "1.1.1"}]}.
++{deps, []}.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/erlang-rebar3-hex.git/commitdiff/a80d3a1844b19f210816c2d582dfc98785bbca3a



More information about the pld-cvs-commit mailing list