commit 91eb15577a1eaee59e80b72f8450211974d1080667b27aba4a990393834e8520 Author: Adrian Schröter Date: Mon Dec 9 16:36:47 2024 +0100 Sync from SUSE:SLFO:Main rubygem-mini_mime revision e254516618d9ee0d24c568b870aa80c2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..80c3bf7 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,71 @@ +# --- +# ## used by gem2rpm +# :summary: this is a custom summary +# ## used by gem2rpm +# :description: |- +# this is a custom description +# +# it can be multiline +# ## used by gem2rpm +# :license: MIT or Ruby +# ## used by gem2rpm and gem_packages +# :version_suffix: -x_y +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +# :patches: +# foo.patch: -p1 +# bar.patch: +# ## used by gem2rpm +# :sources: +# - foo.desktop +# - bar.desktop +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +# :post_install: |- +# # delete custom files here or do other fancy stuff +# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# +:sources: diff --git a/mini_mime-1.1.5.gem b/mini_mime-1.1.5.gem new file mode 100644 index 0000000..c595132 --- /dev/null +++ b/mini_mime-1.1.5.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef +size 35328 diff --git a/rubygem-mini_mime.changes b/rubygem-mini_mime.changes new file mode 100644 index 0000000..e028834 --- /dev/null +++ b/rubygem-mini_mime.changes @@ -0,0 +1,79 @@ +------------------------------------------------------------------- +Fri Nov 3 07:42:08 UTC 2023 - Dan Čermák + +- 08-08-2023 + - Version 1.1.5 + - Update mime types from upstream + +08-08-2023 + - Version 1.1.4 + - Version 1.1.3 had issues on Windows which does not support pread, added a polyfill + +04-08-2023 + - Version 1.1.3 + - Added fork safety by migrating from seek+read to pread + + +------------------------------------------------------------------- +Sat Dec 25 10:00:59 UTC 2021 - Manuel Schnitzer + +- updated to version 1.1.2 + + * update mime types from upstream + +------------------------------------------------------------------- +Wed Aug 25 05:15:27 UTC 2021 - Manuel Schnitzer + +- updated to version 1.1.1 + + * update mime types from upstream + +------------------------------------------------------------------- +Tue Apr 20 13:45:08 UTC 2021 - Manuel Schnitzer + +- updated to version 1.1.0 + + 05-04-2021 + - Version 1.1.0 + - MiniMime.lookup_by_extension is now case insensitive + + 26-03-2021 + - Version 1.0.3 + - Update mime types from upstream + +------------------------------------------------------------------- +Mon Jul 15 07:20:52 UTC 2019 - Manuel Schnitzer + +- updated to version 1.0.2 + + * Update mime types from upstream + +------------------------------------------------------------------- +Tue Aug 14 06:50:58 UTC 2018 - mschnitzer@suse.com + +- updated to version 1.0.1 + + * Update mime types from upstream + * Add lookup_by_extension to the public API + +------------------------------------------------------------------- +Fri Nov 17 09:53:35 UTC 2017 - mschnitzer@suse.com + +- updated to version 1.0.0 + + Other than the version number, no difference from 0.1.4 + +------------------------------------------------------------------- +Mon Aug 28 05:27:03 UTC 2017 - coolo@suse.com + +- updated to version 0.1.4 + see installed CHANGELOG + + 11-08-2017 + - Version 0.1.4 + - Return preferred extension when looking up by content type + +------------------------------------------------------------------- +Fri Jun 16 22:51:11 UTC 2017 - mrueckert@suse.de + +- initial package diff --git a/rubygem-mini_mime.spec b/rubygem-mini_mime.spec new file mode 100644 index 0000000..122503c --- /dev/null +++ b/rubygem-mini_mime.spec @@ -0,0 +1,54 @@ +# +# spec file for package rubygem-mini_mime +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + +Name: rubygem-mini_mime +Version: 1.1.5 +Release: 0 +%define mod_name mini_mime +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{ruby >= 2.6.0} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: ruby-macros >= 5 +URL: https://github.com/discourse/mini_mime +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +Summary: A minimal mime type library +License: MIT + +%description +A minimal mime type library. + +%prep + +%build + +%install +%gem_install \ + --doc-files="CHANGELOG LICENSE.txt README.md" \ + -f + +%gem_packages + +%changelog