|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%global gem_name public_suffix
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 2.0.5
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.0.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Domain name parser based on the Public Suffix List
|
|
|
|
|
# MPLv2.0: %%{gem_instdir}/data/list.txt
|
|
|
|
|
License: MIT and MPLv2.0
|
|
|
|
@ -32,15 +32,11 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
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
|
|
|
|
@ -66,6 +62,8 @@ popd
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%license %{gem_instdir}/LICENSE.txt
|
|
|
|
|
# This is usefull just for development.
|
|
|
|
|
%exclude %{gem_instdir}/bin
|
|
|
|
|
%{gem_instdir}/data
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_instdir}/public_suffix.gemspec
|
|
|
|
@ -80,8 +78,12 @@ popd
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%exclude %{gem_instdir}/test/.empty
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 13 2017 Vít Ondruch <vondruch@redhat.com> - 3.0.1-1
|
|
|
|
|
- Update to PublicSuffix 3.0.1.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|