Modernize and cleanup the .spec a bit.

f38
Vít Ondruch 7 years ago
parent 9f5384a3ba
commit 26e822c047

@ -28,7 +28,6 @@ BuildRequires: /usr/bin/zsh
# features/steps/command/shell.feature:97 # Scenario: Running python commands
BuildRequires: /usr/bin/python3
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
Aruba is Cucumber extension for Command line applications written
@ -44,30 +43,12 @@ BuildArch: noarch
Documentation for %{name}
%prep
%setup -q -c -T
%setup -q -n %{gem_name}-%{version}
# Gem repack
TOPDIR=$(pwd)
mkdir tmpunpackdir
pushd tmpunpackdir
gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
# Allow childprocess 0.5.6
sed -i \
-e '/add_runtime_dependency.*childprocess/s|>= 0.6.3|>= 0.5.6|' \
%{gem_name}.gemspec
gem build %{gem_name}.gemspec
mv %{gem_name}-%{version}.gem $TOPDIR
popd
rm -rf tmpunpackdir
%gemspec_remove_dep -g childprocess '>= 0.6.3'
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
@ -133,7 +114,7 @@ popd
%files
%dir %{gem_instdir}
%doc %{gem_instdir}/LICENSE
%license %{gem_instdir}/LICENSE
%doc %{gem_instdir}/README.md
%{gem_libdir}
%{gem_instdir}/bin/

Loading…
Cancel
Save