[packages/erlang-verl: 1/2] Initial

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


commit c141b54b45d306fbfb54c036af517eaa9df6e078
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Mar 12 23:11:54 2026 +0100

    Initial

 disable-project-plugins.patch |  5 +++++
 erlang-verl.spec              | 44 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
---
diff --git a/erlang-verl.spec b/erlang-verl.spec
new file mode 100644
index 0000000..e8b9caf
--- /dev/null
+++ b/erlang-verl.spec
@@ -0,0 +1,44 @@
+Summary:	SemVer2 version and requirements parsing for Erlang
+Name:		erlang-verl
+Version:	1.1.1
+Release:	1
+License:	Apache v2
+Group:		Development/Languages
+Source0:	https://repo.hex.pm/tarballs/verl-%{version}.tar
+# Source0-md5:	da68cacec8c9c105a4a3e1be0b0a88eb
+# Local patch: 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/verl
+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
+SemVer2 version and requirements parsing for Erlang.
+
+%prep
+%setup -q -T -c -a 0 -n verl-%{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/verl-%{version}
+cp -rp _build/default/lib/verl/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/verl-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{_libdir}/erlang/lib/verl-%{version}
diff --git a/disable-project-plugins.patch b/disable-project-plugins.patch
new file mode 100644
index 0000000..b682882
--- /dev/null
+++ b/disable-project-plugins.patch
@@ -0,0 +1,5 @@
+--- a/rebar.config
++++ b/rebar.config
+@@ -7,1 +7,1 @@
+-{project_plugins, [erlfmt, rebar3_proper, rebar3_hex, covertool, rebar3_lint, rebar3_hank]}.
++{project_plugins, []}.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/erlang-verl.git/commitdiff/095c7802dee0a18d5e96a3cc296744a582db7ad1



More information about the pld-cvs-commit mailing list