da48342
#Generated from fake_ftp-0.1.1.gem by gem2rpm -*- rpm-spec -*-
da48342
%global gem_name fake_ftp
da48342
da48342
Name: rubygem-%{gem_name}
da48342
Version: 0.1.1
12ab33c
Release: 4%{?dist}
da48342
Summary: Creates a fake FTP server for use in testing
da48342
Group: Development/Languages
da48342
License: MIT
da48342
URL: http://rubygems.org/gems/fake_ftp
da48342
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
da48342
Requires: ruby(release)
da48342
Requires: ruby(rubygems) >= 1.3.6
da48342
BuildRequires: ruby(release)
da48342
BuildRequires: rubygems-devel >= 1.3.6
da48342
BuildRequires: ruby
da48342
BuildRequires: rubygem-coderay
da48342
BuildArch: noarch
da48342
Provides: rubygem(%{gem_name}) = %{version}
da48342
da48342
%description
da48342
Testing FTP? Use this!
da48342
da48342
da48342
%package doc
da48342
Summary: Documentation for %{name}
da48342
Group: Documentation
da48342
Requires: %{name} = %{version}-%{release}
da48342
BuildArch: noarch
da48342
da48342
%description doc
da48342
Documentation for %{name}.
da48342
da48342
%prep
da48342
gem unpack %{SOURCE0}
da48342
da48342
%setup -q -D -T -n  %{gem_name}-%{version}
da48342
da48342
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
da48342
da48342
%build
da48342
# Create the gem as gem install only works on a gem file
da48342
gem build %{gem_name}.gemspec
da48342
da48342
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
da48342
# by default, so that we can move it into the buildroot in %%install
da48342
%gem_install
da48342
da48342
#remove .files
da48342
rm -f .%{gem_instdir}/.gitignore
da48342
rm -f .%{gem_instdir}/.rspec
da48342
rm -f .%{gem_instdir}/.travis.yml
da48342
da48342
%install
da48342
mkdir -p %{buildroot}%{gem_dir}
da48342
da48342
cp -a .%{gem_dir}/* \
da48342
        %{buildroot}%{gem_dir}/
da48342
da48342
da48342
da48342
da48342
# Run the test suite
da48342
%check
da48342
pushd .%{gem_instdir}
da48342
#tests require networking capabilities, disabling for now
da48342
popd
da48342
da48342
%files
da48342
%dir %{gem_instdir}
da48342
%{gem_libdir}
da48342
%{gem_spec}
da48342
%exclude %{gem_cache}
da48342
%doc %{gem_instdir}/README.md
da48342
da48342
da48342
%files doc
da48342
%doc %{gem_docdir}
da48342
%{gem_instdir}/spec
da48342
%{gem_instdir}/Rakefile
da48342
%{gem_instdir}/Gemfile
da48342
%{gem_instdir}/Gemfile.lock
da48342
%{gem_instdir}/Guardfile
da48342
%{gem_instdir}/fake_ftp.gemspec
da48342
%doc %{gem_instdir}/CONTRIBUTORS.md
da48342
da48342
%changelog
12ab33c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-4
12ab33c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
12ab33c
f789837
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
f789837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f789837
da48342
* Tue Feb 17 2015 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-2
da48342
- Move CONTRIBUTORS.md to doc subpackage
da48342
- Fixed description
da48342
- Removed trailing whitespace
da48342
da48342
* Thu Feb 12 2015 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-1
da48342
- Initial package
da48342