Blame SPECS/tuna.spec

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