2020-08-28 12:19:15 +08:00
|
|
|
%global gem_name formatador
|
|
|
|
|
%{!?_with_bootstrap: %global bootstrap 0}
|
|
|
|
|
Name: rubygem-%{gem_name}
|
2022-06-27 17:11:11 +08:00
|
|
|
Version: 1.1.0
|
2020-08-28 12:19:15 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Ruby STDOUT text formatting
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/geemus/formatador
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
BuildRequires: ruby(release) rubygems-devel
|
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
|
BuildRequires: rubygem(shindo)
|
|
|
|
|
%endif
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
|
|
|
|
STDOUT text formatting.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
RUBYOPT=-Ilib shindo
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%license %{gem_instdir}/LICENSE.md
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
|
|
%doc %{gem_instdir}/CONTRIBUTORS.md
|
|
|
|
|
%{gem_instdir}/Gemfile
|
2022-06-27 17:11:11 +08:00
|
|
|
%doc %{gem_instdir}/README.md
|
2020-08-28 12:19:15 +08:00
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_instdir}/changelog.txt
|
|
|
|
|
%{gem_instdir}/formatador.gemspec
|
|
|
|
|
%{gem_instdir}/tests
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-06-27 17:11:11 +08:00
|
|
|
* Mon Jun 27 2022 xuping <xuping33@h-partners.com> - 1.1.0-1
|
|
|
|
|
- Upgrade 1.1.0
|
|
|
|
|
|
2020-08-28 12:19:15 +08:00
|
|
|
* Mon Aug 24 2020 tushenmei <tushenmei@huawei.com> - 0.2.5-1
|
|
|
|
|
- package init
|