Blame rubygem-net-dns.spec

33a814d
%global gem_name net-dns
33a814d
33a814d
Name: rubygem-%{gem_name}
33a814d
Version: 0.8.0
33a814d
Release: 1%{?dist}
33a814d
Summary: Pure Ruby DNS library
33a814d
License: BSD
33a814d
URL: http://github.com/bluemonk/net-dns
33a814d
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
33a814d
Source1: LICENSE
33a814d
BuildRequires: ruby(release)
33a814d
BuildRequires: rubygems-devel
33a814d
BuildRequires: ruby >= 1.8.7
33a814d
BuildArch: noarch
33a814d
33a814d
%description
33a814d
Net::DNS is a pure Ruby DNS library, with a clean OO interface and an
33a814d
extensible API.
33a814d
33a814d
33a814d
%package doc
33a814d
Summary: Documentation for %{name}
33a814d
Requires: %{name} = %{version}-%{release}
33a814d
BuildArch: noarch
33a814d
33a814d
%description doc
33a814d
Documentation for %{name}.
33a814d
33a814d
%prep
33a814d
gem unpack %{SOURCE0}
33a814d
33a814d
%setup -q -D -T -n  %{gem_name}-%{version}
33a814d
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
33a814d
cp -p %{SOURCE1} .
33a814d
33a814d
%build
33a814d
# Create the gem as gem install only works on a gem file
33a814d
gem build %{gem_name}.gemspec
33a814d
33a814d
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
33a814d
# by default, so that we can move it into the buildroot in %%install
33a814d
%gem_install
33a814d
33a814d
%install
33a814d
mkdir -p %{buildroot}%{gem_dir}
33a814d
cp -a .%{gem_dir}/* \
33a814d
        %{buildroot}%{gem_dir}/
33a814d
33a814d
33a814d
33a814d
33a814d
# Run the test suite
33a814d
%check
33a814d
pushd .%{gem_instdir}
33a814d
33a814d
popd
33a814d
33a814d
%files
33a814d
%license LICENSE
33a814d
%dir %{gem_instdir}
33a814d
%exclude %{gem_instdir}/.gitignore
33a814d
%exclude %{gem_instdir}/.travis.yml
33a814d
%{gem_instdir}/demo
33a814d
%{gem_instdir}/fixtures
33a814d
%{gem_libdir}
33a814d
%exclude %{gem_cache}
33a814d
%{gem_spec}
33a814d
33a814d
%files doc
33a814d
%doc %{gem_docdir}
33a814d
%doc %{gem_instdir}/CHANGELOG.md
33a814d
%{gem_instdir}/Gemfile
33a814d
%doc %{gem_instdir}/README.md
33a814d
%{gem_instdir}/Rakefile
33a814d
%doc %{gem_instdir}/THANKS.rdoc
33a814d
%{gem_instdir}/net-dns.gemspec
33a814d
%{gem_instdir}/test
33a814d
33a814d
%changelog
33a814d
* Mon Jun 20 2016 Germano Massullo <germano.massullo@gmail.com> - 0.8.0-1
33a814d
- Initial package