commit
97817054ba
69
rubygem-sqlite3.spec
Normal file
69
rubygem-sqlite3.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
%global gem_name sqlite3
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 1.3.13
|
||||||
|
Release: 1
|
||||||
|
Summary: Allows Ruby scripts to interface with a SQLite3 database
|
||||||
|
License: BSD
|
||||||
|
URL: https://github.com/sparklemotion/sqlite3-ruby
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby-devel sqlite-devel rubygem(minitest) >= 5.0.0
|
||||||
|
BuildRequires: gcc
|
||||||
|
%description
|
||||||
|
SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3
|
||||||
|
database.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
License: BSD and LGPLv2
|
||||||
|
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}/
|
||||||
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||||
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,sqlite3} %{buildroot}%{gem_extdir_mri}/
|
||||||
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
ruby -I$(dirs +1)%{gem_extdir_mri}:lib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_extdir_mri}
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/API_CHANGES.rdoc
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.rdoc
|
||||||
|
%doc %{gem_instdir}/ChangeLog.cvs
|
||||||
|
%doc %{gem_instdir}/Manifest.txt
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
%doc %{gem_instdir}/faq/
|
||||||
|
%{gem_instdir}/setup.rb
|
||||||
|
%{gem_instdir}/tasks
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 24 2020 zhanghua <zhanghua40@huawei.com> - 1.3.13-1
|
||||||
|
- package init
|
||||||
4
rubygem-sqlite3.yaml
Normal file
4
rubygem-sqlite3.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: sparklemotion/sqlite3-ruby
|
||||||
|
tag_pattern: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
sqlite3-1.3.13.gem
Normal file
BIN
sqlite3-1.3.13.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user