# Generated from riemann-tools-1.11.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name riemann-tools Name: rubygem-%{gem_name} Version: 1.11.0 Release: 1%{?dist} Summary: Utilities which submit events to Riemann License: MIT URL: https://github.com/aphyr/riemann-tools Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.6.0 BuildArch: noarch %description Collection of utilities which submit events to Riemann,. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/riemann-apache-status %{_bindir}/riemann-bench %{_bindir}/riemann-cloudant %{_bindir}/riemann-consul %{_bindir}/riemann-dir-files-count %{_bindir}/riemann-dir-space %{_bindir}/riemann-diskstats %{_bindir}/riemann-fd %{_bindir}/riemann-freeswitch %{_bindir}/riemann-haproxy %{_bindir}/riemann-health %{_bindir}/riemann-http-check %{_bindir}/riemann-hwmon %{_bindir}/riemann-kvminstance %{_bindir}/riemann-md %{_bindir}/riemann-memcached %{_bindir}/riemann-net %{_bindir}/riemann-nginx-status %{_bindir}/riemann-ntp %{_bindir}/riemann-portcheck %{_bindir}/riemann-proc %{_bindir}/riemann-tls-check %{_bindir}/riemann-varnish %{_bindir}/riemann-wrapper %{_bindir}/riemann-zookeeper %{_bindir}/riemann-zpool %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %{gem_instdir}/.ruby-version %{gem_instdir}/ISSUE_TEMPLATE.md %license %{gem_instdir}/LICENSE %{gem_instdir}/SECURITY.md %{gem_instdir}/bin %{gem_libdir} %{gem_instdir}/tools %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/.docker %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.markdown %{gem_instdir}/Rakefile %{gem_instdir}/riemann-tools.gemspec %changelog * Sun Jul 07 2024 mockbuilder - 1.11.0-1 - Initial package