Blame SPECS/tuna.spec

e9a79c
Name: tuna
e9a79c
Version: 0.14
e9a79c
Release: 3%{?dist}
e9a79c
License: GPLv2
e9a79c
Summary: Application tuning GUI & command line utility
e9a79c
Group: Applications/System
e9a79c
Source: https://git.kernel.org/pub/scm/utils/tuna/tuna.git/%{name}/%{name}-%{version}.tar.xz
e9a79c
URL: https://git.kernel.org/pub/scm/utils/tuna/tuna.git
e9a79c
# If upstream does not provide tarballs, to generate
e9a79c
# git clone git://git.kernel.org/pub/scm/utils/tuna/tuna.git
e9a79c
# cd tuna
e9a79c
# git archive --format=tar --prefix=tuna-%%{version}/ v%%{version} | xz -c > tuna-%%{version}.tar.xz
e9a79c
BuildArch: noarch
e9a79c
BuildRequires: python3-devel, gettext
e9a79c
Requires: python3-ethtool
e9a79c
Requires: python3-linux-procfs >= 0.6
e9a79c
Requires: python3-schedutils >= 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
e9a79c
Patch1: tuna-sysfs.py-Add-method-to-compare-class-cpu.patch
e9a79c
Patch2: tuna-Use-exception-args-attribute-for-python3.patch
e9a79c
Patch3: tuna-fix-undefined-global-name-stderr.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
e9a79c
%patch1 -p1
e9a79c
%patch2 -p1
e9a79c
%patch3 -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
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