update to 1.0.2
(cherry picked from commit 044fd86aec3f689cff862609c4fff84bbf341d55)
This commit is contained in:
parent
0c278265eb
commit
dae0e3967b
Binary file not shown.
BIN
marcel-1.0.2.gem
Normal file
BIN
marcel-1.0.2.gem
Normal file
Binary file not shown.
@ -1,12 +0,0 @@
|
|||||||
diff --git a/marcel.gemspec b/marcel.gemspec
|
|
||||||
index 8f33fd4..512c513 100644
|
|
||||||
--- a/marcel.gemspec
|
|
||||||
+++ b/marcel.gemspec
|
|
||||||
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
||||||
spec.version = Marcel::VERSION
|
|
||||||
spec.authors = ['Tom Ward']
|
|
||||||
spec.email = ['tom@basecamp.com']
|
|
||||||
- spec.summary = %q{Simple mime type detection using magic numbers, filenames, and extensions}
|
|
||||||
+ spec.summary = %q{Simple mime type detection using magic numbers, file names, and extensions}
|
|
||||||
spec.homepage = 'https://github.com/basecamp/marcel'
|
|
||||||
spec.license = 'MIT'
|
|
||||||
@ -1,13 +1,15 @@
|
|||||||
%global gem_name marcel
|
%global gem_name marcel
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 0.3.2
|
Version: 1.0.2
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Simple mime type detection using magic numbers, file names, and extensions
|
Summary: Simple mime type detection using magic numbers, file names, and extensions
|
||||||
License: MIT
|
License: MIT and ASL 2.0
|
||||||
URL: https://github.com/basecamp/marcel
|
URL: https://github.com/basecamp/marcel
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Patch0: rubygem-marcel-0.3.2-fix-spelling-error-on-rpmlint.patch
|
# git clone https://github.com/rails/marcel.git && cd marcel
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2 rubygem(mimemagic) rubygem(minitest)
|
# git archive -v -o marcel-1.0.2-test.tar.gz v1.0.2 test/
|
||||||
|
Source1: %{gem_name}-%{version}-test.tar.gz
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2 rubygem(minitest)
|
||||||
BuildRequires: rubygem(rack)
|
BuildRequires: rubygem(rack)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
@ -21,8 +23,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version} -b 1
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -35,26 +36,26 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ruby -Ilib:test -r 'pathname' -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
ln -s %{_builddir}/test .
|
||||||
|
sed -i "/require 'byebug'/ s/^/#/" test/test_helper.rb
|
||||||
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%exclude %{gem_instdir}/.*
|
|
||||||
%license %{gem_instdir}/MIT-LICENSE
|
%license %{gem_instdir}/MIT-LICENSE
|
||||||
|
%license %{gem_instdir}/APACHE-LICENSE
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%exclude %{gem_instdir}/marcel.gemspec
|
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%{gem_instdir}/Gemfile
|
|
||||||
%{gem_instdir}/Gemfile.lock
|
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%{gem_instdir}/Rakefile
|
|
||||||
%{gem_instdir}/test
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 03 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.2-1
|
||||||
|
- update to 1.0.2
|
||||||
|
|
||||||
* Wed Aug 19 2020 geyanan <geyanan2@huawei.com> - 0.3.2-1
|
* Wed Aug 19 2020 geyanan <geyanan2@huawei.com> - 0.3.2-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user