rubygem-actionview/rubygem-actionview.spec

83 lines
2.3 KiB
RPMSpec
Raw Normal View History

2020-08-28 15:46:57 +08:00
%global gem_name actionview
2021-08-04 10:14:21 +08:00
%{?_with_bootstrap: %global bootstrap 1}
%global bootstrap 1
Name: rubygem-%{gem_name}
Version: 5.2.4.4
Release: 2
Summary: Rendering framework putting the V in MVC (part of Rails)
License: MIT
URL: http://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/rails/archive/v5.2.4.4.tar.gz
Patch0: rubygem-actionview-5.1.2-Prevent-negative-IDs-in-output-of-inspect.patch
BuildRequires: ruby(release) rubygems-devel
%if ! 0%{?bootstrap}
BuildRequires: rubygem(activesupport) = %{version} rubygem(activerecord) = %{version}
BuildRequires: rubygem(actionpack) = %{version} rubygem(railties) = %{version}
BuildRequires: rubygem(sqlite3)
%endif
BuildArch: noarch
2020-08-28 15:46:57 +08:00
%description
Simple, battle-tested conventions and helpers for building web pages.
%package doc
2021-08-04 10:14:21 +08:00
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2020-08-28 15:46:57 +08:00
%description doc
2021-08-04 10:14:21 +08:00
Documentation for %{name}.
2020-08-28 15:46:57 +08:00
%prep
2021-08-04 10:14:21 +08:00
%setup -q -c -T
%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
%patch0 -p2
popd
2020-08-28 15:46:57 +08:00
%build
%install
mkdir -p %{buildroot}%{gem_dir}
2021-08-04 10:14:21 +08:00
cp -pa .%{gem_dir}/* \
2020-08-28 15:46:57 +08:00
%{buildroot}%{gem_dir}/
2021-08-04 10:14:21 +08:00
%if ! 0%{?bootstrap}
2020-08-28 15:46:57 +08:00
2021-06-25 16:03:04 +08:00
%check
ln -s %{gem_dir}/gems/activerecord-%{version}/ .%{gem_dir}/gems/activerecord
pushd .%{gem_instdir}
tar xzvf %{SOURCE1} -C .
cd rails-%{version}/%{gem_name}
for t in {actionpack,activerecord,template}; do
2021-08-04 10:14:21 +08:00
ruby -Ilib:test -e "Dir.glob('./test/$t/**/*_test.rb').each {|t| require t}"
2021-06-25 16:03:04 +08:00
done
popd
2021-08-04 10:14:21 +08:00
%endif
2021-06-25 16:03:04 +08:00
2020-08-28 15:46:57 +08:00
%files
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
2021-08-04 10:14:21 +08:00
%license %{gem_instdir}/MIT-LICENSE
2020-08-28 15:46:57 +08:00
%files doc
%doc %{gem_docdir}
2021-06-07 16:49:21 +08:00
%doc %{gem_instdir}/README.rdoc
2021-08-04 10:14:21 +08:00
%doc %{gem_instdir}/CHANGELOG.md
2020-08-28 15:46:57 +08:00
%changelog
2021-08-04 10:14:21 +08:00
* Wed Aug 04 2021 wangyue <wangyue92@huawei.com> - 5.2.4.4-2
- revert to 5.2.4.4
2021-06-25 16:03:04 +08:00
* Fri Jun 25 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-2
- Add code testing
2021-06-07 16:49:21 +08:00
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-1
- Update to 6.0.3.4
* Mon Feb 8 2021sunguoshuai<sunguoshuai@huawei.com>- 5.2.4.4-1
- Upgrade to 5.2.4.4
2020-08-28 15:46:57 +08:00
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
- Package init