update to 1.2.5
This commit is contained in:
parent
08915984c4
commit
875f82a69a
Binary file not shown.
BIN
rake-compiler-1.2.5-specs.tar.gz
Normal file
BIN
rake-compiler-1.2.5-specs.tar.gz
Normal file
Binary file not shown.
BIN
rake-compiler-1.2.5.gem
Normal file
BIN
rake-compiler-1.2.5.gem
Normal file
Binary file not shown.
@ -1,23 +1,22 @@
|
|||||||
%global gemname rake-compiler
|
%global gem_name rake-compiler
|
||||||
%global gem_name %{gemname}
|
|
||||||
%global gemdir %{gem_dir}
|
|
||||||
%global geminstdir %{gem_instdir}
|
|
||||||
%global rubyabi 1.8
|
|
||||||
%global ruby19 1
|
|
||||||
%undefine _changelog_trimtime
|
%undefine _changelog_trimtime
|
||||||
Summary: Rake-based Ruby C Extension task generator
|
Summary: Rake-based Ruby C Extension task generator
|
||||||
Name: rubygem-%{gemname}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.1.0
|
Version: 1.2.5
|
||||||
Release: 1
|
Release: 1
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rake-compiler/rake-compiler
|
URL: http://github.com/rake-compiler/rake-compiler
|
||||||
Source0: https://rubygems.org/gems/%{gemname}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
#git clone http://github.com/rake-compiler/rake-compiler
|
||||||
|
#cd rake-compiler
|
||||||
|
#git archive -v -o rake-compiler-1.2.5-specs.tar.gz v1.2.5 spec/
|
||||||
|
Source1: rake-compiler-%{version}-specs.tar.gz
|
||||||
Requires: ruby(release)
|
Requires: ruby(release)
|
||||||
BuildRequires: ruby(release) ruby(rubygems) >= 1.3.5 rubygem(rake) rubygem(rspec) >= 3
|
BuildRequires: ruby(release) ruby(rubygems) >= 1.3.5 rubygem(rake) rubygem(rspec) >= 3
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel rubygem(cucumber) gcc ruby-devel
|
||||||
Requires: ruby(rubygems) >= 1.3.5 rubygem(rake) >= 0.8.3
|
Requires: ruby(rubygems) >= 1.3.5 rubygem(rake) >= 0.8.3 rubygem(did_you_mean)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: rubygem(%{gemname}) = %{version}-%{release}
|
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
||||||
%description
|
%description
|
||||||
rake-compiler aims to help Gem developers while dealing with
|
rake-compiler aims to help Gem developers while dealing with
|
||||||
Ruby C extensions, simplifiying the code and reducing the duplication.
|
Ruby C extensions, simplifiying the code and reducing the duplication.
|
||||||
@ -35,54 +34,72 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
This package contains documentation for %{name}.
|
This package contains documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -n %{gem_name}-%{version} -b1
|
||||||
TOPDIR=$(pwd)
|
mv ../%{gem_name}-%{version}.gemspec .
|
||||||
mkdir tmpunpackdir
|
|
||||||
pushd tmpunpackdir
|
|
||||||
gem unpack %{SOURCE0}
|
|
||||||
cd %{gem_name}-%{version}
|
|
||||||
find ./lib/rake -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d'
|
find ./lib/rake -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d'
|
||||||
|
|
||||||
find . -name \*.rb -print0 | xargs --null chmod 0644
|
find . -name \*.rb -print0 | xargs --null chmod 0644
|
||||||
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
|
|
||||||
gem build %{gem_name}.gemspec
|
grep -rl be_true features/ | xargs sed -i 's|be_true|be_truthy|'
|
||||||
mv %{gem_name}-%{version}.gem $TOPDIR
|
grep -rl be_false features/ | xargs sed -i 's|be_false|be_falsey|'
|
||||||
popd
|
|
||||||
rm -rf tmpunpackdir
|
sed -i tasks/bin/cross-ruby.rake \
|
||||||
|
-e '\@LDFLAGS=@d'
|
||||||
|
|
||||||
|
sed -i cucumber.yml -e "s|~@java|'not @java'|"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
gem build %{gem_name}-%{version}.gemspec
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}%{gemdir}
|
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
||||||
|
|
||||||
|
rm -f %{buildroot}%{gem_cache}
|
||||||
|
pushd %{buildroot}%{gem_instdir}
|
||||||
|
rm -rf \
|
||||||
|
Gemfile \
|
||||||
|
Rakefile \
|
||||||
|
appveyor.yml \
|
||||||
|
cucumber.yml \
|
||||||
|
features/ \
|
||||||
|
spec/ \
|
||||||
|
tasks/ \
|
||||||
|
tmp/ \
|
||||||
|
%{nil}
|
||||||
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{geminstdir}
|
rm -rf .%{gem_instdir}/spec
|
||||||
|
cp -a ../spec/ .%{gem_instdir}/
|
||||||
|
|
||||||
|
pushd .%{gem_instdir}
|
||||||
ruby -Ilib -S rspec spec/
|
ruby -Ilib -S rspec spec/
|
||||||
|
|
||||||
|
export CUCUMBER_PUBLISH_QUIET=true
|
||||||
|
ruby -Ilib -S cucumber
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/rake-compiler
|
%{_bindir}/rake-compiler
|
||||||
%dir %{geminstdir}
|
%license %{gem_instdir}/LICENSE.txt
|
||||||
%doc %{geminstdir}/README.md
|
%dir %{gem_instdir}
|
||||||
%doc %{geminstdir}/LICENSE.txt
|
%doc %{gem_instdir}/README.md
|
||||||
%doc %{geminstdir}/History.txt
|
%doc %{gem_instdir}/History.md
|
||||||
%{geminstdir}/cucumber.yml
|
%{gem_instdir}/bin/
|
||||||
%exclude %{geminstdir}/appveyor.yml
|
%{gem_libdir}
|
||||||
%{geminstdir}/bin/
|
%{gem_spec}
|
||||||
%{geminstdir}/features/
|
|
||||||
%{geminstdir}/lib/
|
|
||||||
%{geminstdir}/tasks/
|
|
||||||
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
||||||
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%{gemdir}/doc/%{gemname}-%{version}
|
%{gem_docdir}
|
||||||
%exclude %{geminstdir}/Gemfile
|
|
||||||
%exclude %{geminstdir}/Rakefile
|
|
||||||
%{geminstdir}/spec/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 15 2023 liyanan <liyanan61@h-partners.com> - 1.2.5-1
|
||||||
|
- update to 1.2.5
|
||||||
|
|
||||||
* Thu Nov 19 2020 caodongxia <caodongxia@huawei.com> - 1.1.0-1
|
* Thu Nov 19 2020 caodongxia <caodongxia@huawei.com> - 1.1.0-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user