Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added RPM SPEC file including build script
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |