diff --git a/rubygem-rouge.spec b/rubygem-rouge.spec index 7d29c6d..39a4381 100644 --- a/rubygem-rouge.spec +++ b/rubygem-rouge.spec @@ -11,8 +11,6 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel -BuildRequires: ruby >= 2.0 - BuildRequires: help2man BuildArch: noarch @@ -32,11 +30,10 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} - +mv ../%{gem_name}-%{version}.gemspec . %build -gem build ../%{gem_name}-%{version}.gemspec - +gem build %{gem_name}-%{version}.gemspec %gem_install @@ -44,45 +41,44 @@ gem build ../%{gem_name}-%{version}.gemspec mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ - mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x - # Generate man page from "rougify --help" output export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}" mkdir -p %{buildroot}%{_mandir}/man1 - help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \ %{buildroot}%{_bindir}/rougify +rm -f %{buildroot}%{gem_cache} +pushd %{buildroot}%{gem_instdir} +rm -rf \ + Gemfile \ + %{gem_name}.gemspec \ + %{nil} +popd + %files +%dir %{gem_instdir} + %license %{gem_instdir}/LICENSE -%{_bindir}/rougify - -%{_mandir}/man1/rougify.1* - -%dir %{gem_instdir} -%{gem_instdir}/bin -%exclude %{gem_instdir}/rouge.gemspec - %{gem_libdir} +%exclude %{gem_libdir}/%{gem_name}/demos -%exclude %{gem_cache} +%{_bindir}/rougify +%{gem_instdir}/bin +%{_mandir}/man1/rougify.1* %{gem_spec} - %files doc %doc %{gem_docdir} - -%{gem_instdir}/Gemfile - +%{gem_libdir}/%{gem_name}/demos %changelog * Fri Jul 23 2021 Fedora Release Engineering - 3.26.0-3