summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorJonathan Billings <jsbillin@umich.edu>2012-01-30 13:20:25 -0500
committerJonathan Billings <jsbillin@umich.edu>2012-01-30 13:52:44 -0500
commit2e384465ed46ee5c2ccff5392c7b45837a412b24 (patch)
tree690d4e8b4e5c77ba0e66f8b5552cb08ec7cfc4de /misc
parent3cd5d6704b7d8218f9b69b350af194a1c19048a7 (diff)
downloadbcfg2-2e384465ed46ee5c2ccff5392c7b45837a412b24.tar.gz
bcfg2-2e384465ed46ee5c2ccff5392c7b45837a412b24.tar.bz2
bcfg2-2e384465ed46ee5c2ccff5392c7b45837a412b24.zip
Redhat/SUSE: Remove the execution of 'rpm' in specfile
Since both Red Hat and SuSE seem to have packages named python-lxml, there's no longer any need to have logic to use a package named 'lxml'. Using the 'rpm' command inside a spec file also breaks mock, so this will allow the spec to be used in build environments that use mock.
Diffstat (limited to 'misc')
-rw-r--r--misc/bcfg2.spec13
1 files changed, 3 insertions, 10 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec
index de1baca00..982f5795c 100644
--- a/misc/bcfg2.spec
+++ b/misc/bcfg2.spec
@@ -5,13 +5,6 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?_initrddir: %define _initrddir %{_sysconfdir}/rc.d/init.d}
-# Most rpm-based distributions include the lxml package a 'python-lxml',
-# but some distributions and some people who roll their own lxml packages
-# call it just 'lxml'. We'll try to catch both.
-%define dfl_lxml python-lxml
-%define alt_lxml lxml
-%define lxmldep %(rpm -q %{alt_lxml} 2>&1 > /dev/null && echo %{alt_lxml} || echo %{dfl_lxml})
-
Name: bcfg2
Version: 1.2.1
Release: %{release}
@@ -26,7 +19,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
-BuildRequires: %{lxmldep}
+BuildRequires: python-lxml
# %{rhel} wasn't set before rhel 6. so this checks for old RHEL
# %systems (and potentially very old Fedora systems, too)
@@ -39,7 +32,7 @@ BuildRequires: python-sphinx10
BuildRequires: python-sphinx >= 0.6
%endif
-Requires: %{lxmldep} >= 0.9
+Requires: python-lxml >= 0.9
%description
Bcfg2 helps system administrators produce a consistent, reproducible,
@@ -75,7 +68,7 @@ Requires: bcfg2
%if "%{py_ver}" < "2.6"
Requires: python-ssl
%endif
-Requires: %{lxmldep} >= 1.2.1
+Requires: python-lxml >= 1.2.1
%if "%{_vendor}" == "redhat"
Requires: gamin-python
%endif