summaryrefslogtreecommitdiffstats
path: root/cloudmasterd/extra/cloudmasterd.spec
diff options
context:
space:
mode:
Diffstat (limited to 'cloudmasterd/extra/cloudmasterd.spec')
-rw-r--r--cloudmasterd/extra/cloudmasterd.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/cloudmasterd/extra/cloudmasterd.spec b/cloudmasterd/extra/cloudmasterd.spec
index 9733ef3..79dc887 100644
--- a/cloudmasterd/extra/cloudmasterd.spec
+++ b/cloudmasterd/extra/cloudmasterd.spec
@@ -6,13 +6,14 @@
Summary: daemon for machine configuration
Name: rubygem-%{gemname}
-Version: 0.1.4
+Version: 0.1.5
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://cloudmasterd.rubyforge.org
Source0: %{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: httpd
Requires: rubygems
Requires: rubygem(picnic)
Requires: rubygem(activesupport)
@@ -42,6 +43,10 @@ mv %{buildroot}%{geminstdir}/config.example.yml %{buildroot}/etc/cloudmasterd/co
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+# Put in the apache rules
+mkdir -p %{buildroot}/etc/httpd/conf.d
+mv %{buildroot}%{geminstdir}/extra/cloudmasterd.conf %{buildroot}/etc/httpd/conf.d
+
%clean
rm -rf %{buildroot}
@@ -58,6 +63,7 @@ rm -rf %{buildroot}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%config /etc/cloudmasterd/config.yml
+/etc/httpd/conf.d/cloudmasterd.conf
%defattr(755, root, root, -)
/etc/init.d/cloudmasterd