first commit
This commit is contained in:
parent
f976c9b08b
commit
f2600a4b05
BIN
public_suffix-3.0.1.gem
Normal file
BIN
public_suffix-3.0.1.gem
Normal file
Binary file not shown.
64
rubygem-public_suffix.spec
Normal file
64
rubygem-public_suffix.spec
Normal file
@ -0,0 +1,64 @@
|
||||
%global gem_name public_suffix
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.0.1
|
||||
Release: 1
|
||||
Summary: Domain name parser based on the Public Suffix List
|
||||
License: MIT and MPLv2.0
|
||||
URL: https://simonecarletti.com/code/publicsuffix-ruby
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) rubygem(mocha)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
PublicSuffix can parse and decompose a domain name into top level domain,
|
||||
domain and subdomains.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
License: MIT and Public Domain
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -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}
|
||||
sed -i '/[Rr]eporters/ s/^/#/' test/test_helper.rb
|
||||
LANG=C.utf-8 ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%exclude %{gem_instdir}/.*
|
||||
%license %{gem_instdir}/LICENSE.txt
|
||||
%exclude %{gem_instdir}/bin
|
||||
%{gem_instdir}/data
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_instdir}/public_suffix.gemspec
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/2.0-Upgrade.md
|
||||
%doc %{gem_instdir}/CHANGELOG.md
|
||||
%{gem_instdir}/Gemfile
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/test
|
||||
%exclude %{gem_instdir}/test/.empty
|
||||
|
||||
%changelog
|
||||
* Wed Aug 19 2020 luoshengwei <luoshengwei@huawei.com> - 3.0.1-1
|
||||
- package init
|
||||
4
rubygem-public_suffix.yaml
Normal file
4
rubygem-public_suffix.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: weppos/publicsuffix-ruby
|
||||
tag_prefix: "public_suffix-"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user