[packages/tini] put static tiny to subpackage

glen glen at pld-linux.org
Mon Mar 21 08:01:41 CET 2016


commit 7accc20259262387f08650bf48c3394a07b6e93f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 21 09:01:29 2016 +0200

    put static tiny to subpackage

 tini.spec | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/tini.spec b/tini.spec
index 6aff404..3ee31fc 100644
--- a/tini.spec
+++ b/tini.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	static		# don't build static version
+
 Summary:	A tiny but valid init process for containers
 Name:		tini
 Version:	0.9.0
@@ -17,6 +21,13 @@ 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:	Statically linked tini
+Group:		Base
+
+%description static
+Statically linked tini.
+
 %prep
 %setup -q
 
@@ -38,4 +49,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE
 %attr(755,root,root) %{_bindir}/tini
+
+%files static
+%defattr(644,root,root,755)
+%doc LICENSE
 %attr(755,root,root) %{_bindir}/tini-static
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tini.git/commitdiff/7accc20259262387f08650bf48c3394a07b6e93f



More information about the pld-cvs-commit mailing list