change spec
This commit is contained in:
parent
60bc26e932
commit
d95af73b89
BIN
marcel-0.3.2.gem
Normal file
BIN
marcel-0.3.2.gem
Normal file
Binary file not shown.
12
rubygem-marcel-0.3.2-fix-spelling-error-on-rpmlint.patch
Normal file
12
rubygem-marcel-0.3.2-fix-spelling-error-on-rpmlint.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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'
|
||||||
60
rubygem-marcel.spec
Normal file
60
rubygem-marcel.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
%global gem_name marcel
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.3.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Simple mime type detection using magic numbers, file names, and extensions
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/basecamp/marcel
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
Patch0: rubygem-marcel-0.3.2-fix-spelling-error-on-rpmlint.patch
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2 rubygem(mimemagic) rubygem(minitest)
|
||||||
|
BuildRequires: rubygem(rack)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Simple mime type detection using magic numbers, file names, and extensions.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
ruby -Ilib:test -r 'pathname' -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%exclude %{gem_instdir}/.*
|
||||||
|
%license %{gem_instdir}/MIT-LICENSE
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_instdir}/marcel.gemspec
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%{gem_instdir}/Gemfile.lock
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 19 2020 geyanan <geyanan2@huawei.com> - 0.3.2-1
|
||||||
|
- package init
|
||||||
4
rubygem-marcel.yaml
Normal file
4
rubygem-marcel.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control:github
|
||||||
|
src_repo:/basecamp/marcel
|
||||||
|
tag_prefix:"v"
|
||||||
|
seperator:"."
|
||||||
Loading…
x
Reference in New Issue
Block a user