package init
This commit is contained in:
parent
1f46e81c95
commit
399206a23c
BIN
activemodel-serializers-xml-1.0.1.gem
Normal file
BIN
activemodel-serializers-xml-1.0.1.gem
Normal file
Binary file not shown.
64
rubygem-activemodel-serializers-xml.spec
Normal file
64
rubygem-activemodel-serializers-xml.spec
Normal file
@ -0,0 +1,64 @@
|
||||
%global gem_name activemodel-serializers-xml
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: XML serialization for Active Model objects and Active Record models
|
||||
License: MIT
|
||||
URL: http://github.com/rails/activemodel-serializers-xml
|
||||
Source0: https://rubygems.org/gems/activemodel-serializers-xml-1.0.1.gem
|
||||
Source1: http://github.com/rails/activemodel-serializers-xml/archive/v1.0.1.tar.gz
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activesupport) rubygem(activerecord)
|
||||
BuildRequires: rubygem(builder) rubygem(sqlite3)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
XML serialization for your Active Model objects and Active Record models -
|
||||
extracted from Rails.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
%setup -q -D -T -n %{gem_name}-%{version}
|
||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
|
||||
%build
|
||||
gem build %{gem_name}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
tar xzvf %{SOURCE1}
|
||||
cd %{gem_name}-%{version}
|
||||
sed -i "s/ActiveModel::TestCase/ActiveSupport::TestCase/" test/active_model/xml_serialization_test.rb
|
||||
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%exclude %{gem_instdir}/.*
|
||||
%license %{gem_instdir}/MIT-LICENSE
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/CONTRIBUTING.md
|
||||
%{gem_instdir}/Gemfile
|
||||
%doc %{gem_instdir}/README.md
|
||||
%{gem_instdir}/Rakefile
|
||||
%exclude %{gem_instdir}/activemodel-serializers-xml.gemspec
|
||||
|
||||
%changelog
|
||||
* Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 1.0.1-1
|
||||
- Package init
|
||||
4
rubygem-activemodel-serializers-xml.yaml
Normal file
4
rubygem-activemodel-serializers-xml.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: rails/activemodel-serializers-xml
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
BIN
v1.0.1.tar.gz
Normal file
BIN
v1.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user