Created
September 29, 2014 16:04
-
-
Save bodgit/6d0d30b05ae7ef53824a to your computer and use it in GitHub Desktop.
RPM spec for Sensu plugin gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{?scl:%scl_package rubygem-%{gem_name}} | |
%{!?scl:%global pkg_name %{name}} | |
# Generated from mixlib-cli-1.5.0.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name mixlib-cli | |
Summary: A simple mixin for CLI interfaces, including option parsing | |
Name: %{?scl_prefix}rubygem-%{gem_name} | |
Version: 1.5.0 | |
Release: 1%{?dist} | |
Group: Development/Languages | |
License: Apache | |
URL: http://www.opscode.com | |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem | |
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || (0%{?fedora} > 16 && 0%{?fedora} < 19) | |
Requires: %{?scl_prefix}ruby(abi) = 1.9.1 | |
%else | |
%if 0%{?fedora} && 0%{?fedora} > 18 | |
Requires: %{?scl_prefix}ruby(release) | |
%else | |
Requires: %{?scl_prefix}ruby(abi) = 1.8 | |
%endif | |
%endif | |
Requires: %{?scl_prefix}ruby(rubygems) | |
BuildRequires: %{?scl_prefix}rubygems-devel | |
BuildRequires: %{?scl_prefix}ruby | |
BuildRequires: %{?scl_prefix}rubygem(rspec) | |
BuildArch: noarch | |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} | |
%description | |
A simple mixin for CLI interfaces, including option parsing. | |
%package doc | |
Summary: Documentation for %{pkg_name} | |
Group: Documentation | |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} | |
BuildArch: noarch | |
%description doc | |
Documentation for %{pkg_name} | |
%prep | |
%setup -n %{pkg_name}-%{version} -q -c -T | |
mkdir -p .%{gem_dir} | |
%{?scl:scl enable %{scl} "} | |
gem install --local --install-dir .%{gem_dir} \ | |
--force %{SOURCE0} | |
%{?scl:"} | |
%build | |
%install | |
mkdir -p %{buildroot}%{gem_dir} | |
cp -pa .%{gem_dir}/* \ | |
%{buildroot}%{gem_dir}/ | |
%check | |
pushd .%{gem_instdir} | |
%{?scl:scl enable %{scl} "} | |
rspec spec | |
%{?scl:"} | |
popd | |
%files | |
%dir %{gem_instdir} | |
%{gem_instdir}/lib | |
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem | |
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec | |
%files doc | |
%doc %{gem_dir}/doc/%{gem_name}-%{version} | |
%doc %{gem_instdir}/README.rdoc | |
%doc %{gem_instdir}/LICENSE | |
%doc %{gem_instdir}/NOTICE | |
%{gem_instdir}/Rakefile | |
%{gem_instdir}/spec | |
%changelog | |
* Mon Sep 29 2014 Matt Dainty <[email protected]> 1.5.0-1 | |
- Initial package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{?scl:%scl_package rubygem-%{gem_name}} | |
%{!?scl:%global pkg_name %{name}} | |
# Generated from sensu-plugin-0.3.0.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name sensu-plugin | |
Summary: Sensu Plugins | |
Name: %{?scl_prefix}rubygem-%{gem_name} | |
Version: 0.3.0 | |
Release: 1%{?dist} | |
Group: Development/Languages | |
License: MIT | |
URL: https://github.com/sonian/sensu-plugin | |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem | |
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || (0%{?fedora} > 16 && 0%{?fedora} < 19) | |
Requires: %{?scl_prefix}ruby(abi) = 1.9.1 | |
%else | |
%if 0%{?fedora} && 0%{?fedora} > 18 | |
Requires: %{?scl_prefix}ruby(release) | |
%else | |
Requires: %{?scl_prefix}ruby(abi) = 1.8 | |
%endif | |
%endif | |
Requires: %{?scl_prefix}ruby(rubygems) | |
Requires: %{?scl_prefix}rubygem(json) | |
Requires: %{?scl_prefix}rubygem(mixlib-cli) >= 1.1.0 | |
BuildRequires: %{?scl_prefix}rubygems-devel | |
BuildRequires: %{?scl_prefix}ruby | |
#BuildRequires: %{?scl_prefix}rubygem(minitest) | |
#BuildRequires: %{?scl_prefix}rubygem(rake) | |
BuildArch: noarch | |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} | |
%description | |
Plugins and helper libraries for Sensu, a monitoring framework. | |
%package doc | |
Summary: Documentation for %{pkg_name} | |
Group: Documentation | |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} | |
BuildArch: noarch | |
%description doc | |
Documentation for %{pkg_name} | |
%prep | |
%setup -n %{pkg_name}-%{version} -q -c -T | |
mkdir -p .%{gem_dir} | |
%{?scl:scl enable %{scl} "} | |
gem install --local --install-dir .%{gem_dir} \ | |
--force %{SOURCE0} | |
%{?scl:"} | |
%build | |
%install | |
mkdir -p %{buildroot}%{gem_dir} | |
cp -pa .%{gem_dir}/* \ | |
%{buildroot}%{gem_dir}/ | |
%check | |
pushd .%{gem_instdir} | |
%{?scl:scl enable %{scl} "} | |
%{?scl:"} | |
popd | |
%files | |
%dir %{gem_instdir} | |
%{gem_instdir}/lib | |
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem | |
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec | |
%files doc | |
%doc %{gem_dir}/doc/%{gem_name}-%{version} | |
%{gem_instdir}/test | |
%changelog | |
* Mon Sep 29 2014 Matt Dainty <[email protected]> 0.3.0-1 | |
- Initial package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment