package init
This commit is contained in:
parent
e188c57309
commit
0eb12bd268
@ -1,21 +1,23 @@
|
|||||||
%global gem_name thread_order
|
%global gem_name thread_order
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Test helper for ordering threaded code
|
Summary: Test helper for ordering threaded code
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/JoshCheek/thread_order
|
URL: https://github.com/JoshCheek/thread_order
|
||||||
Source0: https://rubygems.org/gems/thread_order-%{version}.gem
|
Source0: https://rubygems.org/gems/thread_order-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3
|
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
Test helper for ordering threaded code.
|
Test helper for ordering threaded code.
|
||||||
|
|
||||||
%package doc
|
%package help
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description doc
|
Provides: %{name}-doc = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||||
|
%description help
|
||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -30,16 +32,16 @@ gem build %{gem_name}.gemspec
|
|||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
pushd %{buildroot}
|
pushd %{buildroot}
|
||||||
rm -f .%{gem_cache}
|
rm -f .%{gem_cache}
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
rm -rf \
|
rm -rf \
|
||||||
.gitignore .travis.yml \
|
.gitignore .travis.yml \
|
||||||
Gemfile \
|
Gemfile \
|
||||||
spec/ \
|
spec/ \
|
||||||
%{gem_name}.gemspec \
|
%{gem_name}.gemspec \
|
||||||
%{nil}
|
%{nil}
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -50,24 +52,24 @@ FAILFILE+=("spec/thread_order_spec.rb")
|
|||||||
FAILTEST+=("is implemented without depending on the stdlib")
|
FAILTEST+=("is implemented without depending on the stdlib")
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
|
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
|
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
|
||||||
${FAILFILE[$i]}
|
${FAILFILE[$i]}
|
||||||
}
|
}
|
||||||
rspec spec/ || \
|
rspec spec/ || \
|
||||||
rspec spec/ --tag ~broken
|
rspec spec/ --tag ~broken
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%license %{gem_instdir}/License.txt
|
%license %{gem_instdir}/License.txt
|
||||||
%doc %{gem_instdir}/Readme.md
|
%doc %{gem_instdir}/Readme.md
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
%files doc
|
%files help
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 1.1.1-1
|
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 1.1.1-1
|
||||||
- Package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user