Merged from SVN repos fedora and centos

This commit is contained in:
Daniel Steiner
2017-02-22 18:21:37 +01:00
commit 49d82f1798
37 changed files with 6757 additions and 0 deletions

76
centos/SPECS/fio.spec Normal file
View File

@@ -0,0 +1,76 @@
Name: fio
Version: 2.14
Release: 2%{?dist}
Summary: Multithreaded IO generation tool
Group: Applications/System
License: GPLv2
URL: http://git.kernel.dk/?p=fio.git;a=summary
Source: http://brick.kernel.dk/snaps/%{name}-%{name}-%{version}.tar.gz
Patch0: generate_plots.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libaio-devel
BuildRequires: librdmacm-devel
BuildRequires: gtk2-devel
%ifarch x86_64
BuildRequires: librbd1-devel
%endif
%description
fio is an I/O tool that will spawn a number of threads or processes doing
a particular type of io action as specified by the user. fio takes a
number of global parameters, each inherited by the thread unless
otherwise parameters given to them overriding that setting is given.
The typical use of fio is to write a job file matching the io load
one wants to simulate.
%package gtkgui
Summary: GUI frontend for fio
Requires: %{name} = %{version}-%{release}
%description gtkgui
A cross-platform gtk-based GUI frontend (gfio) for fio
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0
%build
%{_configure} --enable-gfio
EXTFLAGS="$RPM_OPT_FLAGS" make V=1 %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install prefix=%{_prefix} mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/*
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/*
%files
%defattr(-,root,root,-)
%doc README REPORTING-BUGS COPYING HOWTO examples
%dir %{_datadir}/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}-*
%{_bindir}/%{name}2gnuplot
%{_bindir}/%{name}_latency2csv.py
%{_bindir}/%{name}logparser.py
%{_bindir}/%{name}logparser_hist.py
%{_bindir}/gen%{name}
%{_bindir}/%{name}_generate_plots
%{_mandir}/man1/*
%{_datadir}/%{name}/*
%files gtkgui
%{_bindir}/g%{name}
%changelog
* Fri Sep 30 2016 Daniel Steiner <dsteiner@redhat.com> 2.14-2
- Problem with fio_generate_plots script fixed, see patch.
* Fri Sep 30 2016 Daniel Steiner <dsteiner@redhat.com> 2.14-1
- New build for CentOS 7

86
centos/SPECS/nmon.spec Normal file
View File

@@ -0,0 +1,86 @@
%define ncv 30
%define ncn nmonchart
Name: nmon
Version: 16f
Release: 1%{?dist}
Summary: Nigel's performance Monitor for Linux
License: GPLv3
URL: http://nmon.sourceforge.net
Source0: https://sourceforge.net/projects/%{name}/files/lmon%{version}.c
Source1: https://sourceforge.net/projects/%{name}/files/Documentation.txt
# Manpage available from the patch archive:
# http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693
Source2: %{name}.1
Source3: http://sourceforge.net/projects/%{name}/files/%{ncn}%{ncv}.tar
BuildRequires: ncurses-devel
%description
nmon is a systems administrator, tuner, benchmark tool, which provides
information about CPU, disks, network, etc., all in one view.
%package charts
Summary: Webpage graphs from nmon data
Requires: gawk
Requires: ksh
Provides: /usr/bin/ksh
%description charts
nmonchart is a Korn shell script for AIX or Linux to convert nmon collected
files to a webpage (.html) including Google Chart and JavaScript to display
the top 53+ AIX and Linux Performance Graphs and configuration details.
%prep
%setup -T -c -n %{name}
sed -e "s/\r//" %{SOURCE1} > Documentation.txt
touch -c -r %{SOURCE1} Documentation.txt
cp %{SOURCE0} .
%build
%ifarch ppc %{power64}
%{__cc} %{optflags} -D JFS -D GETUSER \
-D LARGEMEM -lncurses -lm lmon%{version}.c -D POWER -o %{name}
%else
%{__cc} %{optflags} -D JFS -D GETUSER \
-D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name}
%endif
%install
install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
# extract and install nmonchart:
mkdir %{ncn}%{ncv}
pushd %{ncn}%{ncv}
tar xf %{S:3}
install -D -p -m 0755 %{ncn} %{buildroot}%{_bindir}/%{ncn}
install -D -p -m 0644 README %{buildroot}%{_docdir}/%{ncn}/README
install -D -p -m 0644 nmonchart_cron %{buildroot}%{_docdir}/%{ncn}/nmonchart_cron
install -D -p -m 0644 sampleC.html %{buildroot}%{_docdir}/%{ncn}/sampleC.html
install -D -p -m 0644 sampleC.nmon %{buildroot}%{_docdir}/%{ncn}/sampleC.nmon
popd
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/*
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/*
%files
%doc Documentation.txt
%{_mandir}/man1/%{name}.1.*
%{_bindir}/%{name}
%files charts
%{_docdir}/%{ncn}/README
%{_docdir}/%{ncn}/nmonchart_cron
%{_docdir}/%{ncn}/sampleC.html
%{_docdir}/%{ncn}/sampleC.nmon
%{_bindir}/%{ncn}
%changelog
* Fri Sep 30 2016 Daniel Steiner <dsteiner@redhat.com> - 16f-1
- Update to latest version
* Fri Sep 30 2016 Daniel Steiner <dsteiner@redhat.com> - 16d-2
- First build for CentOS 7

View File

@@ -0,0 +1,82 @@
#
# spec file for package perl-Nagios-Plugin
#
# You can easy replace the Nagios::Plugin entries in scripts:
# sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' *.pl
%define cpan_name Monitoring-Plugin
Name: perl-%cpan_name
Summary: A family of perl modules to streamline writing Nagios plugins
License: Artistic-1.0 ; GPL-2.0+
Group: Development/Languages/Perl
Version: 0.39
Release: 1%{?dist}
Url: http://search.cpan.org/dist/Monitoring-Plugin/
Provides: %cpan_name = %{version}-%{release}
Provides: Nagios-Plugin
Obsoletes: perl-Nagios-Plugin
%perl_requires
Requires: perl-Class-Accessor
Requires: perl-Config-Tiny
Requires: perl-Math-Calc-Units
Requires: perl-Params-Validate
BuildRequires: perl
BuildRequires: perl-Class-Accessor
BuildRequires: perl-Config-Tiny
BuildRequires: perl-Math-Calc-Units
BuildRequires: perl-Params-Validate
BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: perl-macros
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Monitoring::Plugin and its associated Monitoring::Plugin::* modules are a family of
perl modules to streamline writing Monitoring plugins. The main end user modules
are Monitoring::Plugin, providing an object-oriented interface to the entire
Monitoring::Plugin::* collection, and Monitoring::Plugin::Functions, providing a
simpler functional interface to a useful subset of the available functionality.
The purpose of the collection is to make it as simple as possible for
developers to create plugins that conform the Monitoring Plugin guidelines
(http://nagiosplug.sourceforge.net/developer-guidelines.html).
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%if 0%{?fedora} > 18 && 0%{?rhel} >= 6 && 0%{?suse_version} >= 1010
%check
make test
%endif
%install
%perl_make_install
%perl_process_packlist
%post
# only execute the replacement, if it is an update!
if [ -d "/usr/lib64/nagios/plugins" ]; then
cd /usr/lib64/nagios/plugins && \
for f in `grep -l 'Nagios::Plugin' *`; do sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' $f; done
elif [ -d "/usr/lib/nagios/plugins" ]; then
cd /usr/lib/nagios/plugins && \
for f in `grep -l 'Nagios::Plugin' *`; do sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' $f; done
fi
%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Monitoring
%{perl_vendorarch}/auto/Monitoring
%changelog
* Fri Mar 25 2016 <elpito@bluewin.ch>
- New initial package, but is forked of perl-Nagios-Plugin.

44
centos/SPECS/pydf.spec Normal file
View File

@@ -0,0 +1,44 @@
Summary: Fully colorized df clone written in python
Name: pydf
Version: 12
Release: 01.tvd%{?dist}
License: Public Domain
Group: Applications/System
Source: https://pypi.python.org/packages/source/p/pydf/%{name}-%{version}.tar.gz
URL: https://pypi.python.org/pypi/pydf
Requires: python >= 2.3
BuildArch: noarch
%description
pydf displays the amount of used and available space on your file systems,
just like df, but in colors. The output format is completely customizable.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
install -p %{name} $RPM_BUILD_ROOT%{_bindir}
install -p %{name}rc $RPM_BUILD_ROOT%{_sysconfdir}
install -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 README
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.gz INSTALL COPYING
%attr(755,root,root) %{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_mandir}/man1/%{name}.1.gz
%changelog
* Fri Mar 25 2016 Daniel Steiner <elpito@bluewin.ch>
- Initial package for CentOS 7.