# Generated from attachment_saver-1.6.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name attachment_saver Name: rubygem-%{gem_name} Version: 1.6.0 Release: 1%{?dist} Summary: Saves attachments in files, models, or columns License: MIT URL: http://github.com/willbryant/attachment_saver Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(image_science) # BuildRequires: rubygem(rmagick) # BuildRequires: rubygem(mini_magick) # BuildRequires: rubygem(image_size) # BuildRequires: rubygem(gdk_pixbuf2) # BuildRequires: rubygem(sqlite3) # BuildRequires: rubygem(mocha) BuildArch: noarch %description This plugin implements attachment storage and processing, integrated with ActiveRecord models and Ruby CGI/Rails-style uploads. Image processing operations including a number of different resizing & thumbnailing modes are provided, and the architecture simplifies clean implementation of other types of processing. Errors are carefully handled to minimize the possibility of broken uploads leaving incomplete or corrupt data. RMagick, MiniMagick, and ImageScience image processors are supported. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/init.rb %{gem_libdir} %{gem_instdir}/samples.rb %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %doc %{gem_instdir}/README %{gem_instdir}/Rakefile %{gem_instdir}/attachment_saver.gemspec %{gem_instdir}/test %{gem_instdir}/test_all.sh %changelog * Sun Sep 12 2021 mockbuilder - 1.6.0-1 - Initial package