# Generated from mime-types-1.17.2.gem by gem2rpm -*- rpm-spec -*- %global gemname mime-types %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Summary: This library allows for the identification of a file's likely MIME content type Name: rubygem-%{gemname} Version: 1.17.2 Release: 1%{?dist} Group: Development/Languages License: GPL+ or Ruby or Artistic URL: http://mime-types.rubyforge.org/ Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: ruby BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(rubygems) BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description This library allows for the identification of a file's likely MIME content type. This is release 1.17.2. The identification of MIME content type is based on a file's filename extensions. MIME::Types for Ruby originally based on and synchronized with MIME::Types for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data format for the MIME::Type list has changed and the synchronization will no longer happen. Homepage:: http://mime-types.rubyforge.org/ GitHub:: http://github.com/halostatue/mime-types/ Copyright:: 2002 - 2011, Austin Ziegler Based in part on prior work copyright Mark Overmeer :include: License.rdoc %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gemdir} gem install --local --install-dir .%{gemdir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* \ %{buildroot}%{gemdir}/ %files %dir %{geminstdir} %{geminstdir}/ %exclude %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %files doc %doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/Manifest.txt %doc %{geminstdir}/type-lists/application.txt %doc %{geminstdir}/type-lists/audio.txt %doc %{geminstdir}/type-lists/image.txt %doc %{geminstdir}/type-lists/message.txt %doc %{geminstdir}/type-lists/model.txt %doc %{geminstdir}/type-lists/multipart.txt %doc %{geminstdir}/type-lists/text.txt %doc %{geminstdir}/type-lists/video.txt %doc %{geminstdir}/History.rdoc %doc %{geminstdir}/License.rdoc %doc %{geminstdir}/README.rdoc %changelog * Mon Feb 27 2012 tuxdna@gmail.com - 1.17.2-1 - Initial package