[packages/stalld] - new
qboosh
qboosh at pld-linux.org
Wed Dec 16 19:27:31 CET 2020
commit 70881bdcfea63b6e4fd88d1e4da3c99fa02f77c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Dec 16 19:27:59 2020 +0100
- new
stalld.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
---
diff --git a/stalld.spec b/stalld.spec
new file mode 100644
index 0000000..479fcbf
--- /dev/null
+++ b/stalld.spec
@@ -0,0 +1,62 @@
+Summary: stalld - detect starving threads and boost them
+Summary(pl.UTF-8): stalld - wykrywanie głodujących wątków i przyspieszanie ich
+Name: stalld
+Version: 1.3.0
+Release: 1
+License: GPL v2
+Group: Applications/System
+Source0: https://www.kernel.org/pub/linux/utils/stalld/%{name}-%{version}.tar.xz
+# Source0-md5: aa0d27112d46c8c4d88595f0de8d935a
+URL: https://gitlab.com/rt-linux-tools/stalld
+BuildRequires: rpmbuild(macros) >= 1.644
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: systemd-units >= 38
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The stalld program (which stands for 'stall daemon') is a mechanism to
+prevent the starvation of operating system threads in a Linux system.
+
+%description -l pl.UTF-8
+Program stalld (skrót od "stall daemon") to mechanizm zapobiegający
+zagłodzeniu wątków systemu operacyjnego pod Linuksem.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -DVERSION=\\\"%{version}\\\"" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} -C redhat install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ UNITDIR=%{systemdunitdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%systemd_post stalld.service
+
+%preun
+%systemd_preun stalld.service
+
+%postun
+%systemd_reload
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/stalld
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stalld
+%{systemdunitdir}/stalld.service
+%{_mandir}/man8/stalld.8*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/stalld.git/commitdiff/70881bdcfea63b6e4fd88d1e4da3c99fa02f77c0
More information about the pld-cvs-commit
mailing list