2 %bcond_without tests # build without tests
4 Summary: Erlang bindings for systemd-notify subsystem
9 Group: Development/Languages
10 Source0: https://github.com/lemenkov/erlang-sd_notify/tarball/%{version}/%{name}-%{version}.tar.bz2
11 # Source0-md5: c271c733a9ff626932961ba69fe6b0c6
12 URL: https://support.process-one.net/doc/display/EXMPP/exmpp+home
13 BuildRequires: erlang-rebar
14 BuildRequires: systemd-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Erlang bindings for systemd-notify subsystem.
23 mv lemenkov-erlang-sd_notify-*/* .
24 %{__rm} -r lemenkov-erlang-sd_notify-*
28 CFLAGS="%{rpmcflags}" \
29 LDFLAGS="%{rpmldflags} -lsystemd" \
30 REBAR=%{_bindir}/rebar \
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/{priv,ebin}
40 cp -p ebin/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/ebin
41 cp -p priv/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/priv
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %dir %{_libdir}/erlang/lib/sd_notify-%{version}
49 %dir %{_libdir}/erlang/lib/sd_notify-%{version}/ebin
50 %{_libdir}/erlang/lib/sd_notify-%{version}/ebin/sd_notify.app
51 %{_libdir}/erlang/lib/sd_notify-%{version}/ebin/sd_notify.beam
52 %dir %{_libdir}/erlang/lib/sd_notify-%{version}/priv
53 %attr(755,root,root) %{_libdir}/erlang/lib/sd_notify-%{version}/priv/sd_notify_drv.so