Blob Blame History Raw
%global gem_name net-dns

Name: rubygem-%{gem_name}
Version: 0.8.0
Release: 5%{?dist}
Summary: Pure Ruby DNS library
License: BSD
Source1: LICENSE
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 1.8.7
BuildArch: noarch

Net::DNS is a pure Ruby DNS library, with a clean OO interface and an
extensible API.

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
cp -p %{SOURCE1} .

# 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

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \

# Run the test suite
pushd .%{gem_instdir}


%license LICENSE
%dir %{gem_instdir}
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.travis.yml
%exclude %{gem_cache}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/
%doc %{gem_instdir}/
%doc %{gem_instdir}/THANKS.rdoc

* Sat Jul 14 2018 Fedora Release Engineering <> - 0.8.0-5
- Rebuilt for

* Fri Feb 09 2018 Fedora Release Engineering <> - 0.8.0-4
- Rebuilt for

* Thu Jul 27 2017 Fedora Release Engineering <> - 0.8.0-3
- Rebuilt for

* Sat Feb 11 2017 Fedora Release Engineering <> - 0.8.0-2
- Rebuilt for

* Mon Jun 20 2016 Germano Massullo <> - 0.8.0-1
- Initial package