464a349
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
464a349
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
464a349
464a349
Summary: Linux scheduler python bindings
464a349
Name: python-schedutils
464a349
Version: 0.2
464a349
Release: 2%{?dist}
464a349
License: GPLv2
464a349
URL: http://git.kernel.org/?p=linux/kernel/git/acme/python-schedutils.git
464a349
Source: http://userweb.kernel.org/~acme/python-schedutils/%{name}-%{version}.tar.bz2
464a349
Group: System Environment/Libraries
464a349
BuildRequires: python-devel
464a349
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
464a349
464a349
%description
464a349
Python interface for the Linux scheduler sched_{get,set}{affinity,scheduler}
464a349
functions and friends.
464a349
464a349
%prep
464a349
%setup -q
464a349
464a349
%build
464a349
%{__python} setup.py build
464a349
464a349
%install
464a349
rm -rf %{buildroot}
464a349
%{__python} setup.py install --skip-build --root %{buildroot}
464a349
mkdir -p %{buildroot}%{_bindir}
464a349
cp -p pchrt.py %{buildroot}%{_bindir}/pchrt
464a349
cp -p ptaskset.py %{buildroot}%{_bindir}/ptaskset
464a349
464a349
%clean
464a349
rm -rf %{buildroot}
464a349
464a349
%files
464a349
%defattr(-,root,root)
464a349
%doc COPYING
464a349
%{_bindir}/pchrt
464a349
%{_bindir}/ptaskset
464a349
%{python_sitearch}/schedutils.so
464a349
%if "%{python_ver}" >= "2.5"
464a349
%{python_sitearch}/*.egg-info
464a349
%endif
464a349
464a349
%changelog
464a349
* Thu Aug 28 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-2
464a349
- Fix build and install sections as suggested by the fedora rewiewer
464a349
  (BZ #460387)
464a349
464a349
* Wed Aug 27 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
464a349
- Add get_priority_{min,max} methods
464a349
- Add constants for SCHED_{BATCH,FIFO,OTHER,RR}
464a349
- Implement get_priority method
464a349
- Add pchrt utility for testing the bindings, chrt clone
464a349
- Add ptaskset utility for testing the bindings, taskset clone
464a349
464a349
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
464a349
- add dist to the release tag
464a349
464a349
* Tue Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
464a349
- First build into rhel5-rt
464a349
464a349
* Tue Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
464a349
- Initial package