Blame SPECS/tuna.spec

0b702a
Name: tuna
0b702a
Version: 0.17
0b702a
Release: 2%{?dist}
0b702a
License: GPLv2
0b702a
Summary: Application tuning GUI & command line utility
0b702a
URL: https://git.kernel.org/pub/scm/utils/tuna/tuna.git
0b702a
Source: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz
0b702a
0b702a
BuildArch: noarch
0b702a
BuildRequires: python3-devel, gettext
0b702a
Requires: python3-ethtool
0b702a
Requires: python3-linux-procfs >= 0.6
0b702a
# This really should be a Suggests...
0b702a
# Requires: python-inet_diag
0b702a
0b702a
# Patches
0b702a
Patch1: tuna-Fix-ModuleNotFoundError.patch
0b702a
0b702a
%description
0b702a
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
0b702a
per thread/IRQ level. Allows isolating CPUs for use by a specific application
0b702a
and moving threads and interrupts to a CPU by just dragging and dropping them.
0b702a
Operations can be done on CPU sockets, understanding CPU topology.
0b702a
0b702a
Can be used as a command line utility without requiring the GUI libraries to be
0b702a
installed.
0b702a
0b702a
%prep
0b702a
%setup -q
0b702a
%patch1 -p1
0b702a
0b702a
%build
0b702a
%py3_build
0b702a
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tuna/
0b702a
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tuna-cmd.py
0b702a
0b702a
%install
0b702a
rm -rf %{buildroot}
0b702a
%py3_install
0b702a
mkdir -p %{buildroot}/%{_sysconfdir}/tuna/
0b702a
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/tuna/help/kthreads,%{_mandir}/man8}
0b702a
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
0b702a
install -p -m644 tuna/tuna_gui.glade %{buildroot}/%{_datadir}/tuna/
0b702a
install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna
0b702a
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/
0b702a
install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/
0b702a
install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/
0b702a
install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/
0b702a
install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/
0b702a
0b702a
# l10n-ed message catalogues
0b702a
for lng in `cat po/LINGUAS`; do
0b702a
        po=po/"$lng.po"
0b702a
        mkdir -p %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
0b702a
        msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
