diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 15:11:18 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 15:11:18 +0000 |
commit | 573bb227b04ebef61da4856493dc95f5e2520bb4 (patch) | |
tree | 70d603b8d9d5d2001350c4aea9831fdb8d294e7b | |
parent | c50061face462afd1d4f3875473a1beac0754468 (diff) |
automatic import of rubygem-mysql2openeuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-mysql2.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/mysql2-0.5.5.gem diff --git a/rubygem-mysql2.spec b/rubygem-mysql2.spec new file mode 100644 index 0000000..839cb33 --- /dev/null +++ b/rubygem-mysql2.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name mysql2 +Name: rubygem-mysql2 +Version: 0.5.5 +Release: 1 +Summary: A simple, fast Mysql library for Ruby, binding to libmysql +License: MIT +URL: https://github.com/brianmario/mysql2 +Source0: https://rubygems.org/gems/mysql2-0.5.5.gem + +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +BuildRequires: gcc +BuildRequires: gdb +Provides: rubygem-mysql2 + +%description +A simple, fast Mysql library for Ruby, binding to libmysql + +%package help +Summary: Development documents and examples for mysql2 +Provides: rubygem-mysql2-doc +BuildArch: noarch + +%description help +A simple, fast Mysql library for Ruby, binding to libmysql + +%prep +%autosetup -n mysql2-0.5.5 +gem spec %{SOURCE0} -l --ruby > mysql2.gemspec + +%build +gem build mysql2.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ +rsync -a --exclude=".*" .%{gem_dir}/* %{buildroot}%{gem_dir}/ +if [ -d .%{_bindir} ]; then + mkdir -p %{buildroot}%{_bindir} + cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ +fi +if [ -d ext ]; then + mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name} + if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then + cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} + else + cp -a .%{gem_extdir_mri}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} +fi + cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ + rm -rf %{buildroot}%{gem_instdir}/ext/ +fi +pushd %{buildroot} +touch filelist.lst +if [ -d %{buildroot}%{_bindir} ]; then + find .%{_bindir} -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%files -n rubygem-mysql2 -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%{gem_extdir_mri} +%exclude %{gem_cache} +%{gem_spec} + +%files help +%{gem_docdir}/* + +%changelog +* Fri Mar 10 2023 Ruby_Bot <Ruby_Bot@openeuler.org> +- Package Spec generated @@ -0,0 +1 @@ +20c74e08f1a577dd0647c5b7b93f2390 mysql2-0.5.5.gem |