#Generated from fake_ftp-0.1.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name fake_ftp Name: rubygem-%{gem_name} Version: 0.3.0 Release: 4%{?dist}.1 Summary: Creates a fake FTP server for use in testing License: MIT URL: http://rubygems.org/gems/fake_ftp Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(release) Requires: ruby(rubygems) >= 1.3.6 BuildRequires: ruby(release) BuildRequires: rubygems-devel >= 1.3.6 BuildRequires: ruby BuildRequires: rubygem(coderay) BuildRequires: rubygem(rspec) BuildArch: noarch %description Testing FTP? Use this! %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %if 0%{?rhel} <= 7 gem unpack %{SOURCE0} gem specification %{SOURCE0} -l --ruby > %{gem_name}-%{version}.gemspec %endif %setup -q -D -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # We are not interested in code coverage. sed -i "/require 'simplecov'/ s/^/#/" spec/spec_helper.rb # Increase timeout to make the test suite pass. sed -i "s/timeout: 5,/timeout: 20,/" spec/spec_helper.rb # There's an additional error message for some reason # ... sed -i "/ it 'does not accept RETR without a filename' do/ a skip" \ spec/functional/server_spec.rb FUNCTIONAL_SPECS=1 INTEGRATION_SPECS=1 rspec -rspec_helper spec popd %files %dir %{gem_instdir} %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %doc %{gem_instdir}/README.md %exclude %{gem_instdir}/.* %files doc %doc %{gem_docdir} %{gem_instdir}/spec %{gem_instdir}/Rakefile %{gem_instdir}/Gemfile %{gem_instdir}/Guardfile %{gem_instdir}/fake_ftp.gemspec %doc %{gem_instdir}/CONTRIBUTORS.md %doc %{gem_instdir}/CHANGELOG.md %license %{gem_instdir}/LICENSE.md %changelog * Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Feb 25 2019 Vít Ondruch - 0.3.0-3 - Enable test suite. * Sat Feb 02 2019 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 21 2019 TOmas Hrcka - 0.3.0-1 - Update to latest upstream release * Sat Jul 14 2018 Fedora Release Engineering - 0.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Feb 17 2015 Tomas Hrcka - 0.1.1-2 - Move CONTRIBUTORS.md to doc subpackage - Fixed description - Removed trailing whitespace * Thu Feb 12 2015 Tomas Hrcka - 0.1.1-1 - Initial package