rubygem-actionview/rubygem-actionview.spec

101 lines
2.4 KiB
RPMSpec
Raw Normal View History

2021-06-25 16:03:04 +08:00
%global pkg_name %{name}
2021-06-07 16:49:21 +08:00
2020-08-28 15:46:57 +08:00
%global gem_name actionview
2021-06-07 16:49:21 +08:00
%global gem_require_name %{gem_name}
2021-06-25 16:03:04 +08:00
Name: rubygem-%{gem_name}
2021-06-07 16:49:21 +08:00
Version: 6.0.3.4
2021-06-25 16:03:04 +08:00
Release: 2
2021-06-07 16:49:21 +08:00
Summary: Rendering framework putting the V in MVC (part of Rails)
Group: Development/Languages
License: MIT
URL: https://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
2021-06-25 16:03:04 +08:00
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
Requires: ruby(release)
Requires: ruby >= 2.5.0
Requires: ruby(rubygems)
Requires: rubygem(activesupport) = 6.0.3.4
Requires: rubygem(builder) >= 3.1
Requires: rubygem(builder) < 4
Requires: rubygem(erubi) >= 1.4
Requires: rubygem(erubi) < 2
Requires: rubygem(rails-html-sanitizer) >= 1.1
Requires: rubygem(rails-html-sanitizer) < 2
Requires: rubygem(rails-html-sanitizer) >= 1.2.0
Requires: rubygem(rails-dom-testing) >= 2.0
Requires: rubygem(rails-dom-testing) < 3
BuildRequires: ruby(release)
BuildRequires: ruby >= 2.5.0
BuildRequires: rubygems-devel
2021-06-07 16:49:21 +08:00
BuildArch: noarch
2021-06-25 16:03:04 +08:00
Provides: rubygem(%{gem_name}) = %{version}
2021-06-07 16:49:21 +08:00
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 5.2.1
2020-08-28 15:46:57 +08:00
%description
Simple, battle-tested conventions and helpers for building web pages.
2021-06-07 16:49:21 +08:00
2020-08-28 15:46:57 +08:00
%package doc
2021-06-07 16:49:21 +08:00
Summary: Documentation for %{pkg_name}
Group: Documentation
2021-06-25 16:03:04 +08:00
Requires: %{pkg_name} = %{version}-%{release}
2021-06-07 16:49:21 +08:00
BuildArch: noarch
2020-08-28 15:46:57 +08:00
%description doc
2021-06-07 16:49:21 +08:00
Documentation for %{pkg_name}.
2020-08-28 15:46:57 +08:00
%prep
2021-06-07 16:49:21 +08:00
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2020-08-28 15:46:57 +08:00
%build
2021-06-07 16:49:21 +08:00
gem build %{gem_name}.gemspec
%gem_install
2020-08-28 15:46:57 +08:00
%install
mkdir -p %{buildroot}%{gem_dir}
2021-06-07 16:49:21 +08:00
cp -a .%{gem_dir}/* \
2020-08-28 15:46:57 +08:00
%{buildroot}%{gem_dir}/
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
ruby -Ilib:test -e "Dir.glob('./test/$t/**/*_test.rb')"
done
popd
2020-08-28 15:46:57 +08:00
%files
%dir %{gem_instdir}
2021-06-07 16:49:21 +08:00
%license %{gem_instdir}/MIT-LICENSE
2020-08-28 15:46:57 +08:00
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
2021-06-07 16:49:21 +08:00
%doc %{gem_instdir}/README.rdoc
2020-08-28 15:46:57 +08:00
%changelog
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