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