rubygem-spring/rubygem-spring.spec

75 lines
2.2 KiB
RPMSpec
Raw Normal View History

2020-08-21 09:57:45 +08:00
%global gem_name spring
Name: rubygem-%{gem_name}
2024-01-17 16:37:11 +08:00
Version: 4.1.3
Release: 1
2020-08-21 09:57:45 +08:00
Summary: Rails application preloader
License: MIT
URL: https://github.com/rails/spring
Source0: https://rubygems.org/gems/spring-%{version}.gem
2024-01-17 16:37:11 +08:00
# 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
2020-08-21 09:57:45 +08:00
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.
2020-08-24 09:30:04 +08:00
%package help
2020-08-21 09:57:45 +08:00
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2020-08-24 09:30:04 +08:00
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
2020-08-21 09:57:45 +08:00
Documentation for %{name}
%prep
2024-01-17 16:37:11 +08:00
%setup -q -n %{gem_name}-%{version} -b 1
2020-08-21 09:57:45 +08:00
%build
2024-01-17 16:37:11 +08:00
gem build ../%{gem_name}-%{version}.gemspec
2020-08-21 09:57:45 +08:00
%gem_install
%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}
2024-01-17 16:37:11 +08:00
ln -s %{_builddir}/test test
ruby -Ilib -e 'Dir.glob "./test/unit/**/*_test.rb", &method(:require)'
2020-08-21 09:57:45 +08:00
popd
%files
%dir %{gem_instdir}
%{_bindir}/spring
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%license %{gem_instdir}/LICENSE.txt
2020-08-24 09:30:04 +08:00
%files help
2020-08-21 09:57:45 +08:00
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%changelog
2024-01-17 16:37:11 +08:00
* Wed Jan 17 2024 liyanan <liyanan61@h-partners.com> - 4.1.3-1
- Update to 4.1.3
2020-09-05 18:51:39 +08:00
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 2.0.0-2
- fix build fail
2020-08-24 09:30:04 +08:00
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 2.0.0-1
- package init