diff options
author | David Sommerseth <davids@redhat.com> | 2012-12-21 18:17:48 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-12-21 18:20:14 +0100 |
commit | d0a2d2b8612ed01b4e530611eecd27ca7c1389ba (patch) | |
tree | 7bfd0033ea0a90ef2e2bb250dae2f42b0e31f24d | |
parent | 406c2abb8071de61e910db6a487472f7aa4ee632 (diff) | |
download | rteval-d0a2d2b8612ed01b4e530611eecd27ca7c1389ba.tar.gz |
Updated rteval.spec to package rteval v2.0
This updates the spec file to also use distutils/setup.py directly,
making it independent of the Makefile
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | rteval.spec | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/rteval.spec b/rteval.spec index 8e61010..0df5f75 100644 --- a/rteval.spec +++ b/rteval.spec @@ -2,7 +2,7 @@ %{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: rteval -Version: 1.36 +Version: 2.0 Release: 1%{?dist} Summary: Utility to evaluate system suitability for RT Linux @@ -34,23 +34,17 @@ to the screen. %setup -q # version sanity check (make sure specfile and rteval.py match) -srcver=$(awk '/version =/ { print $3; }' rteval/rteval.py | sed -e 's/"\(.*\)"/\1/') +srcver=$(%{__python} -c "from rteval import RTEVAL_VERSION; print RTEVAL_VERSION") if [ $srcver != %{version} ]; then printf "\n***\n*** rteval spec file version do not match the rteval/rteval.py version\n***\n\n" exit -1 fi %build - +%{__python} setup.py build %install -rm -rf ${RPM_BUILD_ROOT} -mkdir -p ${RPM_BUILD_ROOT} -make DESTDIR=${RPM_BUILD_ROOT} install_rteval -mkdir -p ${RPM_BUILD_ROOT}/usr/bin -# note that python_sitelib has a leading slash... -ln -s ../..%{python_sitelib}/rteval/rteval.py ${RPM_BUILD_ROOT}/usr/bin/rteval - +%{__python} setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT @@ -63,14 +57,17 @@ rm -rf $RPM_BUILD_ROOT %dir %{_datadir}/%{name} -%doc COPYING doc/rteval.txt -%{_mandir}/man8/rteval.8* +%doc COPYING README doc/rteval.txt +%{_mandir}/man8/rteval.8.gz %{_datadir}/%{name}/rteval_*.xsl %config(noreplace) %{_sysconfdir}/rteval.conf %{python_sitelib}/rteval/ /usr/bin/rteval %changelog +* Fri Dec 21 2012 David Sommerseth <davids@redhat.com> - 2.0-1 +- Updated to rteval v2.0 and reworked spec file to use setup.py directly + * Tue Oct 23 2012 Clark Williams <williams@redhat.com> - 1.36-1 - deal with system not having dmidecode python module - make sure to cast priority parameter to int |