# Generated from brand2csv-0.3.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name brand2csv Name: rubygem-%{gem_name} Version: 0.3.2 Release: 1%{?dist} Summary: brand2csv creates csv files for swiss brands License: GPLv3 URL: https://github.com/zdavatz/brand2csv Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(watir) # BuildRequires: rubygem(watir-webdriver) # BuildRequires: rubygem(webmock) # BuildRequires: rubygem(rspec) # BuildRequires: rubygem(pry-byebug) # BuildRequires: rubygem(pry-doc) BuildArch: noarch %description brand2csv creates csv files for swiss brand registered in a specific time period. The csv contains the brand, link to image (if present), link to the detailinfo at swissreg.ch, name and address of owner (Inhaber). %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}/brand2csv %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENCE.txt %{gem_instdir}/Manifest.txt %{gem_instdir}/bin %{gem_libdir} %{gem_instdir}/logs %{gem_instdir}/protocol.2013.05.12.textile %{gem_instdir}/protocol.2013.05.15.textile %{gem_instdir}/protocol.2013.05.21.textile %{gem_instdir}/spike.rb %{gem_instdir}/spike_mechanize_swissreg.rb %{gem_instdir}/spike_watir.rb %{gem_instdir}/swissreg.rb %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}/brand2csv.gemspec %{gem_instdir}/spec %changelog * Sun Sep 12 2021 mockbuilder - 0.3.2-1 - Initial package