Blame ace.spec

b4d56eb
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
3fb56eb
%define	pbuild 			%{_builddir}/%{name}-%{version}
3fb56eb
%define binFile 		%{_bindir}/ace
3fb56eb
%define initFile 		%{_initrddir}/ace
3fb56eb
%define acehome  		%{_datadir}/ace
3fb56eb
%define modulehome		%{acehome}/modules
3fb56eb
3fb56eb
3fb56eb
##############
3fb56eb
# Main Module
3fb56eb
##############
3fb56eb
Summary: 			Appliance Configuration Engine
3fb56eb
Name: 				ace
9b659bb
Version: 			0.0.7
b20e675
Release: 			3%{?dist}
3fb56eb
3fb56eb
Group: 				Applications/Internet
3fb56eb
License: 			LGPLv2+
3fb56eb
URL: 				http://www.thincrust.net
3fb56eb
Source0: 			%{url}/download/%{name}-%{version}.tar.gz
3fb56eb
BuildRoot: 			%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3fb56eb
BuildArch: 			noarch
3b5e0b2
BuildRequires:		ruby(abi) = 1.8
3b5e0b2
BuildRequires:  	ruby-devel >=  1.8
3b5e0b2
BuildRequires:  	ruby
3fb56eb
Requires: 			yum
3fb56eb
Requires:			ruby(abi) = 1.8
3fb56eb
Requires: 			puppet
3fb56eb
Requires: 			ruby-augeas
3fb56eb
Requires: 			/usr/sbin/crond
3fb56eb
Requires(post): 	chkconfig
3fb56eb
Requires(preun):	chkconfig
3fb56eb
3fb56eb
%description
3fb56eb
Boot time configuration engine for appliances.
3fb56eb
3fb56eb
%files
3fb56eb
%defattr(-,root,root,-)
b4d56eb
%dir %{ruby_sitelib}
76d3af4
%dir %{acehome}
76d3af4
%dir %{modulehome}
3fb56eb
%dir %{modulehome}/appliance_base
3fb56eb
%dir %{modulehome}/augeas
3fb56eb
%dir %{modulehome}/firewall
3fb56eb
%dir %{acehome}/facts
3fb56eb
%dir %{acehome}/lenses
3fb56eb
%dir %{acehome}/manifests
3fb56eb
%dir %{acehome}/tools
3fb56eb
%{modulehome}/appliance_base/*
3fb56eb
%{modulehome}/augeas/*
3fb56eb
%{modulehome}/firewall/*
3fb56eb
%{acehome}/facts/*
3fb56eb
%{acehome}/lenses/*
3fb56eb
%{acehome}/manifests/*
3fb56eb
%{acehome}/tools/*
b4d56eb
%{ruby_sitelib}/*
3fb56eb
%doc %{acehome}/COPYING
3fb56eb
%{binFile}
3fb56eb
%{initFile}
3fb56eb
3fb56eb
3fb56eb
###############
3fb56eb
# Apache Module
3fb56eb
###############
3fb56eb
%package	apache
3fb56eb
Summary: 	Apache ACE Module
3fb56eb
3fb56eb
Group:  	Applications/Internet
3fb56eb
License: 	LGPLv2+
3fb56eb
URL: 		http://www.thincrust.net
3fb56eb
BuildArch: 	noarch
3fb56eb
Requires: 	ace
3fb56eb
Requires: 	httpd
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
3fb56eb
%description apache
3fb56eb
Apache module for the Appliance Configuration Engine
3fb56eb
3fb56eb
%files apache
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/apache
3fb56eb
%{modulehome}/apache/*
3fb56eb
%doc %{modulehome}/apache/COPYING
3fb56eb
3fb56eb
3fb56eb
3fb56eb
#################
3fb56eb
# Banners Module
3fb56eb
#################
3fb56eb
%package	banners
3fb56eb
Summary: 	Simple Banners ACE Module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires: 	ace
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
3fb56eb
%description banners
3fb56eb
Login and Console information for appliances
3fb56eb
3fb56eb
%files banners
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/banners
3fb56eb
%{modulehome}/banners/*
3fb56eb
%doc %{modulehome}/banners/COPYING
3fb56eb
3fb56eb
3fb56eb
####################
3fb56eb
# Basic Site Module
3fb56eb
####################
3fb56eb
%package 	basic-site
3fb56eb
Summary: 	Simple Web Site ACE Module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires: 	ace-apache
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
3fb56eb
%description basic-site
3fb56eb
Basic informative web site for appliances
3fb56eb
3fb56eb
%files basic-site
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/basic-site
3fb56eb
%{modulehome}/basic-site/*
3fb56eb
%doc %{modulehome}/basic-site/COPYING
3fb56eb
3fb56eb
3fb56eb
##############
3fb56eb
# MySQL Module
3fb56eb
##############
3fb56eb
%package	mysql
3fb56eb
Summary: 	ACE Mysql module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
Requires: 	ace
3fb56eb
Requires: 	mysql
3fb56eb
Requires: 	mysql-server
3fb56eb
3fb56eb
%description mysql
3fb56eb
Mysql management for appliances.
3fb56eb
3fb56eb
%files mysql
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/mysql
3fb56eb
%{modulehome}/mysql/*
3fb56eb
%doc %{modulehome}/mysql/COPYING
3fb56eb
3fb56eb
3fb56eb
3fb56eb
##############
3fb56eb
# PHP Module
3fb56eb
##############
3fb56eb
%package	php
3fb56eb
Summary: 	ACE php module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
Requires: 	ace
3fb56eb
Requires: 	php
3fb56eb
3fb56eb
%description php
3fb56eb
PHP management for appliances.
3fb56eb
3fb56eb
%files php
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/php
3fb56eb
%{modulehome}/php/*
3fb56eb
%doc %{modulehome}/php/COPYING
3fb56eb
3fb56eb
3fb56eb
#################
3fb56eb
# Postgres Module
3fb56eb
#################
3fb56eb
%package	postgres
3fb56eb
Summary: 	ACE postgres module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
Requires: 	ace
3fb56eb
Requires: 	postgresql
3fb56eb
Requires: 	postgresql-server
3fb56eb
3fb56eb
%description postgres
3fb56eb
Postgres database management for appliances.
3fb56eb
3fb56eb
%files postgres
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/postgres
3fb56eb
%{modulehome}/postgres/*
3fb56eb
%doc %{modulehome}/postgres/COPYING
3fb56eb
3fb56eb
3fb56eb
3fb56eb
############
3fb56eb
# SSH Module
3fb56eb
############
3fb56eb
%package	ssh
3fb56eb
Summary: 	ACE ssh module
3fb56eb
Group:  	Applications/Internet
3fb56eb
Requires:	ruby(abi) = 1.8
3fb56eb
Requires: 	ace
3fb56eb
Requires: 	openssh-server
3fb56eb
3fb56eb
%description ssh
3fb56eb
SSH configuration for appliances
3fb56eb
3fb56eb
%files ssh
3fb56eb
%defattr(-,root,root,-)
76d3af4
%dir %{modulehome}/ssh
3fb56eb
%{modulehome}/ssh/*
3fb56eb
%doc %{modulehome}/ssh/COPYING
3fb56eb
3fb56eb
3fb56eb
3fb56eb
###########################
3fb56eb
# Prep, Build, and Install
3fb56eb
###########################
3fb56eb
%prep
3fb56eb
%setup -q
3fb56eb
3fb56eb
%build
3fb56eb
3fb56eb
%install
3fb56eb
rm -rf %{buildroot}
3fb56eb
install -d %{buildroot}/%{acehome}
b4d56eb
install -d %{buildroot}/%{ruby_sitelib}
3fb56eb
install -d %{buildroot}/%{_bindir}
3fb56eb
install -d %{buildroot}/%{_initrddir}
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{acehome}
b4d56eb
cp -pr %{pbuild}/lib/ace.rb %{buildroot}/%{ruby_sitelib}
b4d56eb
cp -pr %{pbuild}/lib/ace %{buildroot}/%{ruby_sitelib}
3fb56eb
cp -pr %{pbuild}/bin/ace %{buildroot}/%{binFile}
3fb56eb
cp -pr %{pbuild}/bin/ace-init %{buildroot}/%{initFile}
3fb56eb
cp -pr %{pbuild}/modules %{buildroot}/%{acehome}
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/apache
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/banners
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/basic-site
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/mysql
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/php
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/postgres
3fb56eb
cp -pr %{pbuild}/COPYING %{buildroot}/%{modulehome}/ssh
3fb56eb
cp -pr %{pbuild}/facts %{buildroot}/%{acehome}
3fb56eb
cp -pr %{pbuild}/manifests %{buildroot}/%{acehome}
3fb56eb
cp -pr %{pbuild}/tools %{buildroot}/%{acehome}
3fb56eb
cp -pr %{pbuild}/lenses %{buildroot}/%{acehome}
3fb56eb
3fb56eb
%clean
3fb56eb
rm -rf %{buildroot}
3fb56eb
3fb56eb
%post
3fb56eb
/sbin/chkconfig --add %{name}
3fb56eb
3fb56eb
%preun
3fb56eb
if [ $1 = 0 ] ; then
3fb56eb
	/sbin/service ace stop >/dev/null 2>&1
3fb56eb
	/sbin/chkconfig --del %{name}
3fb56eb
fi
3fb56eb
3fb56eb
3fb56eb
###########
3fb56eb
# Changelog
3fb56eb
###########
3fb56eb
%changelog
b20e675
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.7-3
b20e675
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b20e675
9b659bb
* Wed Mar 16 2009 Bryan Kearney <bkearney@redhat.com> 0.0.7-2
9b659bb
- Ovirt enhancements from Joey Boggs
9b659bb
8090a26
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-2
8090a26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8090a26
9b659bb
* Wed Feb 18 2009 Bryan Kearney <bkearney@redhat.com> 0.0.6-1
9b659bb
- Iptables enhancements from Joey Boggs
9b659bb
3b5e0b2
* Tue Jan 07 2009 Bryan Kearney <bkearney@redhat.com> 0.0.5-1
3b5e0b2
- Status of puppet script is reflected in command line and init script
3b5e0b2
- Executingn 'ace --verbose' now provides real time view of puppet output
3b5e0b2
- Will work with new puppet which includes the augas plugin
3b5e0b2
3b5e0b2
* Tue Dec 16 2008 Bryan Kearney <bkearney@redhat.com> 0.0.4-1
3b5e0b2
- Postgres packages did not enforfce dependencies correctly
3b5e0b2
- init script can handle many appliances
3b5e0b2
b4d56eb
* Tue Dec 2 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-7
b4d56eb
- Modify the build requires to include the ruby binary
b4d56eb
aab115f
* Tue Dec 2 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-6
aab115f
- Modify the build requires to get the sitelibdir value
aab115f
3fb56eb
* Thu Oct 2 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-5
3fb56eb
- Remove the console to package it later.
3fb56eb
3fb56eb
* Thu Oct 2 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-4
3fb56eb
- Combine all ace packages into a single SRPM.
3fb56eb
3fb56eb
* Wed Sep 24 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-3
3fb56eb
- Comments from David Lutterkort and Bill Nottingham
3fb56eb
3fb56eb
* Fri Sep 19 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-2
3fb56eb
- Submit For Fedora Packaging Process
3fb56eb
3fb56eb
* Thu Sep 18 2008 Bryan Kearney <bkearney@redhat.com> 0.0.3-1
3fb56eb
- Begin Fedora Packaging Process
3fb56eb
3fb56eb
* Thu Jul 17 2008 Bryan Kearney <bkearney@redhat.com> 0.0.2-1
3fb56eb
- Converted to puppet syntax
3fb56eb
3fb56eb
* Thu Mar 26 2008 Bryan Kearney <bkearney@redhat.com> 0.0.1-1
3fb56eb
- Initial packaging