diff --git a/gem2rpm.yml b/gem2rpm.yml index 01b0245..c8bb494 100644 --- a/gem2rpm.yml +++ b/gem2rpm.yml @@ -1,4 +1,4 @@ -# --- +--- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm @@ -33,9 +33,9 @@ # 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 +:post_install: |- + # drop files from the git repository + find %{buildroot}/%{_libdir}/ruby/gems/ \( -name '.travis.yml' -o -name '.gitignore' \) | xargs rm # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) diff --git a/rubygem-http-cookie.changes b/rubygem-http-cookie.changes index 5bc0a3e..1e6acfc 100644 --- a/rubygem-http-cookie.changes +++ b/rubygem-http-cookie.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 25 12:41:06 UTC 2021 - Dan Čermák + +- Cleanup spec + ------------------------------------------------------------------- Thu Jun 24 17:30:51 UTC 2021 - Stephan Kulow diff --git a/rubygem-http-cookie.spec b/rubygem-http-cookie.spec index e8c57e5..5606e44 100644 --- a/rubygem-http-cookie.spec +++ b/rubygem-http-cookie.spec @@ -16,28 +16,26 @@ # +%define mod_name http-cookie +%define mod_full_name %{mod_name}-%{version} # # 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-http-cookie Version: 1.0.4 Release: 0 -%define mod_name http-cookie -%define mod_full_name %{mod_name}-%{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} -BuildRequires: ruby-macros >= 5 -URL: https://github.com/sparklemotion/http-cookie -Source: https://rubygems.org/gems/%{mod_full_name}.gem -Source1: gem2rpm.yml Summary: A Ruby library to handle HTTP Cookies based on RFC 6265 License: MIT Group: Development/Languages/Ruby +URL: https://github.com/sparklemotion/http-cookie +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 %description HTTP::Cookie is a Ruby library to handle HTTP Cookies based on RFC 6265. It @@ -54,6 +52,11 @@ and its modular API makes it easy to add support for a new backend store. %gem_install \ --doc-files="CHANGELOG.md LICENSE.txt README.md" \ -f +# MANUAL +# drop files from the git repository +find %{buildroot}/%{_libdir}/ruby/gems/ \( -name '.travis.yml' -o -name '.gitignore' \) | xargs rm +# /MANUAL + %gem_packages