4b8598
%global with_python3 1
4b8598
4b8598
Summary: Linux scheduler python bindings
4b8598
Name: python-schedutils
4b8598
Version: 0.6
4b8598
Release: 6%{?dist}
4b8598
License: GPLv2
4b8598
URL: https://git.kernel.org/pub/scm/libs/python/python-schedutils/python-schedutils.git
4b8598
Source: https://git.kernel.org/pub/scm/libs/python/python-schedutils/python-schedutils.git/snapshot/%{name}-%{version}.tar.xz
4b8598
# If upstream does not provide tarballs, to generate
4b8598
# git clone git://git.kernel.org/pub/scm/libs/python/python-schedutils/python-schedutils.git
4b8598
# cd python-schedutils
4b8598
# git archive --format=tar --prefix=python-schedutils-%%{version}/ v%%{version} | xz -c > python-schedutils-%%{version}.tar.xz
4b8598
Group: System Environment/Libraries
4b8598
4b8598
BuildRequires: python3-devel
4b8598
4b8598
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4b8598
4b8598
%global _description\
4b8598
Python interface for the Linux scheduler sched_{get,set}{affinity,scheduler}\
4b8598
functions and friends.
4b8598
4b8598
%description %_description
4b8598
4b8598
%package -n python3-schedutils
4b8598
Summary: %summary
4b8598
%{?python_provide:%python_provide python3-schedutils}
4b8598
4b8598
%description -n python3-schedutils %_description
4b8598
4b8598
%prep
4b8598
%autosetup -p1
4b8598
4b8598
%build
4b8598
%py3_build
4b8598
4b8598
%install
4b8598
rm -rf %{buildroot}
4b8598
%py3_install
4b8598
4b8598
%clean
4b8598
rm -rf %{buildroot}
4b8598
4b8598
%files -n python3-schedutils
4b8598
%defattr(-,root,root)
4b8598
%license COPYING
4b8598
%{_bindir}/pchrt
4b8598
%{_bindir}/ptaskset
4b8598
%{_mandir}/man1/pchrt.1*
4b8598
%{_mandir}/man1/ptaskset.1*
4b8598
%{python3_sitearch}/schedutils*.so
4b8598
%{python3_sitearch}/*.egg-info
4b8598
4b8598
%changelog
4b8598
* Wed Apr 03 2019 Clark Williams <williams@redhat.com> - 0.6-6
4b8598
- Added OSCI gating framework
4b8598
Resolves: rhbz#1682408
4b8598
4b8598
* Tue Jul 31 2018 John Kacur <jkacur@redhat.com> - 0.6-5
4b8598
- Fix upstream URL reference and source
4b8598
Resolves: rhbz#1596854
4b8598
4b8598
* Fri May 18 2018 John Kacur <jkacur@redhat.com> 0.6-4
4b8598
- Drop the python2 subpackage and only build the python3 subpackage
4b8598
Resolves: rhbz#1579904
4b8598
4b8598
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-3
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4b8598
4b8598
* Tue Nov 21 2017 Jiri Kastner <jkastner@redhat.com> - 0.6-2
4b8598
- duplicated license line in file list
4b8598
4b8598
* Mon Nov 20 2017 Jiri Kastner <jkastner@redhat.com> - 0.6-1
4b8598
- added python 3 support
4b8598
4b8598
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5-5
4b8598
- Python 2 binary package renamed to python2-schedutils
4b8598
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
4b8598
4b8598
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-4
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4b8598
4b8598
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4b8598
4b8598
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b8598
4b8598
* Thu Dec 22 2016 Jiri Kastner 
4b8598
- new upstream release
4b8598
4b8598
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
4b8598
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4b8598
4b8598
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-6
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4b8598
4b8598
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-5
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4b8598
4b8598
* Fri Oct 10 2014 Jiri Kastner <jkastner@redhat.com> - 0.4-4
4b8598
- fix source and url
4b8598
4b8598
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4b8598
4b8598
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b8598
4b8598
* Wed Dec  4 2013 Jiri Kastner <jkastner@redhat.com> - 0.4-1
4b8598
- new upstream release
4b8598
- resolves bz #879973
4b8598
4b8598
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-11
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4b8598
4b8598
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-10
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4b8598
4b8598
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-9
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4b8598
4b8598
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-8
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4b8598
4b8598
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-7
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4b8598
4b8598
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.2-6
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4b8598
4b8598
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-5
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4b8598
4b8598
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-4
4b8598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4b8598
4b8598
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2-3
4b8598
- Rebuild for Python 2.6
4b8598
4b8598
* Thu Aug 28 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-2
4b8598
- Fix build and install sections as suggested by the fedora rewiewer
4b8598
  (BZ #460387)
4b8598
4b8598
* Wed Aug 27 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
4b8598
- Add get_priority_{min,max} methods
4b8598
- Add constants for SCHED_{BATCH,FIFO,OTHER,RR}
4b8598
- Implement get_priority method
4b8598
- Add pchrt utility for testing the bindings, chrt clone
4b8598
- Add ptaskset utility for testing the bindings, taskset clone
4b8598
4b8598
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
4b8598
- add dist to the release tag
4b8598
4b8598
* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
4b8598
- First build into rhel5-rt
4b8598
4b8598
* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
4b8598
- Initial package