]> git.pld-linux.org Git - packages/erlang-sd_notify.git/commitdiff
new package auto/th/erlang-sd_notify-0.1-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 25 Mar 2015 14:37:31 +0000 (15:37 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 25 Mar 2015 14:37:31 +0000 (15:37 +0100)
erlang-sd_notify.spec [new file with mode: 0644]

diff --git a/erlang-sd_notify.spec b/erlang-sd_notify.spec
new file mode 100644 (file)
index 0000000..2846e73
--- /dev/null
@@ -0,0 +1,53 @@
+
+%bcond_without tests           # build without tests
+
+Summary:       Erlang bindings for systemd-notify subsystem
+Name:          erlang-sd_notify
+Version:       0.1
+Release:       1
+License:       MIT
+Group:         Development/Languages
+Source0:       https://github.com/lemenkov/erlang-sd_notify/tarball/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: c271c733a9ff626932961ba69fe6b0c6
+URL:           https://support.process-one.net/doc/display/EXMPP/exmpp+home
+BuildRequires: erlang-rebar
+BuildRequires: systemd-devel
+Requires:      erlang
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Erlang bindings for systemd-notify subsystem.
+
+%prep
+%setup -qc
+mv lemenkov-erlang-sd_notify-*/* .
+%{__rm} -r lemenkov-erlang-sd_notify-*
+
+%build
+%{__make} \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags} -lsystemd-daemon" \
+       REBAR=%{_bindir}/rebar \
+       REBAR_FLAGS="-v"
+
+%if %{with tests}
+%{__make} test
+%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 priv/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/sd_notify-%{version}/priv
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{_libdir}/erlang/lib/sd_notify-%{version}
+%dir %{_libdir}/erlang/lib/sd_notify-%{version}/ebin
+%{_libdir}/erlang/lib/sd_notify-%{version}/ebin/sd_notify.app
+%{_libdir}/erlang/lib/sd_notify-%{version}/ebin/sd_notify.beam
+%dir %{_libdir}/erlang/lib/sd_notify-%{version}/priv
+%attr(755,root,root) %{_libdir}/erlang/lib/sd_notify-%{version}/priv/sd_notify_drv.so
This page took 0.091204 seconds and 4 git commands to generate.