commit
700ad2cdeb
BIN
globalid-0.4.2.gem
Normal file
BIN
globalid-0.4.2.gem
Normal file
Binary file not shown.
65
rubygen-globalid.spec
Normal file
65
rubygen-globalid.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%global gem_name globalid
|
||||||
|
%{?_with_bootstrap: %global bootstrap 1}
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.4.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Refer to any model with a URI: gid://app/class/id
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/rails/%{gem_name}
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
Source1: https://github.com/rails/%{gem_name}/archive/v%{version}.tar.gz
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3
|
||||||
|
%if ! 0%{?bootstrap}
|
||||||
|
BuildRequires: rubygem(activesupport) >= 4.1 rubygem(activemodel) >= 4.1
|
||||||
|
BuildRequires: rubygem(railties) >= 4.1
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
URIs for your models makes it easy to pass references around.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version} -b 1
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
%if ! 0%{?bootstrap}
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
ln -s %{_builddir}/globalid-0.4.2/test test
|
||||||
|
sed -i "/bundler\/setup/ s/^/#/" ./test/helper.rb
|
||||||
|
sed -i "/defaults to nil when secret_token is not present' do/a \\
|
||||||
|
skip 'Not compatible with Rails 5.2'" test/cases/railtie_test.rb
|
||||||
|
ruby -Ilib:test -rforwardable -e "Dir.glob './test/cases/*test.rb', &method(:require)"
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%license %{gem_instdir}/MIT-LICENSE
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 21 2020 tuShenmei <tushenmei@huawei.com> - 0.4.2-1
|
||||||
|
- package init
|
||||||
4
rubygen-globalid.yaml
Normal file
4
rubygen-globalid.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: rails/globalid
|
||||||
|
tag_prefix: "globalid-"
|
||||||
|
separator: "."
|
||||||
BIN
v0.4.2.tar.gz
Normal file
BIN
v0.4.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user