From fad6a605278187f74d0138993f1b45cdd846c4fc Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Wed, 29 Dec 2021 13:58:11 -0500 Subject: [PATCH] add spec file and ready release --- Makefile.am | 2 +- tasker.spec | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 tasker.spec diff --git a/Makefile.am b/Makefile.am index 4d8caea..4739566 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,7 +20,7 @@ # Authors: # Steve Grubb - +EXTRA_DIST = $(man_MANS) AM_CFLAGS = -D_GNU_SOURCE -fopenmp AM_CPPFLAGS = -I. AM_LDFLAGS = -fopenmp diff --git a/tasker.spec b/tasker.spec new file mode 100644 index 0000000..69108d2 --- /dev/null +++ b/tasker.spec @@ -0,0 +1,36 @@ +Summary: tasker - a parallel execution command +Name: tasker +Version: 0.9 +Release: 1%{?dist} +License: GPLv2+ +URL: https://github.com/stevegrubb/tasker +Packager: Steve Grubb +Source: %{name}-%{version}.tar.gz +BuildRequires: gcc make + + +%description +Tasker is a program that takes a list from stdin and runs the given command +passing one line from stdin to the command. It determines how many cores to +use, sets affinity to specific hyperthreads, and keeps all hyperthreads busy +until the input pipeline is complete. + +%prep +%setup -q + +%build +%configure +make CFLAGS="%{optflags}" %{?_smp_mflags} + +%install +make DESTDIR="%{buildroot}" INSTALL='install -p' install + +%files +%defattr(755, root, root) +%{_bindir}/* +%{_mandir}/* + +%changelog +* Wed Dec 29 2021 Steve Grubb 0.9-1 +- Created initial package. +