Blame SPECS/rubygem-mime-types.spec

e6a036
%{!?scl:%global pkg_name %{name}}
e6a036
%{?scl:%scl_package rubygem-%{gem_name}}
e6a036
e6a036
# Generated from mime-types-1.16.gem by gem2rpm -*- rpm-spec -*-
e6a036
%global gem_name mime-types
e6a036
e6a036
Summary: Return the MIME Content-Type for a given filename
e6a036
Name: %{?scl_prefix}rubygem-%{gem_name}
e6a036
Version: 1.25.1
e6a036
Release: 1%{?dist}
e6a036
Group: Development/Languages
e6a036
License: GPL+ or Ruby or Artistic
e6a036
URL: http://mime-types.rubyforge.org/
e6a036
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
e6a036
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
e6a036
Requires: %{?scl_prefix_ruby}ruby(rubygems)
e6a036
Requires: %{?scl_prefix_ruby}ruby(release)
e6a036
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
e6a036
BuildRequires: %{?scl_prefix_ruby}ruby(release)
e6a036
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
e6a036
BuildArch: noarch
e6a036
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
e6a036
e6a036
%description
e6a036
MIME::Types for Ruby manages a MIME Content-Type database that will return the
e6a036
Content-Type for a given filename.
e6a036
e6a036
MIME::Types was originally based on and synchronized with MIME::Types for
e6a036
Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
e6a036
format for the MIME::Type list has changed and the synchronization will no
e6a036
longer happen.
e6a036
e6a036
%package doc
e6a036
Summary: Documentation for %{pkg_name}
e6a036
Group: Documentation
e6a036
e6a036
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
e6a036
e6a036
%description doc
e6a036
This package contains documentation for %{pkg_name}.
e6a036
e6a036
%prep
e6a036
%setup -q -c -T
e6a036
%{?scl:scl enable %scl - << \EOF}
e6a036
%gem_install -n %{SOURCE0}
e6a036
%{?scl:EOF}
e6a036
e6a036
%build
e6a036
e6a036
%install
e6a036
rm -rf %{buildroot}
e6a036
mkdir -p %{buildroot}%{gem_dir}
e6a036
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
e6a036
e6a036
# These aren't executables
e6a036
find %{buildroot}%{gem_instdir}/{Rakefile,test} -type f | \
e6a036
  xargs -n 1 sed -i  -e '/^#! \/usr\/bin\/env .*/d'
e6a036
e6a036
%clean
e6a036
rm -rf %{buildroot}
e6a036
e6a036
%check
e6a036
pushd .%{gem_instdir}
e6a036
%{?scl:scl enable %scl - << \EOF}
e6a036
# apply test fix from upstream:
e6a036
# https://github.com/halostatue/mime-types/commit/134cab8ffdbd337bf0b8bb67b5097222f6f15769#diff-1
e6a036
sed -i 's|linux|d9d172f608|' test/test_mime_type.rb
e6a036
ruby -Ilib -rminitest/autorun -rfileutils -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
e6a036
%{?scl:EOF}
e6a036
popd
e6a036
e6a036
%files
e6a036
%exclude %{gem_instdir}/.*
e6a036
%doc %{gem_instdir}/Licence.rdoc
e6a036
%dir %{gem_instdir}
e6a036
%{gem_libdir}
e6a036
%dir %{gem_instdir}/docs
e6a036
%doc %{gem_instdir}/docs/COPYING.txt
e6a036
%doc %{gem_instdir}/docs/artistic.txt
e6a036
%exclude %{gem_cache}
e6a036
%{gem_spec}
e6a036
e6a036
%files doc
e6a036
%doc %{gem_docdir}
e6a036
%doc %{gem_instdir}/History.rdoc
e6a036
%doc %{gem_instdir}/README.rdoc
e6a036
%doc %{gem_instdir}/Contributing.rdoc
e6a036
%{gem_instdir}/Gemfile
e6a036
%{gem_instdir}/Rakefile
e6a036
%doc %{gem_instdir}/Manifest.txt
e6a036
%{gem_instdir}/test
e6a036
e6a036
%changelog
e6a036
* Fri Jan 16 2015 Josef Stribny <jstribny@redhat.com> - 1.25.1-1
e6a036
- Update to 1.25.1
e6a036
e6a036
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 1.19-4
e6a036
- Rebuid against new scl-utils to depend on -runtime package.
e6a036
  Resolves: rhbz#1069109
e6a036
e6a036
* Thu Jan 23 2014 Vít Ondruch <vondruch@redhat.com> - 1.19-3
e6a036
- Fix ruby prefix macro.
e6a036
e6a036
* Thu Jun 20 2013 Josef Stribny <jstribny@redhat.com> - 1.19-2
e6a036
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
e6a036
e6a036
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.19-1
e6a036
- Update to Mime-Types 1.19.
e6a036
- Specfile cleanup
e6a036
e6a036
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.18-1
e6a036
- Rebuilt for scl.
e6a036
- Updated to 1.18.
e6a036
e6a036
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.16-7
e6a036
- Rebuilt for Ruby 1.9.3.
e6a036
e6a036
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-6
e6a036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e6a036
e6a036
* Mon Aug 08 2011 Mo Morsi <mmorsi@redhat.com> - 1.16-5
e6a036
- Replace BR(check) with BR
e6a036
e6a036
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
e6a036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e6a036
e6a036
* Wed Dec 30 2009 Matthew Kent <mkent@magoazul.com> - 1.16-3
e6a036
- Remove needless rcov task in Rakefile causing issue (#544964).
e6a036
e6a036
* Sun Dec 27 2009 Matthew Kent <mkent@magoazul.com> - 1.16-2
e6a036
- Fix license (#544964).
e6a036
- Add note about rcov warning in test phase (#544964).
e6a036
e6a036
* Sun Dec 06 2009 Matthew Kent <mkent@magoazul.com> - 1.16-1
e6a036
- Initial package