summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-14 06:40:17 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-14 06:40:17 +0000
commit54ff35e17c61825bba32387ef3ff24340fd24ca2 (patch)
treebdbdcf4ebce29e9af5aa6167a108a481a8e093af
parentf5010161e248ae95596ac161907ab9cb5533b142 (diff)
automatic import of tiniopeneuler22.03_LTS_SP4
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--tini.spec52
3 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1b0dfa7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tini-0.19.0.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..54c96fc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+72935bca9232313409a052833068fb1d tini-0.19.0.tar.gz
diff --git a/tini.spec b/tini.spec
new file mode 100644
index 0000000..cd1333e
--- /dev/null
+++ b/tini.spec
@@ -0,0 +1,52 @@
+Name: tini
+Version: 0.19.0
+Release: 1
+Summary: A tiny but valid init for containers
+
+License: MIT
+URL: https://github.com/krallin/tini
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: glibc-static
+BuildRequires: sed
+
+%description
+Tini is the simplest init you could think of.
+
+All Tini does is spawn a single child (Tini is meant to be run in a container),
+and wait for it to exit all the while reaping zombies and performing signal
+forwarding.
+
+%package static
+Summary: Standalone static build of %{name}
+%description static
+This package contains a standalone static build of %{name}, meant to be used
+inside a container.
+
+%prep
+%autosetup
+# Do not strip binaries
+sed -i CMakeLists.txt -e 's/ -Wl,-s//'
+
+%build
+%cmake
+%__cmake --build . %{?_smp_mflags} --verbose
+
+%install
+DESTDIR="%{buildroot}" %__cmake --install .
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/tini
+
+%files static
+%license LICENSE
+%doc README.md
+%{_bindir}/tini-static
+
+%changelog
+* Wed Mar 22 2023 lichaoran <pkwarcraft@hotmail.com> - 0.19.0-1
+- Initial package