Always use full tar.gz for installed files and

keep using gem file for gem spec (ref: bug 1425220)
This commit is contained in:
Mamoru TASAKA 2017-02-21 16:41:14 +09:00
parent 9f7d946ea8
commit 5bc032a68b

View File

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver} %global fullver %{majorver}%{?preminorver}
%global fedorarel 2 %global fedorarel 3
%global gem_name rspec-expectations %global gem_name rspec-expectations
@ -48,14 +48,10 @@ This package contains documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -T -n %{gem_name}-%{version} -b 1
%setup -q -D -T -n %{gem_name}-%{version} -a 1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
pushd %{gem_name}-%{version}
%patch0 -p1 %patch0 -p1
popd
%build %build
gem build %{gem_name}.gemspec gem build %{gem_name}.gemspec
@ -72,10 +68,7 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
%if 0%{?need_bootstrap_set} < 1 %if 0%{?need_bootstrap_set} < 1
%check %check
LANG=en_US.UTF-8 LANG=en_US.UTF-8
pushd %{gem_name}-%{version}
ruby -rubygems -Ilib/ -S rspec spec/ ruby -rubygems -Ilib/ -S rspec spec/
popd
%endif %endif
%files %files
@ -94,6 +87,10 @@ popd
%{gem_docdir} %{gem_docdir}
%changelog %changelog
* Tue Feb 21 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.5.0-3
- Always use full tar.gz for installed files and
keep using gem file for gem spec (ref: bug 1425220)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2.1 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild