73 lines
1.9 KiB
RPMSpec
73 lines
1.9 KiB
RPMSpec
%global gem_name public_suffix
|
|
Name: rubygem-%{gem_name}
|
|
Version: 4.0.7
|
|
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}
|
|
%exclude %{gem_instdir}/codecov.yml
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/2.0-Upgrade.md
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
%doc %{gem_instdir}/SECURITY.md
|
|
%{gem_instdir}/Gemfile
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/test
|
|
%exclude %{gem_instdir}/test/.empty
|
|
|
|
%changelog
|
|
* Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 4.0.7-1
|
|
- Upgrade to 4.0.7
|
|
|
|
* Fri Feb 11 2022 liyanan <liyanan32@huawei.com> - 3.0.1-2
|
|
- Fix build error
|
|
|
|
* Wed Aug 19 2020 luoshengwei <luoshengwei@huawei.com> - 3.0.1-1
|
|
- package init
|