0b702a
done
0b702a
0b702a
%find_lang %name
0b702a
0b702a
%files -f %{name}.lang
0b702a
%doc ChangeLog
0b702a
%{python3_sitelib}/*.egg-info
0b702a
%{_bindir}/tuna
0b702a
%{_datadir}/tuna/
0b702a
%{python3_sitelib}/tuna/
0b702a
%{_mandir}/man8/tuna.8*
0b702a
%{_sysconfdir}/tuna.conf
0b702a
%{_sysconfdir}/tuna/*
0b702a
%{_datadir}/polkit-1/actions/org.tuna.policy
0b702a
0b702a
%changelog
0b702a
* Thu Jan 13 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.17-2
0b702a
- Fix ModuleNotFoundError
0b702a
Resolves: rhbz#2012307
0b702a
0b702a
* Tue Jan 11 2022 Leah Leshchinsky <lleshchi@redhat.com> - 0.17-1
0b702a
- Rebase to upstream version 0.17
0b702a
Resolves: rhbz#2012307
0b702a
0b702a
* Tue Dec 14 2021 John Kacur <jkacur@redhat.com> - 0.16-6
0b702a
- Display correct cpu-affinity when a cpu is disabled
0b702a
Resolves: rhbz#2032460
0b702a
0b702a
* Thu Nov 11 2021 John Kacur <jkacur@redhat.com> - 0.16-5
0b702a
- Make it clear in online help and man pages that --include and --isolate
0b702a
  affect IRQs as well as threads
0b702a
Resolves: rhbz#2022142
0b702a
0b702a
* Tue Nov 02 2021 Leah Leshchinsky <lleshchi@redhat.com> - 0.16-4
0b702a
- Add distinction between spread and move to error message
0b702a
Resolves: rhbz#2012243
0b702a
0b702a
* Thu Oct 28 2021 John Kacur <jkacur@redhat.com> - 0.16-3
0b702a
- Print warning if setaffinity causes EBUSY and continue
0b702a
Resolves: rhbz#2016540
0b702a
0b702a
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-2
0b702a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
0b702a
  Related: rhbz#1991688
0b702a
0b702a
* Wed Jun 30 2021 John Kacur <jkacur@redhat.com> - 0.16-1
0b702a
- Update to latest upstream tuna-0.16
0b702a
Resolves: rhbz#1890565
0b702a
0b702a
* Mon Jun 14 2021 John Kacur <jkacur@redhat.com> - 0.15-3
0b702a
- Remove oscilloscope from tuna
0b702a
Resolves: rhbz#1970997
0b702a
0b702a
* Fri May 21 2021 John Kacur <jkacur@redhat.com> - 0.15-2
0b702a
- Remove python3-schedutils from the Requires in the spec file
0b702a
- Update the URL in the spec file
0b702a
Resolves: rhbz#1890541
0b702a
0b702a
* Mon May 17 2021 John Kacur <jkacur@redhat.com> - 0.15-1
0b702a
- Rebase to tuna-0.15
0b702a
- This includes changes to remove the python-schedutils dependency
0b702a
Resolves: rhbz#1890541
0b702a
0b702a
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.14.1-5
0b702a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
0b702a
0b702a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-4
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0b702a
0b702a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b702a
0b702a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-2
0b702a
- Rebuilt for Python 3.9
0b702a
0b702a
* Thu May 21 2020 Jiri Kastner <jkastner@fedoraproject.org> - 0.14.1
0b702a
- update to 0.14.1
0b702a
- fixes RHBZ#1773339
0b702a
0b702a
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-6
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0b702a
0b702a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-5
0b702a
- Rebuilt for Python 3.8.0rc1 (#1748018)
0b702a
0b702a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-4
0b702a
- Rebuilt for Python 3.8
0b702a
0b702a
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0b702a
0b702a
* Tue Feb 12 2019 Jiri Kastner <jkastner@fedoraproject.org> - 0.14-3
0b702a
- upload patch
0b702a
0b702a
* Tue Feb 12 2019 Jiri Kastner <jkastner@fedoraproject.org> - 0.14-2
0b702a
- oscilloscope gtk3 patch
0b702a
0b702a
* Tue Feb 12 2019 Jiri Kastner <jkastner@fedoraproject.org> - 0.14-1
0b702a
- update to 0.14
0b702a
- switch to python3
0b702a
0b702a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-8
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0b702a
0b702a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-7
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0b702a
0b702a
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.1-6
0b702a
- Update Python 2 dependency declarations to new packaging standards
0b702a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0b702a
0b702a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-5
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0b702a
0b702a
* Wed Nov 29 2017 Lubomir Rintel <lkundrak@v3.sk> - 0.13.1-4
0b702a
- Add a missing dependency for oscilloscope
0b702a
0b702a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0b702a
0b702a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-2
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0b702a
0b702a
* Wed Dec 21 2016 Jiri Kastner <jkastner@redhat.com> - 0.13.1-1
0b702a
- new version
0b702a
0b702a
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.12-5
0b702a
- rebuilt for matplotlib-2.0.0
0b702a
0b702a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
0b702a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0b702a
0b702a
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b702a
0b702a
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0b702a
0b702a
* Fri Oct 10 2014 Jiri Kastner <jkastner@redhat.com> - 0.12-1
0b702a
- new upstream release
0b702a
0b702a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0b702a
0b702a
* Mon Jul 29 2013 Jiri Kastner <jkastner@redhat.com> - 0.11.1-1
0b702a
- New upstream release
0b702a
0b702a
* Tue Jun 11 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-2
0b702a
- changed dependencies from python-numeric to numpy
0b702a
- merged spec changes from upstream
0b702a
0b702a
* Thu Jun  6 2013 Jiri Kastner <jkastner@redhat.com> - 0.11-1
0b702a
- New upstream release
0b702a
0b702a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0b702a
0b702a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-5
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0b702a
0b702a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0b702a
0b702a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0b702a
0b702a
* Sun Aug 01 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.1-2
0b702a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
0b702a
0b702a
* Thu Sep 03 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9.1-1
0b702a
- New upstream release
0b702a
0b702a
* Wed Aug 26 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-3
0b702a
- Rewrite the oscilloscope package summary
0b702a
- Remove the shebang in tuna/oscilloscope.py
0b702a
0b702a
* Mon Aug 17 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-2
0b702a
- Use install -p
0b702a
- Add BuildRequires for gettext
0b702a
0b702a
* Fri Jul 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.9-1
0b702a
- Fedora package reviewing changes: introduce ChangeLog file