From 23a42b5120a4d4d8b4f4d8ac7785975e335dad1e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 10 Mar 2023 16:04:33 +0000 Subject: automatic import of rubygem-ruby-vips --- .gitignore | 1 + rubygem-ruby-vips.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 rubygem-ruby-vips.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..5b4ae95 100644 --- a/.gitignore +++ b/.gitignore @@ -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 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..a637326 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e469f3bed406b7f34d968910f6bde0c1 ruby-vips-2.1.4.gem -- cgit v1.2.3