Blob Blame History Raw
Name:           httpdtap
Version:        0.3
Release:        4%{?dist}
Summary:        Tool for querying httpd using SystemTap scripts
License:        ASL 2.0
URL:            https://github.com/hanzz/httpdtap
Source0:        https://github.com/hanzz/httpdtap/archive/v%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python2-devel
Requires:       systemtap-client

%description
HttpdTap is collection of useful SystemTap scripts to query running httpd
server to get information like files accessed during a request, time needed
to dispatch a request, the list of requests slower than N milliseconds or
the list of requests sent from particular IP address. Thanks to SystemTap
the performance penalty is very low and therefore the HttpdTap can be used
even on production systems.

%prep
%setup -q

# Remove shebang from .stp scripts, because they are executed only using
# httpdtap in Fedora
sed -i -e '/^#! \//, 1d' scripts-22/*.stp
sed -i -e '/^#! \//, 1d' scripts-24/*.stp

%build
%{__python} setup.py build

%install
%{__python} setup.py install --skip-build --root %{buildroot}

%files
%doc README.md LICENSE
%{_datadir}/httpdtap
%{_bindir}/httpdtap
%{python_sitelib}/*
%{_mandir}/man8/*.8*

%changelog
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Tue Apr 15 2014 Jan Kaluza <jkaluza@redhat.com> - 0.3-1
- update to version 0.3

* Thu Sep 26 2013 Jan Kaluza <jkaluza@redhat.com> - 0.2-2
- fix comment in manpage

* Tue Sep 10 2013 Jan Kaluza <jkaluza@redhat.com> - 0.2-1
- update to version 0.2
- remove shebang from .stp scripts

* Wed Aug 28 2013 Jan Kaluza <jkaluza@redhat.com> - 0.1-1
- Initial Fedora packaging