diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-11-07 17:22:38 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-11-07 17:22:38 +0000 |
commit | c3b0e2a3cf995099af1ffedf4c1ef2369ce1df7e (patch) | |
tree | 42a2e04354fa55b5ac0c192d1ec9e8729bea2bf8 /redhat/bcfg2.spec.in | |
parent | 5d7172c6424a47e1f6c460390d530c4e0305c794 (diff) | |
download | bcfg2-c3b0e2a3cf995099af1ffedf4c1ef2369ce1df7e.tar.gz bcfg2-c3b0e2a3cf995099af1ffedf4c1ef2369ce1df7e.tar.bz2 bcfg2-c3b0e2a3cf995099af1ffedf4c1ef2369ce1df7e.zip |
RPM packaging updates -- add rh specific init scripts and remove prereq footprint on rh (from Robin Bowes)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4967 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'redhat/bcfg2.spec.in')
-rw-r--r-- | redhat/bcfg2.spec.in | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/redhat/bcfg2.spec.in b/redhat/bcfg2.spec.in index a416ead19..e194bfb62 100644 --- a/redhat/bcfg2.spec.in +++ b/redhat/bcfg2.spec.in @@ -1,8 +1,8 @@ # This file is licensed under the GPL -Name: %{_package} -Version: %{_version} -Release: %{_release} +Name: @PACKAGE@ +Version: @VERSION@ +Release: @RELEASE@ %define __python python %{!?py_ver: %define py_ver %(python -c 'import sys;print(sys.version[0:3])')} @@ -33,6 +33,7 @@ BuildRequires: python-setuptools %endif Requires: %{lxmldep} >= 0.9 +Requires: initscripts Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service @@ -69,10 +70,8 @@ deployment strategies. Summary: Configuration management server Group: System Environment/Daemons Requires: bcfg2 = %{version}-%{release} -Requires: /usr/sbin/sendmail Requires: /usr/bin/openssl Requires: gamin-python -Requires: redhat-lsb Requires: python-genshi Requires: python-cheetah Requires(post): /sbin/chkconfig @@ -122,8 +121,8 @@ mkdir -p %{buildroot}%{_var}/cache/bcfg2 mv %{buildroot}%{_bindir}/bcfg2* %{buildroot}%{_sbindir} -install -m 755 debian/buildsys/common/bcfg2.init %{buildroot}%{_initrddir}/bcfg2 -install -m 755 debian/buildsys/common/bcfg2-server.init %{buildroot}%{_initrddir}/bcfg2-server +install -m 755 redhat/scripts/bcfg2.init %{buildroot}%{_initrddir}/bcfg2 +install -m 755 redhat/scripts/bcfg2-server.init %{buildroot}%{_initrddir}/bcfg2-server install -m 755 debian/bcfg2.cron.daily %{buildroot}%{_sysconfdir}/cron.daily/bcfg2 install -m 755 debian/bcfg2.cron.hourly %{buildroot}%{_sysconfdir}/cron.hourly/bcfg2 install -m 755 tools/bcfg2-cron %{buildroot}%{_libexecdir}/bcfg2-cron @@ -226,6 +225,10 @@ fi %dir %{_var}/lib/bcfg2 %changelog +* Tue Oct 28 2008 Robin Bowes <robin@robinbowes.com> 0.9.6-0.2 +- spec file is now created dynamically so Version & Release + can be hard-coded so SRPM can be rebuilt without the Makefile + * Thu May 08 2008 Robin Bowes <robin@robinbowes.com> 0.9.6-0.1 - Revised spec file to build directly from svn checkout using Makefile - copied lots of stuff from the "official" spec file |