c11499
Name: tuna
6cd7b6
Version: 0.18
5aedf2
Release: 6%{?dist}
c11499
License: GPLv2
c11499
Summary: Application tuning GUI & command line utility
c11499
Group: Applications/System
d41e1b
Source: https://www.kernel.org/pub/software/utils/tuna/%{name}-%{version}.tar.xz
c11499
URL: https://git.kernel.org/pub/scm/utils/tuna/tuna.git
d41e1b
c11499
BuildArch: noarch
c11499
BuildRequires: python3-devel, gettext
c11499
Requires: python3-linux-procfs >= 0.6
c11499
# This really should be a Suggests...
c11499
# Requires: python-inet_diag
c11499
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
c11499
c11499
# PATCHES
5aedf2
Patch1: tuna-Replace-python_ethtool-with-builtin-funtionalit.patch
5aedf2
Patch2: tuna-Fix-matching-irqs-in-ps_show_thread.patch
5aedf2
Patch3: tuna-tuna.py-use-fstrings.patch
5aedf2
Patch4: tuna-tuna_gui.py-use-fstrings.patch
5aedf2
Patch5: tuna-tuna-cmd.py-use-fstrings.patch
5aedf2
Patch6: tuna-Adapt-show_threads-cgroup-output-to-terminal-si.patch
5aedf2
Patch7: tuna-Fix-show_threads-cgroup-without-a-term.patch
c11499
c11499
%description
c11499
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
c11499
per thread/IRQ level. Allows isolating CPUs for use by a specific application
c11499
and moving threads and interrupts to a CPU by just dragging and dropping them.
c11499
Operations can be done on CPU sockets, understanding CPU topology.
c11499
c11499
Can be used as a command line utility without requiring the GUI libraries to be
c11499
installed.
c11499
c11499
%prep
5aedf2
%autosetup -p1
c11499
c11499
%build
c11499
%{__python3} setup.py build
c11499
c11499
%install
c11499
rm -rf %{buildroot}
c11499
%{__python3} setup.py install --skip-build --root %{buildroot}
c11499
mkdir -p %{buildroot}/%{_sysconfdir}/tuna/
c11499
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads,%{_mandir}/man8}
c11499
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
c11499
install -p -m644 tuna/tuna_gui.glade %{buildroot}/%{_datadir}/tuna/
c11499
install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna
c11499
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/
c11499
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
c11499
install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/
c11499
install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/
c11499
install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/
c11499
c11499
# Manually fix the shebang
c11499
pathfix.py -pni "%{__python3}" %{buildroot}%{_bindir}/tuna
c11499
c11499
# l10n-ed message catalogues
c11499
for lng in `cat po/LINGUAS`; do
c11499
        po=po/"$lng.po"
c11499
        mkdir -p %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
c11499
        msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
