]> git.pld-linux.org Git - packages/stalld.git/commitdiff
- new auto/th/stalld-1.3.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Dec 2020 18:27:59 +0000 (19:27 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Dec 2020 18:27:59 +0000 (19:27 +0100)
stalld.spec [new file with mode: 0644]

diff --git a/stalld.spec b/stalld.spec
new file mode 100644 (file)
index 0000000..479fcbf
--- /dev/null
@@ -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*
This page took 0.134304 seconds and 4 git commands to generate.