64 lines
1.4 KiB
RPMSpec
64 lines
1.4 KiB
RPMSpec
|
|
%global gem_name formatador
|
||
|
|
%{!?_with_bootstrap: %global bootstrap 0}
|
||
|
|
Name: rubygem-%{gem_name}
|
||
|
|
Version: 0.2.5
|
||
|
|
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
|
||
|
|
%doc %{gem_instdir}/README.rdoc
|
||
|
|
%{gem_instdir}/Rakefile
|
||
|
|
%doc %{gem_instdir}/changelog.txt
|
||
|
|
%{gem_instdir}/formatador.gemspec
|
||
|
|
%{gem_instdir}/tests
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 24 2020 tushenmei <tushenmei@huawei.com> - 0.2.5-1
|
||
|
|
- package init
|