c11499
done
c11499
c11499
%find_lang %name
c11499
c11499
%clean
c11499
rm -rf %{buildroot}
c11499
c11499
%files -f %{name}.lang
c11499
%defattr(-,root,root,-)
c11499
%doc ChangeLog
c11499
%{python3_sitelib}/*.egg-info
c11499
%{_bindir}/tuna
c11499
%{_datadir}/tuna/
c11499
%{python3_sitelib}/tuna/
c11499
%{_mandir}/man8/tuna.8*
c11499
%{_sysconfdir}/tuna.conf
c11499
%{_sysconfdir}/tuna/*
c11499
%{_datadir}/polkit-1/actions/org.tuna.policy
c11499
c11499
%changelog
5aedf2
* Wed Nov 23 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.18-6
5aedf2
- Fix show_threads --cgroups without a term
5aedf2
Resolves: rhbz#2121518
5aedf2
5aedf2
* Fri Nov 18 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.18-5
5aedf2
- Adapt show_threads cgroup output to terminal size
5aedf2
Resolves: rhbz#2121518
5aedf2
5aedf2
* Wed Nov 02 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.18-4
5aedf2
- Use f-strings in tuna where possible
5aedf2
Resolves: rhbz#2120805
5aedf2
5aedf2
* Mon Oct 03 2022 John Kacur <jkacur@redhat.com> - 0.18-3
5aedf2
- Match irqs with "irqs/"
5aedf2
Resolves: rhbz#2131353
5aedf2
5aedf2
* Fri Sep 30 2022 John Kacur <jkacur@redhat.com> - 0.18-2
5aedf2
- Replace dependency on python-ethtool with built-in functionality
5aedf2
Resolves: rhbz#2123753
5aedf2
6cd7b6
* Wed Jun 29 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.18-1
6cd7b6
- Rebase to upstream version 0.18
6cd7b6
Resolves: rhbz#2073555
6cd7b6
6cd7b6
* Thu May 19 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.17-3
6cd7b6
- Add logging infrastructure to tuna
6cd7b6
- Add cleanlogs rule to Makefile
6cd7b6
Resolves: rhbz#2062882
6cd7b6
6cd7b6
* Mon Apr 11 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.17-2
6cd7b6
- Fix typo for variable parm
6cd7b6
- Handle get_policy_and_rtprio exceptions
6cd7b6
- Remove finally block in get_policy_and_rtprio
6cd7b6
Resolves: rhbz#2049746
6cd7b6
8017ad
* Thu Jan 13 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.17-1
8017ad
- Rebase to upstream version 0.17
8017ad
- Fix ModuleNotFoundError
8017ad
Resolves: rhbz#2012306
8017ad
8017ad
* Tue Dec 14 2021 John Kacur <jkacur@redhat.com> - 0.16-5
8017ad
- Display correct cpu-affinity when a cpu is disabled
8017ad
Resolves: rhbz#2032614
8017ad
8017ad
* Wed Nov 10 2021 John Kacur <jkacur@redhat.com> - 0.16-4
8017ad
- Make it clear in online help and man pages that --include and --isolate
8017ad
  affect IRQs as well as threads
8017ad
Resolves: rhbz#1886804
8017ad
8017ad
* Thu Oct 28 2021 John Kacur <jkacur@redhat.com> - 0.16-3
8017ad
- Print warning if setaffinity causes EBUSY and continue
8017ad
Resolves: rhbz#2018285
8017ad
8017ad
* Tue Oct 26 2021 Leah Leshchinsky <lleshchi@redhat.com> - 0.16-2
8017ad
- Add distinction between --spread and --move to error message
8017ad
Resolves: rhbz#2012241
8017ad
3e7389
* Wed Jun 30 2021 John Kacur <jkacur@redhat.com> - 0.16-1
3e7389
- Upgrade to latest upstream
3e7389
Resolves: rhbz#1947069
3e7389
d41e1b
* Thu Jan 21 2021 John Kacur <jkacur@redhat.com> - 0.15-1
d41e1b
- Upgrade to latest upstream code
d41e1b
- Upstream drops python-schedutils and uses built-in schedutils
d41e1b
Resolves: rhbz#1890558
d41e1b
c11499
* Tue Apr 02 2019 Clark Williams <williams@redhat.com> - 0.14-4
c11499
- added OSCI gating framework
c11499
Resolves: rhbz#1682423
c11499
c11499
* Fri Feb 01 2019 John Kacur <jkacur@redhat.com> - 0.14-3
c11499
- fix undefined global name stderr
c11499
Resolves: rhbz#1671440
c11499
c11499
* Tue Dec 04 2018 John Kacur <jkacur@redhat.com> - 0.14-2
c11499
- Add method to compare class cpu for sorting
c11499
- Use args attributes for exceptions for python3
c11499
Resolves: rhbz#1651465
c11499
c11499
* Fri Aug 10 2018 John Kacur <jkacur@redhat.com> - 0.14-1
c11499
- Sync with upstream and fix URL reference in spec
c11499
Resolves: rhbz#1596855
c11499
c11499
* Wed Aug 08 2018 John Kacur <jkacur@redhat.com> - 0.13.3-5
c11499
- Remove some functions that are now available in python-linux-procfs
c11499
Resolves: rhbz#1522865
c11499
c11499
* Tue Jul 03 2018 Tomas Orsava <torsava@redhat.com> - 0.13.3-4
c11499
- Switch hardcoded python3 shebangs into the %%{__python3} macro
c11499
c11499
* Thu May 31 2018 John Kacur <jkacur@redhat.com> - 0.13.3-3
c11499
- Remove deprecated oscilloscope
c11499
Resolves: rhbz#1584302
c11499
c11499
* Fri May 25 2018 John Kacur <jkacur@redhat.com> - 0.13.3-2
c11499
- Correct the dependencies to require python3 package versions
c11499
Resolves: rhbz#1581192
c11499
c11499
* Wed May 16 2018 John Kacur <jkacur@redhat.com> - 0.13.3-1
c11499
- Changes for python3
c11499
Resolves: rhbz#1518679
c11499
c11499
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-5
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c11499
c11499
* Wed Nov 29 2017 Lubomir Rintel <lkundrak@v3.sk> - 0.13.1-4
c11499
- Add a missing dependency for oscilloscope
c11499
c11499
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-3
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c11499
c11499
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-2
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c11499
c11499
* Wed Dec 21 2016 Jiri Kastner <jkastner@redhat.com> - 0.13.1-1
c11499
- new version
c11499
c11499
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.12-5
c11499
- rebuilt for matplotlib-2.0.0
c11499
c11499
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
c11499
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c11499
c11499
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c11499
c11499
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c11499
c11499
* Fri Oct 10 2014 Jiri Kastner <jkastner@redhat.com> - 0.12-1
c11499
- new upstream release
c11499
c11499
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-3
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c11499
c11499
* Mon Jul 29 2013 Jiri Kastner <jkastner@redhat.com> - 0.11.1-1
c11499
- New upstream release
c11499
c11499
* Tue Jun 11 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-2
c11499
- changed dependencies from python-numeric to numpy
c11499
- merged spec changes from upstream
c11499
c11499
* Thu Jun  6 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-1
c11499
- New upstream release
c11499
c11499
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c11499
c11499
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c11499
c11499
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c11499
c11499
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
c11499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c11499
c11499
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.1-2
c11499
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
c11499
c11499
* Thu Sep 03 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9.1-1
c11499
- New upstream release
c11499
c11499
* Wed Aug 26 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-3
c11499
- Rewrite the oscilloscope package summary
c11499
- Remove the shebang in tuna/oscilloscope.py
c11499
c11499
* Mon Aug 17 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-2
c11499
- Use install -p
c11499
- Add BuildRequires for gettext
c11499
c11499
* Fri Jul 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-1
c11499
- Fedora package reviewing changes: introduce ChangeLog file