Blame SPECS/tuna.spec

29a993
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
29a993
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
29a993
29a993
Name: tuna
29a993
Version: 0.13
29a993
Release: 6%{?dist}
29a993
License: GPLv2
29a993
Summary: Application tuning GUI & command line utility
29a993
Group: Applications/System
29a993
Source: https://www.kernel.org/pub/software/utils/tuna/%{name}-%{version}.tar.xz
29a993
29a993
Patch1: tuna-cpuview.py-Omit-offline-cpus-in-socket_ids-list.patch
29a993
Patch2: display-usage-instead-of-traceback-when-c-missing-args.patch
29a993
Patch3: CLI-start-a-process-from-tuna.patch
29a993
Patch4: docs-upgrade-tuna.8-man-page-with-option-r.patch
29a993
Patch5: tuna-Use-errno-codes-instead-of-numbers.patch
29a993
Patch6: tuna-isolate_cpus-exit-with-a-message.patch
29a993
29a993
URL: https://git.kernel.org/pub/scm/utils/tuna/tuna.git
29a993
BuildArch: noarch
29a993
BuildRequires: python-devel, gettext, desktop-file-utils
29a993
Requires: python-ethtool
29a993
Requires: python-linux-procfs >= 0.4.5
29a993
Requires: python-schedutils >= 0.2
29a993
# This really should be a Suggests...
29a993
# Requires: python-inet_diag
29a993
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
29a993
29a993
%description
29a993
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
29a993
per thread/IRQ level. Allows isolating CPUs for use by a specific application
29a993
and moving threads and interrupts to a CPU by just dragging and dropping them.
29a993
Operations can be done on CPU sockets, understanding CPU topology.
29a993
29a993
Can be used as a command line utility without requiring the GUI libraries to be
29a993
installed.
29a993
29a993
%package -n oscilloscope
29a993
Summary: Generic graphical signal plotting tool
29a993
Group: Applications/System
29a993
Requires: python-matplotlib
29a993
Requires: numpy
29a993
Requires: pygtk2
29a993
Requires: tuna = %{version}-%{release}
29a993
29a993
%description -n oscilloscope
29a993
Plots stream of values read from standard input on the screen together with
29a993
statistics and a histogram.
29a993
29a993
Allows to instantly see how a signal generator, such as cyclictest, signaltest
29a993
or even ping, reacts when, for instance, its scheduling policy or real time
29a993
priority is changed, be it using tuna or plain chrt & taskset.
29a993
29a993
%prep
29a993
%setup -q
29a993
%patch1 -p1
29a993
%patch2 -p1
29a993
%patch3 -p1
29a993
%patch4 -p1
29a993
%patch5 -p1
29a993
%patch6 -p1
29a993
29a993
%build
29a993
%{__python} setup.py build
29a993
29a993
%install
29a993
rm -rf %{buildroot}
29a993
%{__python} setup.py install --skip-build --root %{buildroot}
29a993
mkdir -p %{buildroot}/%{_sysconfdir}/tuna/
29a993
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads,%{_mandir}/man8}
29a993
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
29a993
install -p -m644 tuna/tuna_gui.glade %{buildroot}/%{_datadir}/tuna/
29a993
install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna
29a993
install -p -m755 oscilloscope-cmd.py %{buildroot}/%{_bindir}/oscilloscope
29a993
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/
29a993
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
29a993
install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/
29a993
install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/
29a993
install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/
29a993
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications tuna.desktop
29a993
29a993
# l10n-ed message catalogues
29a993
for lng in `cat po/LINGUAS`; do
29a993
        po=po/"$lng.po"
29a993
        mkdir -p %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
29a993
        msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
