From a8916fa6f65c5ef3a9f9b501438ed7cd09b29a57 Mon Sep 17 00:00:00 2001 From: Andreas Guther Date: Sun, 10 Jan 2016 14:34:16 +0100 Subject: [PATCH] Added RPM SPEC file including build script --- .gitignore | 1 + build.sh | 11 +++++++++++ nmon.spec | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100755 build.sh create mode 100644 nmon.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..335ec95 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.tar.gz diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ae05483 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# defines +NAME=nmonchart +VERSION=23 + +# pack sources +tar -cvzf "${NAME}-${VERSION}.tar.gz" --exclude .git --exclude "*.tar.gz" --transform s/./"${NAME}-${VERSION}"/ ./* + +# run rpm build command +rpmbuild -ta "${NAME}-${VERSION}.tar.gz" diff --git a/nmon.spec b/nmon.spec new file mode 100644 index 0000000..21c4cf1 --- /dev/null +++ b/nmon.spec @@ -0,0 +1,32 @@ +Name: nmonchart +Version: 23 +Release: 1%{?dist} +Summary: Nigel's .nmon to .html transformer for Linux +License: GPLv3 +Group: Development/Tools +URL: http://nmon.sourceforge.net +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz + +Requires: ksh + +%description +The Korn shell script file nmonchart transforms .nmon performance capture files in to .html files for a webserver site. + +%prep +%setup -q + +%install +install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} + +%files +%doc nmonchart_license +%doc nmon_upload.html +%doc nmon_upload.php +%doc README +%doc sampleC.html +%doc sampleC.nmon +%{_bindir}/%{name} + +%changelog +* Sun Jan 10 2016 Andreas Guther - 23-1 +- Initial package based on version 23