diff --git a/rubygem-spring.spec b/rubygem-spring.spec index 1e88ac47da938853acc567f7ad7ead8a45b4bbec..0862d55544a2f0683bc78ae7cef1f4c5add58ec4 100644 --- a/rubygem-spring.spec +++ b/rubygem-spring.spec @@ -1,74 +1,41 @@ -%global gem_name spring -Name: rubygem-%{gem_name} -Version: 4.1.3 -Release: 1 -Summary: Rails application preloader -License: MIT -URL: https://github.com/rails/spring -Source0: https://rubygems.org/gems/spring-%{version}.gem -# git clone https://github.com/rails/spring.git && cd spring -# git archive -v -o spring-4.1.3-tests.tar.gz v4.1.3 test/ -Source1: %{gem_name}-%{version}-tests.tar.gz -Requires: ruby(release) ruby(rubygems) %{_bindir}/ps -BuildRequires: ruby(release) rubygems-devel rubygem(minitest) rubygem(bundler) -BuildRequires: rubygem(activesupport) -BuildArch: noarch -Provides: bundled(okjson) = 43 -%description -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 -time you run a test, rake task or migration. +Name: rubygem-spring +Version: 4.3.0 +Release: 1%{?dist} +Summary: Spring preloads your application so that you don't need to boot it every time you run a test, rake task or rails command + +License: MIT +URL: https://github.com/rails/spring +Source0: https://github.com/rails/spring/archive/v%{version}.tar.gz +Source1: spring-4.3.0-tests.tar.gz + +BuildRequires: ruby +BuildRequires: rubygems-devel +BuildRequires: rubygem-bundler -%package help -Summary: Documentation for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch -Provides: %{name}-doc = %{version}-%{release} -Obsoletes: %{name}-doc < %{version}-%{release} -%description help -Documentation for %{name} +Requires: ruby +Requires: rubygems + +%description +Spring speeds up development by keeping your application running in the background so you don't need to boot it every time you run a test, rake task or rails command. %prep -%setup -q -n %{gem_name}-%{version} -b 1 +%setup -q -n spring-%{version} +%setup -T -D -a 1 -n spring-%{version} %build -gem build ../%{gem_name}-%{version}.gemspec -%gem_install +gem build %{name}.gemspec %install -mkdir -p %{buildroot}%{gem_dir} -cp -pa .%{gem_dir}/* \ - %{buildroot}%{gem_dir}/ -mkdir -p %{buildroot}%{_bindir} -cp -pa .%{_bindir}/* \ - %{buildroot}%{_bindir}/ -find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x - -%check -pushd .%{gem_instdir} -ln -s %{_builddir}/test test -ruby -Ilib -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)' -popd +gem install --local --install-dir %{buildroot}%{gemdir} --bindir %{buildroot}%{_bindir} %{name}-%{version}.gem +find %{buildroot}%{gemdir} -name "*.so" -exec chrpath -d {} \; %files -%dir %{gem_instdir} +%doc %{gemdir}/gems/%{name}-%{version}/README.md +%doc %{gemdir}/gems/%{name}-%{version}/LICENSE +%{gemdir}/gems/%{name}-%{version}/ +%{gemdir}/specifications/%{name}-%{version}.gemspec %{_bindir}/spring -%{gem_instdir}/bin -%{gem_libdir} -%exclude %{gem_cache} -%{gem_spec} -%license %{gem_instdir}/LICENSE.txt - -%files help -%doc %{gem_docdir} -%doc %{gem_instdir}/README.md %changelog -* Wed Jan 17 2024 liyanan - 4.1.3-1 -- Update to 4.1.3 - -* Sat Sep 5 2020 liyanan - 2.0.0-2 -- fix build fail - -* Sat Aug 22 2020 liyanan - 2.0.0-1 -- package init +* Thu Mar 27 2025 Your Name - 4.3.0-1 +- Initial package \ No newline at end of file diff --git a/spring-4.1.3-tests.tar.gz b/spring-4.1.3-tests.tar.gz deleted file mode 100644 index c9510fb98c99bfd9bf7817255e05426ad13df512..0000000000000000000000000000000000000000 Binary files a/spring-4.1.3-tests.tar.gz and /dev/null differ diff --git a/spring-4.3.0.gem b/spring-4.3.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..2a6294516582e8a71007dc71a2d55b6ee846e1d4 Binary files /dev/null and b/spring-4.3.0.gem differ