# Generated from oddb2xml-2.7.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name oddb2xml Name: rubygem-%{gem_name} Version: 2.7.4 Release: 1%{?dist} Summary: oddb2xml creates xml files License: GPL-3.0 URL: https://github.com/zdavatz/oddb2xml Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.5.0 # BuildRequires: rubygem(rspec) # BuildRequires: rubygem(webmock) # BuildRequires: rubygem(vcr) # BuildRequires: rubygem(timecop) # BuildRequires: rubygem(flexmock) BuildArch: noarch %description oddb2xml creates xml files using swissINDEX, BAG-XML and Swissmedic. %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} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/check_artikelstamm %{_bindir}/compare_v5 %{_bindir}/oddb2xml %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %{gem_instdir}/.standard.yml %{gem_instdir}/Elexis_Artikelstamm_v003.xsd %{gem_instdir}/Elexis_Artikelstamm_v5.xsd %license %{gem_instdir}/LICENSE %{gem_instdir}/Manifest.txt %{gem_instdir}/QA.md %{gem_instdir}/artikelstamm.md %{gem_instdir}/bin %{gem_instdir}/data %{gem_instdir}/dokumentation_calc.textile %{gem_libdir} %{gem_instdir}/oddb2xml.xsd %{gem_instdir}/oddb_calc.xsd %{gem_instdir}/tools %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.txt %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/oddb2xml.gemspec %{gem_instdir}/spec %{gem_instdir}/test_options.rb %changelog * Tue Sep 14 2021 mockbuilder - 2.7.4-1 - Initial package