summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-10 16:22:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-10 16:22:33 +0000
commite9f0144bfd2424744bc2a78b2d1f474b29e3935f (patch)
tree901c8c532d4bc0152f73d3adaac47093671e5628
parent2d1c745065588f8ffc005cc1869c1c20acd48a59 (diff)
automatic import of rubygem-image_processingopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--rubygem-image_processing.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3430d46 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/image_processing-1.12.2.gem
diff --git a/rubygem-image_processing.spec b/rubygem-image_processing.spec
new file mode 100644
index 0000000..a7e2685
--- /dev/null
+++ b/rubygem-image_processing.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+%global gem_name image_processing
+Name: rubygem-image_processing
+Version: 1.12.2
+Release: 1
+Summary: High-level wrapper for processing images for the web with ImageMagick or libvips.
+License: MIT
+URL: https://github.com/janko/image_processing
+Source0: https://rubygems.org/gems/image_processing-1.12.2.gem
+BuildArch: noarch
+
+Requires: rubygem-mini_magick
+Requires: rubygem-ruby-vips
+BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+BuildRequires: rsync
+Provides: rubygem-image_processing
+
+%description
+High-level wrapper for processing images for the web with ImageMagick or libvips.
+
+%package help
+Summary: Development documents and examples for image_processing
+Provides: rubygem-image_processing-doc
+BuildArch: noarch
+
+%description help
+High-level wrapper for processing images for the web with ImageMagick or libvips.
+
+%prep
+%autosetup -n image_processing-1.12.2
+gem spec %{SOURCE0} -l --ruby > image_processing.gemspec
+
+%build
+gem build image_processing.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-image_processing -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..09638a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+badc7c382b13c23c7c3d57cb2debcc7e image_processing-1.12.2.gem