From e6a0369f0257cb1cb39a37a2e597db038786a817 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 07:23:22 +0000 Subject: import rh-ror41-rubygem-mime-types-1.25.1-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a032e7c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mime-types-1.25.1.gem diff --git a/.rh-ror41-rubygem-mime-types.metadata b/.rh-ror41-rubygem-mime-types.metadata new file mode 100644 index 0000000..4dd32ce --- /dev/null +++ b/.rh-ror41-rubygem-mime-types.metadata @@ -0,0 +1 @@ +77b8adb876b2eda4877fc427093a4b1de578bc04 SOURCES/mime-types-1.25.1.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-mime-types.spec b/SPECS/rubygem-mime-types.spec new file mode 100644 index 0000000..b26b6c1 --- /dev/null +++ b/SPECS/rubygem-mime-types.spec @@ -0,0 +1,135 @@ +%{!?scl:%global pkg_name %{name}} +%{?scl:%scl_package rubygem-%{gem_name}} + +# Generated from mime-types-1.16.gem by gem2rpm -*- rpm-spec -*- +%global gem_name mime-types + +Summary: Return the MIME Content-Type for a given filename +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 1.25.1 +Release: 1%{?dist} +Group: Development/Languages +License: GPL+ or Ruby or Artistic +URL: http://mime-types.rubyforge.org/ +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +MIME::Types for Ruby manages a MIME Content-Type database that will return the +Content-Type for a given filename. + +MIME::Types was 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. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation + +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} + +%description doc +This package contains documentation for %{pkg_name}. + +%prep +%setup -q -c -T +%{?scl:scl enable %scl - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ + +# These aren't executables +find %{buildroot}%{gem_instdir}/{Rakefile,test} -type f | \ + xargs -n 1 sed -i -e '/^#! \/usr\/bin\/env .*/d' + +%clean +rm -rf %{buildroot} + +%check +pushd .%{gem_instdir} +%{?scl:scl enable %scl - << \EOF} +# apply test fix from upstream: +# https://github.com/halostatue/mime-types/commit/134cab8ffdbd337bf0b8bb67b5097222f6f15769#diff-1 +sed -i 's|linux|d9d172f608|' test/test_mime_type.rb +ruby -Ilib -rminitest/autorun -rfileutils -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +%exclude %{gem_instdir}/.* +%doc %{gem_instdir}/Licence.rdoc +%dir %{gem_instdir} +%{gem_libdir} +%dir %{gem_instdir}/docs +%doc %{gem_instdir}/docs/COPYING.txt +%doc %{gem_instdir}/docs/artistic.txt +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/History.rdoc +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/Contributing.rdoc +%{gem_instdir}/Gemfile +%{gem_instdir}/Rakefile +%doc %{gem_instdir}/Manifest.txt +%{gem_instdir}/test + +%changelog +* Fri Jan 16 2015 Josef Stribny - 1.25.1-1 +- Update to 1.25.1 + +* Fri Mar 21 2014 Vít Ondruch - 1.19-4 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Thu Jan 23 2014 Vít Ondruch - 1.19-3 +- Fix ruby prefix macro. + +* Thu Jun 20 2013 Josef Stribny - 1.19-2 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Jul 26 2012 Bohuslav Kabrda - 1.19-1 +- Update to Mime-Types 1.19. +- Specfile cleanup + +* Tue Apr 03 2012 Bohuslav Kabrda - 1.18-1 +- Rebuilt for scl. +- Updated to 1.18. + +* Tue Jan 31 2012 Bohuslav Kabrda - 1.16-7 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 1.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Aug 08 2011 Mo Morsi - 1.16-5 +- Replace BR(check) with BR + +* Wed Feb 09 2011 Fedora Release Engineering +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 30 2009 Matthew Kent - 1.16-3 +- Remove needless rcov task in Rakefile causing issue (#544964). + +* Sun Dec 27 2009 Matthew Kent - 1.16-2 +- Fix license (#544964). +- Add note about rcov warning in test phase (#544964). + +* Sun Dec 06 2009 Matthew Kent - 1.16-1 +- Initial package