From 464a349f17183d9e87ba53f24df8a67ef2b9bc12 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Sep 10 2008 15:49:58 +0000 Subject: Adopting package Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/.cvsignore b/.cvsignore index e69de29..0852af3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-schedutils-0.2.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..2aa1d8c --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-schedutils-0_2-2_fc10:HEAD:python-schedutils-0.2-2.fc10.src.rpm:1221058322 diff --git a/python-schedutils.spec b/python-schedutils.spec new file mode 100644 index 0000000..0fa80ae --- /dev/null +++ b/python-schedutils.spec @@ -0,0 +1,64 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} + +Summary: Linux scheduler python bindings +Name: python-schedutils +Version: 0.2 +Release: 2%{?dist} +License: GPLv2 +URL: http://git.kernel.org/?p=linux/kernel/git/acme/python-schedutils.git +Source: http://userweb.kernel.org/~acme/python-schedutils/%{name}-%{version}.tar.bz2 +Group: System Environment/Libraries +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Python interface for the Linux scheduler sched_{get,set}{affinity,scheduler} +functions and friends. + +%prep +%setup -q + +%build +%{__python} setup.py build + +%install +rm -rf %{buildroot} +%{__python} setup.py install --skip-build --root %{buildroot} +mkdir -p %{buildroot}%{_bindir} +cp -p pchrt.py %{buildroot}%{_bindir}/pchrt +cp -p ptaskset.py %{buildroot}%{_bindir}/ptaskset + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc COPYING +%{_bindir}/pchrt +%{_bindir}/ptaskset +%{python_sitearch}/schedutils.so +%if "%{python_ver}" >= "2.5" +%{python_sitearch}/*.egg-info +%endif + +%changelog +* Thu Aug 28 2008 Arnaldo Carvalho de Melo - 0.2-2 +- Fix build and install sections as suggested by the fedora rewiewer + (BZ #460387) + +* Wed Aug 27 2008 Arnaldo Carvalho de Melo - 0.2-1 +- Add get_priority_{min,max} methods +- Add constants for SCHED_{BATCH,FIFO,OTHER,RR} +- Implement get_priority method +- Add pchrt utility for testing the bindings, chrt clone +- Add ptaskset utility for testing the bindings, taskset clone + +* Tue Jun 10 2008 Arnaldo Carvalho de Melo - 0.1-3 +- add dist to the release tag + +* Tue Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-2 +- First build into rhel5-rt + +* Tue Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..83bd1c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +32623c3bafa8322d6d697dc1248aed1c python-schedutils-0.2.tar.bz2