package init

This commit is contained in:
lyn1001 2020-08-24 09:30:04 +08:00
parent 070f7e1b89
commit e50c5b2f64

View File

@ -17,11 +17,13 @@ Spring is a Rails application preloader. It speeds up development by keeping
your application running in the background so you don't need to boot it every your application running in the background so you don't need to boot it every
time you run a test, rake task or migration. time you run a test, rake task or migration.
%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
@ -45,7 +47,7 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xf %{SOURCE1} tar xf %{SOURCE1}
cd %{gem_name}-%{version} cd %{gem_name}-%{version}
ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)' ruby -Ilib:test -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
popd popd
@ -58,10 +60,10 @@ popd
%{gem_spec} %{gem_spec}
%license %{gem_instdir}/LICENSE.txt %license %{gem_instdir}/LICENSE.txt
%files doc %files help
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Mon Aug 10 2020 yanan li <liyanan032@huawei.com> - 2.0.0-1 * Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 2.0.0-1
- Package init - package init