MCOP-245 Add pl:packaging
Add the necessary boilerplate to build packages with the current Puppet Labs build infrastructure. Based on the packaging of mcollective-sysctl-data
This commit is contained in:
39
ext/redhat/mcollective-actionpolicy-auth.spec.erb
Normal file
39
ext/redhat/mcollective-actionpolicy-auth.spec.erb
Normal file
@@ -0,0 +1,39 @@
|
||||
# VERSION is subbed out during rake srpm process
|
||||
%global realversion <%= @version %>
|
||||
%global rpmversion <%= @rpmversion %>
|
||||
|
||||
Summary: Action Policy simplerpc authorization plugin
|
||||
Name: mcollective-actionpolicy-auth
|
||||
Version: %{rpmversion}
|
||||
Release: <%= @rpmrelease -%>%{?dist}
|
||||
Vendor: %{?_host_vendor}
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/puppetlabs/mcollective-actionpolicy-auth
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
Group: System Tools
|
||||
Source0: mcollective-actionpolicy-auth-%{realversion}.tar.gz
|
||||
Requires: mcollective-common >= 2.2.1
|
||||
|
||||
%description
|
||||
Action Policy simplerpc authorization plugin
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{realversion}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
%{__install} -d -m0755 %{buildroot}%{_libexecdir}/mcollective/mcollective
|
||||
cp -a util %{buildroot}%{_libexecdir}/mcollective/mcollective
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%{_libexecdir}/mcollective/mcollective/util/*
|
||||
|
||||
%changelog
|
||||
* <%= Time.now.strftime("%a %b %d %Y") %> Puppet Labs Release <info@puppetlabs.com> - <%= @rpmversion %>-<%= @rpmrelease %>
|
||||
- Build for <%= @version %>
|
||||
Reference in New Issue
Block a user