diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:04:33 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 16:04:33 +0000 |
commit | 23a42b5120a4d4d8b4f4d8ac7785975e335dad1e (patch) | |
tree | ff5ab50775f4ac9178d956d3f84199c74653965b | |
parent | 12fe5674d6fc16da3f6bfcbf03c1f2117c41cea5 (diff) |
automatic import of rubygem-ruby-vipsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-ruby-vips.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/ruby-vips-2.1.4.gem diff --git a/rubygem-ruby-vips.spec b/rubygem-ruby-vips.spec new file mode 100644 index 0000000..9ae9d29 --- /dev/null +++ b/rubygem-ruby-vips.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name ruby-vips +Name: rubygem-ruby-vips +Version: 2.1.4 +Release: 1 +Summary: A fast image processing library with low memory needs +License: MIT +URL: http://github.com/libvips/ruby-vips +Source0: https://rubygems.org/gems/ruby-vips-2.1.4.gem +BuildArch: noarch + +Requires: rubygem-ffi +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +Provides: rubygem-ruby-vips + +%description +ruby-vips is a binding for the libvips image processing library. It is fast + and it can process large images without loading the whole image in memory. + +%package help +Summary: Development documents and examples for ruby-vips +Provides: rubygem-ruby-vips-doc +BuildArch: noarch + +%description help +ruby-vips is a binding for the libvips image processing library. It is fast + and it can process large images without loading the whole image in memory. + +%prep +%autosetup -n ruby-vips-2.1.4 +gem spec %{SOURCE0} -l --ruby > ruby-vips.gemspec + +%build +gem build ruby-vips.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-ruby-vips -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%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 @@ +e469f3bed406b7f34d968910f6bde0c1 ruby-vips-2.1.4.gem |