Cleanup .spec file.

f38
Pavel Valena 7 years ago
parent 3cea63977e
commit b86ed7e2c1

@ -4,7 +4,7 @@ Summary: New wave Internationalization support for Ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.0.0 Version: 1.0.0
Release: 1%{?dist} Release: 1%{?dist}
Group: Development/Languages # `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
License: MIT and (BSD or Ruby) License: MIT and (BSD or Ruby)
URL: http://github.com/svenfuchs/i18n URL: http://github.com/svenfuchs/i18n
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
@ -23,20 +23,16 @@ Ruby Internationalization and localization solution.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Group: Documentation
Requires:%{name} = %{version}-%{release} Requires:%{name} = %{version}-%{release}
%description doc %description doc
Documentation for %{name}. Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -c -T
%setup -q -D -T -n %{gem_name}-%{version} %gem_install -n %{SOURCE0}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build %build
gem build %{gem_name}.gemspec
%gem_install
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
@ -57,14 +53,14 @@ popd
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
%{gem_libdir} %{gem_libdir}
%doc %{gem_instdir}/README.md %license %{gem_instdir}/MIT-LICENSE
%doc %{gem_instdir}/MIT-LICENSE %exclude %{gem_cache}
%{gem_cache}
%{gem_spec} %{gem_spec}
%files doc %files doc
%{gem_instdir}/test %{gem_instdir}/test
%{gem_instdir}/gemfiles %{gem_instdir}/gemfiles
%doc %{gem_instdir}/README.md
%doc %{gem_docdir} %doc %{gem_docdir}

Loading…
Cancel
Save