[packages/erlang-sd_notify] Up to 0.10
arekm
arekm at pld-linux.org
Thu May 21 15:31:50 CEST 2026
commit 3301b2f0ddf0da51dc6573c30127bfed04fd00e9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:31:34 2026 +0200
Up to 0.10
erlang-sd_notify.spec | 24 +++++++++++++-----------
rebar3-pc.patch | 12 ++++++++++++
2 files changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/erlang-sd_notify.spec b/erlang-sd_notify.spec
index b99c6f9..84227fc 100644
--- a/erlang-sd_notify.spec
+++ b/erlang-sd_notify.spec
@@ -3,14 +3,16 @@
Summary: Erlang bindings for systemd-notify subsystem
Name: erlang-sd_notify
-Version: 0.1
-Release: 3
+Version: 0.10
+Release: 1
License: MIT
Group: Development/Languages
Source0: https://github.com/lemenkov/erlang-sd_notify/tarball/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: c271c733a9ff626932961ba69fe6b0c6
+# Source0-md5: d9382f271a73dc830ec6c12a8ba8e943
+Patch0: rebar3-pc.patch
URL: https://support.process-one.net/doc/display/EXMPP/exmpp+home
-BuildRequires: erlang-rebar
+BuildRequires: erlang-rebar3
+BuildRequires: erlang-rebar3-pc
BuildRequires: systemd-devel
Requires: erlang
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,22 +24,22 @@ Erlang bindings for systemd-notify subsystem.
%setup -qc
mv lemenkov-erlang-sd_notify-*/* .
%{__rm} -r lemenkov-erlang-sd_notify-*
+%patch -P0 -p1
%build
-%{__make} \
- CFLAGS="%{rpmcflags}" \
- LDFLAGS="%{rpmldflags} -lsystemd" \
- REBAR=%{_bindir}/rebar \
- REBAR_FLAGS="-v"
+export REBAR_OFFLINE=1
+export CFLAGS="%{rpmcflags}"
+export LDFLAGS="%{rpmldflags}"
+rebar3 compile
%if %{with tests}
-%{__make} test
+rebar3 eunit
%endif
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/{priv,ebin}
-cp -p ebin/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/ebin
+cp -p _build/default/lib/sd_notify/ebin/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/ebin
cp -p priv/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/priv
%clean
diff --git a/rebar3-pc.patch b/rebar3-pc.patch
new file mode 100644
index 0000000..aff96e0
--- /dev/null
+++ b/rebar3-pc.patch
@@ -0,0 +1,12 @@
+--- erlang-sd_notify-0.10/rebar.config.orig 2016-06-26 09:44:16.000000000 +0200
++++ erlang-sd_notify-0.10/rebar.config 2026-05-21 01:23:58.846446968 +0200
+@@ -1,3 +1,9 @@
++{plugins, [pc]}.
++
+ {port_env, [{"LDFLAGS", "$LDFLAGS -lsystemd"}]}.
+
++{port_specs, [{"priv/sd_notify_drv.so", ["c_src/*.c"]}]}.
++
++{provider_hooks, [{post, [{compile, {pc, compile}}, {clean, {pc, clean}}]}]}.
++
+ {erl_opts, [debug_info, warnings_as_errors]}.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/erlang-sd_notify.git/commitdiff/3301b2f0ddf0da51dc6573c30127bfed04fd00e9
More information about the pld-cvs-commit
mailing list