Add instructions for OpenSUSE/SLES

Signed-off-by: lb1107039128 <liubo1@xfusion.com>
This commit is contained in:
lb1107039128 2024-01-10 11:31:25 +08:00
parent 45e3e1bd5c
commit 98467bf138
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,35 @@
From c52e13bd3c47fac67febcf86e6e5f0aedd960885 Mon Sep 17 00:00:00 2001
From: Gabriele <gsantomaggio@suse.com>
Date: Tue, 19 Feb 2019 09:51:27 +0100
Subject: [PATCH] Add instructions for OpenSUSE/SLES
---
README.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/README.md b/README.md
index 74d6a15..756480b 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,18 @@ On Debian/Ubuntu
```bash
dpkg -i erlang-sd-notify_{version}-1_amd64.deb
```
+
+On openSUSE/SLES distributions
+
+you can install the package using the openSUSE [repositories](https://build.opensuse.org/repositories/network:messaging:amqp/erlang-sd_notify)
+
+for example for Leap15:
+```bash
+sudo zypper addrepo -f https://download.opensuse.org/repositories/network:/messaging:/amqp/openSUSE_Leap_15/network:messaging:amqp.repo
+sudo zypper --gpg-auto-import-keys refresh
+sudo zypper install erlang-sd_notify
+```
+
Build from source using Docker
===
--
2.42.0.windows.2

View File

@ -2,7 +2,7 @@
%global upstream systemd
Name: erlang-sd_notify
Version: 1.0
Release: 1
Release: 2
Summary: Erlang interface to systemd notify subsystem
License: MIT
URL: https://github.com/systemd/erlang-sd_notify
@ -10,11 +10,14 @@ Source0: https://github.com/systemd/erlang-sd_notify/archive/v%{version}/erlang-
BuildRequires: erlang-rebar
BuildRequires: gcc
BuildRequires: systemd-devel
Patch0001: 0001-Add-instructions-for-OpenSUSE-SLES.patch
%description
%{summary}.
%prep
%autosetup
%autosetup -p1
%build
%{erlang_compile}
@ -30,5 +33,8 @@ BuildRequires: systemd-devel
%{erlang_appdir}/
%changelog
* Wed Jan 10 2024 liubo <liubo1@xfusion.com> - 1.0-2
- Add instructions for OpenSUSE/SLES
* Sat Aug 29 2020 yaokai <yaokai13@huawei.com> - 1.0-1
- package init