29a993
done
29a993
29a993
%find_lang %name
29a993
29a993
%clean
29a993
rm -rf %{buildroot}
29a993
29a993
%files -f %{name}.lang
29a993
%defattr(-,root,root,-)
29a993
%doc ChangeLog
29a993
%if "%{python_ver}" >= "2.5"
29a993
%{python_sitelib}/*.egg-info
29a993
%endif
29a993
%{_bindir}/tuna
29a993
%{_datadir}/tuna/
29a993
%{python_sitelib}/tuna/
29a993
%{_mandir}/man8/tuna.8*
29a993
%config(noreplace) %{_sysconfdir}/tuna.conf
29a993
%config %{_sysconfdir}/tuna/example.conf
29a993
%{_datadir}/polkit-1/actions/org.tuna.policy
29a993
%{_datadir}/applications/tuna.desktop
29a993
29a993
%files -n oscilloscope
29a993
%defattr(-,root,root,-)
29a993
%{_bindir}/oscilloscope
29a993
%doc docs/oscilloscope+tuna.html
29a993
%doc docs/oscilloscope+tuna.pdf
29a993
29a993
%changelog
29a993
* Wed Sep 13 2017 John Kacur - 0.13-6
29a993
- Use errno codes instead of plain numbers
29a993
- Exit with a message instead of a traceback in isolate_cpus
29a993
Resolves: rhbz#1472840
29a993
29a993
* Mon Jun 13 2016 John Kacur - 0.13-5
29a993
- Rebuild to document
29a993
  tuna thows an exception instead of an error message when sched_setaffinity returns EINVAL
29a993
  This was actually fixed in v0.13-1
29a993
Resolves: rhbz#1290445
29a993
29a993
* Mon May 30 2016 John Kacur - 0.13-4
29a993
- CLI-start-a-process-from-tuna
29a993
- docs: upgrade tuna.8 man page with option -r
29a993
Resolves: rhbz#1235829
29a993
29a993
* Mon May 30 2016 John Kacur - 0.13-3
29a993
- Display usage instead of traceback when -c missing args or args is incorrect
29a993
Resolves: rhbz#1268287
29a993
29a993
* Mon May 30 2016 John Kacur - 0.13-2
29a993
- tuna: cpuview.py: Omit offline cpus in socket_ids list
29a993
Resolves: rhbz#1036156
29a993
29a993
* Tue May 24 2016 John Kacur - 0.13-1
29a993
- Upgrade to v0.13
29a993
- Remove patches that are included in 0.13
29a993
Resolves: rhbz#1235828
29a993
29a993
* Mon Dec 21 2015 John Kacur - 0.11.1-11
29a993
- tuna-fix-the-check-of-PF_NO_SETAFFINITY-flag-for-thr.patch
29a993
Resolves: rhbz#1286221
29a993
29a993
* Thu Jun 25 2015 John Kacur <jkacur@redhat.com> - 0.11.1-10
29a993
- dropped the git housekeeping patch, not relevant here
29a993
- docs-Remove-stray-a.patch
29a993
- CLI-Introduce-nohz_full-N-entity.patch
29a993
- tuna-config-Fix-pygtk-import.patch
29a993
- tuna-Make-isolate-include-operations-affect-proc-irq.patch
29a993
- tuna-Decide-whether-to-isolate-a-thread-based-on-PF_.patch
29a993
- tuna-Fix-race-in-is_hardirq_handler.patch
29a993
- CLI-Do-not-show-column-headers-when-not-outputting-t.patch
29a993
- Correct-a-typo-in-the-net.ipv4.ipfrag_time-help-stri.patch
29a993
Resolves: rhbz#1234963
29a993
29a993
* Wed May 27 2015 John Kacur <jkacur@redhat.com> - 0.11.1-9
29a993
- Fix-behavior-for-dot-inside-proc-sys-path.patch
29a993
Resolves: rhbz#1178917
29a993
29a993
* Mon Oct 20 2014 John Kacur <jkacur@redhat.com> - 0.11.1-8
29a993
- CLI-fix-traceback-due-unavailable-display.patch
29a993
Resolves: rhbz#1035853
29a993
29a993
* Fri Sep 12 2014 John Kacur <jkacur@redhat.com> - 0.11.1-7
29a993
- Add a tuna.desktop file
29a993
Resolves: rhbz#996954
29a993
29a993
* Tue Mar 11 2014 John Kacur <jkacur@redhat.com> - 0.11.1-6
29a993
- tuna-modified-sysctl-settings-in-example.conf (1031582)
29a993
- CLI-fix-traceback-where-enter-p-policy-without-prio (1035794)
29a993
Resolves: rhbz#1035794
29a993
29a993
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.11.1-5
29a993
- Mass rebuild 2013-12-27
29a993
29a993
* Thu Nov 07 2013 John Kacur <jkacxur@redhat.com> - 0.11.1-4
29a993
- tuna: Do polkit auth for GUI BZ:919212,974027 (996885)
29a993
- tuna: Auto Correction for config file errors (1015062)
29a993
- Rebased to 0.11.1 upstream
29a993
Resolves: rhbz#996885
29a993
Resolves: rhbz#1015062
29a993
29a993
* Thu Aug 22 2013 John Kacur <jkacur@redhat.com> - 0.11-3
29a993
- spec: Mark configuration files with %config (998984)
29a993
- spec: Document the real location of the source in a comment (998987)
29a993
- CLI: fix ps_show_thread call with bad args count (1000025)
29a993
29a993
* Tue Jun 11 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-2
29a993
- changed dependencies from python-numeric to numpy
29a993
- merged spec changes from upstream
29a993
29a993
* Thu Jun  6 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-1
29a993
- New upstream release
29a993
29a993
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
29a993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
29a993
29a993
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
29a993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
29a993
29a993
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
29a993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
29a993
29a993
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
29a993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
29a993
29a993
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.1-2
29a993
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
29a993
29a993
* Thu Sep 03 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9.1-1
29a993
- New upstream release
29a993
29a993
* Wed Aug 26 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-3
29a993
- Rewrite the oscilloscope package summary
29a993
- Remove the shebang in tuna/oscilloscope.py
29a993
29a993
* Mon Aug 17 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-2
29a993
- Use install -p
29a993
- Add BuildRequires for gettext
29a993
29a993
* Fri Jul 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-1
29a993
- Fedora package reviewing changes: introduce ChangeLog file