Blame SPECS/python-schedutils.spec

1fa637
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
1fa637
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
1fa637
1fa637
Summary: Linux scheduler python bindings
1fa637
Name: python-schedutils
1fa637
Version: 0.4
1fa637
Release: 6%{?dist}
1fa637
License: GPLv2
1fa637
URL: http://git.kernel.org/?p=linux/kernel/git/acme/python-schedutils.git
1fa637
Source: http://userweb.kernel.org/~acme/python-schedutils/%{name}-%{version}.tar.bz2
1fa637
Group: System Environment/Libraries
1fa637
BuildRequires: python-devel
1fa637
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1fa637
1fa637
Patch1: python-schedutils-Correct-typos-in-usage-messages.patch
1fa637
Patch2: python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch
1fa637
Patch3: Update-spec-file-to-install-man-pages-for-pchrt-and-.patch
1fa637
Patch4: schedutils.c-added-support-for-SCHED_DEADLINE.patch
1fa637
Patch5: python-schedutils-Update-URL-in-python-schedutils.sp.patch
1fa637
1fa637
%description
1fa637
Python interface for the Linux scheduler sched_{get,set}{affinity,scheduler}
1fa637
functions and friends.
1fa637
1fa637
%prep
1fa637
%setup -q
1fa637
%patch1 -p1
1fa637
%patch2 -p1
1fa637
%patch3 -p1
1fa637
%patch4 -p1
1fa637
%patch5 -p1
1fa637
1fa637
%build
1fa637
%{__python} setup.py build
1fa637
1fa637
%install
1fa637
rm -rf %{buildroot}
1fa637
%{__python} setup.py install --skip-build --root %{buildroot}
1fa637
mkdir -p %{buildroot}%{_bindir}
1fa637
cp -p pchrt.py %{buildroot}%{_bindir}/pchrt
1fa637
cp -p ptaskset.py %{buildroot}%{_bindir}/ptaskset
1fa637
mkdir -p %{buildroot}%{_mandir}/man1
1fa637
gzip -c pchrt.1 > %{buildroot}%{_mandir}/man1/pchrt.1.gz
1fa637
gzip -c ptaskset.1 > %{buildroot}%{_mandir}/man1/ptaskset.1.gz
1fa637
1fa637
%clean
1fa637
rm -rf %{buildroot}
1fa637
1fa637
%files
1fa637
%defattr(-,root,root)
1fa637
%doc COPYING
1fa637
%{_bindir}/pchrt
1fa637
%{_bindir}/ptaskset
1fa637
%{python_sitearch}/schedutils.so
1fa637
%if "%{python_ver}" >= "2.5"
1fa637
%{python_sitearch}/*.egg-info
1fa637
%endif
1fa637
%{_mandir}/man1/pchrt.1.gz
1fa637
%{_mandir}/man1/ptaskset.1.gz
1fa637
1fa637
%changelog
1fa637
* Tue Jul 05 2016 John Kacur <jkacur@redhat.com> - 0.4-6
1fa637
- python-schedutils-Update-URL-in-python-schedutils.sp.patch
1fa637
- schedutils.c-added-support-for-SCHED_DEADLINE.patch
1fa637
Resolves: rhbz#1298388
1fa637
1fa637
* Tue May 10 2016 John Kacur <jkacur@redhat.com> - 0.4-5
1fa637
- Add man pages for pchrt and ptaskset
1fa637
- Fix and update usage messages for pchrt and ptaskset
1fa637
- Resolves:rhbz#948381
1fa637
1fa637
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.4-4
1fa637
- Mass rebuild 2014-01-24
1fa637
1fa637
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4-3
1fa637
- Mass rebuild 2013-12-27
1fa637
1fa637
* Thu Aug 22 2013 John Kacur <jkacur@redhat.com> - 0.4-1
1fa637
- Rebuilding for rhel7.0
1fa637
1fa637
* Mon Aug  1 2011 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4-1
1fa637
- New upstream release.
1fa637
1fa637
* Tue May 17 2011 Clark Williams <williams@redhat.com> - 0.3-1
1fa637
- reworked get_affinity() and set_affinity() to use dynamic CPU_* macros
1fa637
1fa637
* Thu Aug 28 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-2
1fa637
- Fix build and install sections as suggested by the fedora rewiewer
1fa637
  (BZ #460387)
1fa637
1fa637
* Wed Aug 27 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
1fa637
- Add get_priority_{min,max} methods
1fa637
- Add constants for SCHED_{BATCH,FIFO,OTHER,RR}
1fa637
- Implement get_priority method
1fa637
- Add pchrt utility for testing the bindings, chrt clone
1fa637
- Add ptaskset utility for testing the bindings, taskset clone
1fa637
1fa637
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
1fa637
- add dist to the release tag
1fa637
1fa637
* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
1fa637
- First build into rhel5-rt
1fa637
1fa637
* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
1fa637
- Initial package