|
|
273c50 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
273c50 |
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
273c50 |
|
|
|
273c50 |
Name: tuna
|
|
|
273c50 |
Version: 0.11.1
|
|
|
75d4e5 |
Release: 6%{?dist}
|
|
|
273c50 |
License: GPLv2
|
|
|
273c50 |
Summary: Application tuning GUI & command line utility
|
|
|
273c50 |
Group: Applications/System
|
|
|
273c50 |
Source: http://userweb.kernel.org/~acme/tuna/%{name}-%{version}.tar.bz2
|
|
|
273c50 |
Patch1: spec-Mark-configuration-files-with-config.patch
|
|
|
273c50 |
Patch2: git-housekeeping-Add-the-.gitattributes-file.patch
|
|
|
273c50 |
Patch3: CLI-fix-ps_show_thread-call-with-bad-args-count.patch
|
|
|
273c50 |
Patch4: spec-Show-where-the-original-source-comes-from-in-co.patch
|
|
|
75d4e5 |
Patch5: tuna-modified-sysctl-settings-in-example.conf.patch
|
|
|
75d4e5 |
Patch6: CLI-fix-traceback-where-enter-p-policy-without-prio.patch
|
|
|
75d4e5 |
|
|
|
273c50 |
URL: http://userweb.kernel.org/~acme/tuna/
|
|
|
273c50 |
# Real source is now at git://git.kernel.org/pub/scm/utils/tuna/tuna
|
|
|
273c50 |
BuildArch: noarch
|
|
|
273c50 |
BuildRequires: python-devel, gettext
|
|
|
273c50 |
Requires: python-ethtool
|
|
|
273c50 |
Requires: python-linux-procfs >= 0.4.5
|
|
|
273c50 |
Requires: python-schedutils >= 0.2
|
|
|
273c50 |
# This really should be a Suggests...
|
|
|
273c50 |
# Requires: python-inet_diag
|
|
|
273c50 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
273c50 |
|
|
|
273c50 |
%description
|
|
|
273c50 |
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
|
|
|
273c50 |
per thread/IRQ level. Allows isolating CPUs for use by a specific application
|
|
|
273c50 |
and moving threads and interrupts to a CPU by just dragging and dropping them.
|
|
|
273c50 |
Operations can be done on CPU sockets, understanding CPU topology.
|
|
|
273c50 |
|
|
|
273c50 |
Can be used as a command line utility without requiring the GUI libraries to be
|
|
|
273c50 |
installed.
|
|
|
273c50 |
|
|
|
273c50 |
%package -n oscilloscope
|
|
|
273c50 |
Summary: Generic graphical signal plotting tool
|
|
|
273c50 |
Group: Applications/System
|
|
|
273c50 |
Requires: python-matplotlib
|
|
|
273c50 |
Requires: numpy
|
|
|
273c50 |
Requires: pygtk2
|
|
|
273c50 |
Requires: tuna = %{version}-%{release}
|
|
|
273c50 |
|
|
|
273c50 |
%description -n oscilloscope
|
|
|
273c50 |
Plots stream of values read from standard input on the screen together with
|
|
|
273c50 |
statistics and a histogram.
|
|
|
273c50 |
|
|
|
273c50 |
Allows to instantly see how a signal generator, such as cyclictest, signaltest
|
|
|
273c50 |
or even ping, reacts when, for instance, its scheduling policy or real time
|
|
|
273c50 |
priority is changed, be it using tuna or plain chrt & taskset.
|
|
|
273c50 |
|
|
|
273c50 |
%prep
|
|
|
273c50 |
%setup -q
|
|
|
273c50 |
%patch1 -p1
|
|
|
273c50 |
%patch2 -p1
|
|
|
273c50 |
%patch3 -p1
|
|
|
273c50 |
%patch4 -p1
|
|
|
75d4e5 |
%patch5 -p1
|
|
|
75d4e5 |
%patch6 -p1
|
|
|
273c50 |
|
|
|
273c50 |
%build
|
|
|
273c50 |
%{__python} setup.py build
|
|
|
273c50 |
|
|
|
273c50 |
%install
|
|
|
273c50 |
rm -rf %{buildroot}
|
|
|
273c50 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
273c50 |
mkdir -p %{buildroot}/%{_sysconfdir}/tuna/
|
|
|
273c50 |
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads,%{_mandir}/man8}
|
|
|
273c50 |
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
|
|
|
273c50 |
install -p -m644 tuna/tuna_gui.glade %{buildroot}/%{_datadir}/tuna/
|
|
|
273c50 |
install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna
|
|
|
273c50 |
install -p -m755 oscilloscope-cmd.py %{buildroot}/%{_bindir}/oscilloscope
|
|
|
273c50 |
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/
|
|
|
273c50 |
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
|
|
|
273c50 |
install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/
|
|
|
273c50 |
install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/
|
|
|
273c50 |
install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/
|
|
|
273c50 |
|
|
|
273c50 |
# l10n-ed message catalogues
|
|
|
273c50 |
for lng in `cat po/LINGUAS`; do
|
|
|
273c50 |
po=po/"$lng.po"
|
|
|
273c50 |
mkdir -p %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
|
|
|
273c50 |
msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
|
|
|
273c50 |
done
|
|
|
273c50 |
|
|
|
273c50 |
%find_lang %name
|
|
|
273c50 |
|
|
|
273c50 |
%clean
|
|
|
273c50 |
rm -rf %{buildroot}
|
|
|
273c50 |
|
|
|
273c50 |
%files -f %{name}.lang
|
|
|
273c50 |
%defattr(-,root,root,-)
|
|
|
273c50 |
%doc ChangeLog
|
|
|
273c50 |
%if "%{python_ver}" >= "2.5"
|
|
|
273c50 |
%{python_sitelib}/*.egg-info
|
|
|
273c50 |
%endif
|
|
|
273c50 |
%{_bindir}/tuna
|
|
|
273c50 |
%{_datadir}/tuna/
|
|
|
273c50 |
%{python_sitelib}/tuna/
|
|
|
273c50 |
%{_mandir}/man8/tuna.8*
|
|
|
273c50 |
%config(noreplace) %{_sysconfdir}/tuna.conf
|
|
|
273c50 |
%config %{_sysconfdir}/tuna/example.conf
|
|
|
273c50 |
%{_datadir}/polkit-1/actions/org.tuna.policy
|
|
|
273c50 |
|
|
|
273c50 |
%files -n oscilloscope
|
|
|
273c50 |
%defattr(-,root,root,-)
|
|
|
273c50 |
%{_bindir}/oscilloscope
|
|
|
273c50 |
%doc docs/oscilloscope+tuna.html
|
|
|
273c50 |
%doc docs/oscilloscope+tuna.pdf
|
|
|
273c50 |
|
|
|
273c50 |
%changelog
|
|
|
75d4e5 |
* Tue Mar 10 2014 John Kacur <jkacur@redhat.com> - 0.11.1-6
|
|
|
75d4e5 |
- tuna-modified-sysctl-settings-in-example.conf (1031582)
|
|
|
75d4e5 |
- CLI-fix-traceback-where-enter-p-policy-without-prio (1035794)
|
|
|
75d4e5 |
Resolves: rhbz#1035794
|
|
|
75d4e5 |
|
|
|
75d4e5 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.11.1-5
|
|
|
75d4e5 |
- Mass rebuild 2013-12-27
|
|
|
75d4e5 |
|
|
|
273c50 |
* Thu Nov 07 2013 John Kacur <jkacxur@redhat.com> - 0.11.1-4
|
|
|
273c50 |
- tuna: Do polkit auth for GUI BZ:919212,974027 (996885)
|
|
|
273c50 |
- tuna: Auto Correction for config file errors (1015062)
|
|
|
273c50 |
- Rebased to 0.11.1 upstream
|
|
|
273c50 |
Resolves: rhbz#996885
|
|
|
273c50 |
Resolves: rhbz#1015062
|
|
|
273c50 |
|
|
|
273c50 |
* Thu Aug 22 2013 John Kacur <jkacur@redhat.com> - 0.11-3
|
|
|
273c50 |
- spec: Mark configuration files with %config (998984)
|
|
|
273c50 |
- spec: Document the real location of the source in a comment (998987)
|
|
|
273c50 |
- CLI: fix ps_show_thread call with bad args count (1000025)
|
|
|
273c50 |
|
|
|
273c50 |
* Tue Jun 11 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-2
|
|
|
273c50 |
- changed dependencies from python-numeric to numpy
|
|
|
273c50 |
- merged spec changes from upstream
|
|
|
273c50 |
|
|
|
273c50 |
* Thu Jun 6 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-1
|
|
|
273c50 |
- New upstream release
|
|
|
273c50 |
|
|
|
273c50 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
|
|
|
273c50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
273c50 |
|
|
|
273c50 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
|
|
|
273c50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
273c50 |
|
|
|
273c50 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
|
|
|
273c50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
273c50 |
|
|
|
273c50 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
|
|
|
273c50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
273c50 |
|
|
|
273c50 |
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.1-2
|
|
|
273c50 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
273c50 |
|
|
|
273c50 |
* Thu Sep 03 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9.1-1
|
|
|
273c50 |
- New upstream release
|
|
|
273c50 |
|
|
|
273c50 |
* Wed Aug 26 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-3
|
|
|
273c50 |
- Rewrite the oscilloscope package summary
|
|
|
273c50 |
- Remove the shebang in tuna/oscilloscope.py
|
|
|
273c50 |
|
|
|
273c50 |
* Mon Aug 17 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-2
|
|
|
273c50 |
- Use install -p
|
|
|
273c50 |
- Add BuildRequires for gettext
|
|
|
273c50 |
|
|
|
273c50 |
* Fri Jul 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-1
|
|
|
273c50 |
- Fedora package reviewing changes: introduce ChangeLog file
|