Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
puppet-lint
puppet-lint.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File puppet-lint.spec of Package puppet-lint
%define realname puppet-lint %define realver 2.0.2 %define srcext gem # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # For use with ruby %define rblib %(ruby -e 'require "rbconfig"; puts Config::CONFIG["sitelibdir"]') %define rbso %(ruby -e 'require "rbconfig"; puts Config::CONFIG["sitearchdir"]') %define ruby_lib %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["rubylibprefix"]') %define ruby_abi %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["ruby_version"]') # Common info Name: %{realname} Version: %{realver} Release: %{?extraver:0.}1%{?dist} License: MIT Group: System/Management URL: http://puppet-lint.com/ Summary: Check that your Puppet manifests conform to the style guide # Install-time parameters Requires: ruby(abi) >= %{ruby_abi} # Build-time parameters BuildRequires: ruby rubygems %if ! 0%{?sles_version} BuildArch: noarch %endif BuildRoot: %{_tmppath}/%{name}-root Source: http://rubygems.org/downloads/%{realname}-%{realver}%{?extraver}.%{srcext} %description The goal of this project is to implement as many of the recommended Puppet style guidelines from the Puppet Labs style guide as practical. It is not meant to validate syntax. Please use puppet parser validate for that. # Preparation step (unpackung and patching if necessary) %prep %build %install gem install --verbose --local --install-dir %{buildroot}%{ruby_lib}/gems/%{ruby_abi} %{SOURCE0} %{__install} -d -m755 %{buildroot}%{_bindir} for exe in %{buildroot}%{ruby_lib}/gems/%{ruby_abi}/bin/* do %{__ln_s} ${exe#%{buildroot}} %{buildroot}%{_bindir}/$(basename ${exe}) done %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/* %dir %{ruby_lib}/gems/%{ruby_abi} %dir %{ruby_lib}/gems %{ruby_lib}/gems/%{ruby_abi}/* %exclude %{ruby_lib}/gems/%{ruby_abi}/gems/%{realname}-%{realver}/.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor