Blame SPECS/tuna.spec

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