Skip to content

Commit

Permalink
Added RPM SPEC file including build script
Browse files Browse the repository at this point in the history
  • Loading branch information
aguther committed Jan 10, 2016
1 parent f63ee43 commit a8916fa
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.tar.gz
11 changes: 11 additions & 0 deletions 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"
32 changes: 32 additions & 0 deletions 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 <github@guther.net> - 23-1
- Initial package based on version 23

0 comments on commit a8916fa

Please sign in to comment.