75 lines
1.8 KiB
RPMSpec
75 lines
1.8 KiB
RPMSpec
%global gem_name builder
|
|
|
|
Name: rubygem-%{gem_name}
|
|
Version: 3.2.4
|
|
Release: 1
|
|
Summary: Builders for MarkUp
|
|
License: MIT
|
|
URL: http://onestepback.org
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
|
Patch1: rubygem-builder-3.2.4-Fix-Ruby-3-compatibility.patch
|
|
BuildArch: noarch
|
|
%description
|
|
Builder provides a number of builder objects that make creating structured
|
|
data simple to do. Currently the following builder objects are supported:
|
|
* XML Markup
|
|
* XML Events
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
%build
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
pushd %{buildroot}%{gem_instdir}
|
|
find -type f -name '*.rb' -print | xargs sed -i '/#!\/usr\/bin\/env/d'
|
|
popd
|
|
|
|
chmod -x %{buildroot}%{gem_instdir}/doc/releases/builder-2.1.1.rdoc
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CHANGES
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/builder.blurb
|
|
%{gem_instdir}/builder.gemspec
|
|
%doc %{gem_instdir}/doc
|
|
%{gem_instdir}/rakelib
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Thu Feb 10 2022 chenchen <chen_aka_jan@163.com> - 3.2.4-1
|
|
- update to 3.2.4
|
|
|
|
* Sat Jul 25 2020 wangxiao <wangxiao65@huawei.com> - 3.2.3-1
|
|
- package init
|