# Generated from openscap-0.1.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name openscap Name: rubygem-%{gem_name} Version: 0.1.0 Release: 2%{?dist} Summary: A FFI wrapper around the OpenSCAP library Group: Development/Languages License: GPLv2+ URL: https://github.com/isimluk/ruby-openscap Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(release) Requires: ruby(rubygems) Requires: rubygem(ffi) >= 1.4.0 Requires: libopenscap.so.8 BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # For tests we need: BuildRequires: rubygem(rake) BuildRequires: rubygem(bundler) BuildRequires: rubygem(test-unit) BuildRequires: rubygem(ffi) >= 1.4.0 BuildRequires: openscap-devel # End (for the tests we needed) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description A FFI wrapper around the OpenSCAP library. Currently %{name} provides only a subset of openscap functionality. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} Requires: rubygems BuildArch: noarch %description doc Documentation for %{name} %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.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 %check rake test %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ rm %{buildroot}%{gem_instdir}/.gitignore rm %{buildroot}%{gem_instdir}/VERSION mv %{buildroot}%{gem_instdir}/openscap.gemspec %{buildroot}/%{gem_spec} %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/COPYING %doc %{gem_instdir}/README.md %{gem_instdir}/test/ %{gem_instdir}/Rakefile %changelog * Tue May 06 2014 Šimon Lukašík - 0.1.0-2 - corrected license tag - avoided macro in comment * Tue Apr 22 2014 Šimon Lukašík - 0.1.0-1 - Initial package