-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and Update foreman_supervisory_authority dependencies
Add base64-0.2.0 as dependency for llhttp-ffi Update http to 5.2.0 Update http-form_data to 2.3.0 Add llhttp-ffi-0.5.0 as dependency for http
- Loading branch information
Showing
10 changed files
with
188 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/g9/7f/SHA256E-s8704--0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507.0.gem/SHA256E-s8704--0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507.0.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# template: default | ||
%global gem_name base64 | ||
|
||
Name: rubygem-%{gem_name} | ||
Version: 0.2.0 | ||
Release: 1%{?dist} | ||
Summary: Support for encoding and decoding binary data using a Base64 representation | ||
License: Ruby and BSD-2-Clause | ||
URL: https://github.com/ruby/base64 | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
|
||
# start specfile generated dependencies | ||
Requires: ruby >= 2.4 | ||
BuildRequires: ruby >= 2.4 | ||
BuildRequires: rubygems-devel | ||
BuildArch: noarch | ||
# end specfile generated dependencies | ||
|
||
%description | ||
Support for encoding and decoding binary data using a Base64 representation. | ||
|
||
|
||
%package doc | ||
Summary: Documentation for %{name} | ||
Requires: %{name} = %{version}-%{release} | ||
BuildArch: noarch | ||
|
||
%description doc | ||
Documentation for %{name}. | ||
|
||
%prep | ||
%setup -q -n %{gem_name}-%{version} | ||
|
||
%build | ||
# Create the gem as gem install only works on a gem file | ||
gem build ../%{gem_name}-%{version}.gemspec | ||
|
||
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir | ||
# by default, so that we can move it into the buildroot in %%install | ||
%gem_install | ||
|
||
%install | ||
mkdir -p %{buildroot}%{gem_dir} | ||
cp -a .%{gem_dir}/* \ | ||
%{buildroot}%{gem_dir}/ | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%license %{gem_instdir}/LICENSE.txt | ||
%{gem_libdir} | ||
%exclude %{gem_cache} | ||
%{gem_spec} | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
%doc %{gem_instdir}/README.md | ||
|
||
%changelog |
1 change: 0 additions & 1 deletion
1
packages/plugins/rubygem-http-form_data/http-form_data-2.1.1.gem
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/plugins/rubygem-http-form_data/http-form_data-2.3.0.gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/qW/WP/SHA256E-s17408--cc4eeb1361d9876821e31d7b1cf0b68f1cf874b201d27903480479d86448a5f3.0.gem/SHA256E-s17408--cc4eeb1361d9876821e31d7b1cf0b68f1cf874b201d27903480479d86448a5f3.0.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/F8/FG/SHA256E-s85504--b99ed3c65376e0fd8107647fbaf5a8ab4f66c347d1271fb74cea757e209c6115.0.gem/SHA256E-s85504--b99ed3c65376e0fd8107647fbaf5a8ab4f66c347d1271fb74cea757e209c6115.0.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../.git/annex/objects/2Q/MX/SHA256E-s100864--496f40ad44bcbf99de02da1f26b1ad64e6593cd487b931508a86228e2a3af0fa.0.gem/SHA256E-s100864--496f40ad44bcbf99de02da1f26b1ad64e6593cd487b931508a86228e2a3af0fa.0.gem |
90 changes: 90 additions & 0 deletions
90
packages/plugins/rubygem-llhttp-ffi/rubygem-llhttp-ffi.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# template: default | ||
# | ||
# PLEASE UPDATE WITH CARE! | ||
# The directory structure is very special and | ||
# does not really align with any other package | ||
# | ||
%global gem_name llhttp-ffi | ||
%global gem_require_name llhttp | ||
%global debug_package %{nil} | ||
|
||
Name: rubygem-%{gem_name} | ||
Version: 0.5.0 | ||
Release: 1%{?dist} | ||
Summary: Ruby FFI bindings for llhttp | ||
License: MPL-2.0 | ||
URL: https://github.com/bryanp/llhttp/ | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
|
||
# start specfile generated dependencies | ||
Requires: ruby >= 2.5.0 | ||
BuildRequires: ruby-devel >= 2.5.0 | ||
BuildRequires: rubygems-devel | ||
BuildRequires: (rubygem(ffi-compiler) >= 1.0 with rubygem(ffi-compiler) < 2) | ||
BuildRequires: (rubygem(rake) >= 13.0 with rubygem(rake) < 14) | ||
# Compiler is required for build of gem binary extension. | ||
# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires | ||
BuildRequires: gcc | ||
# end specfile generated dependencies | ||
|
||
%description | ||
Ruby FFI bindings for llhttp. | ||
|
||
|
||
%package doc | ||
Summary: Documentation for %{name} | ||
Requires: %{name} = %{version}-%{release} | ||
BuildArch: noarch | ||
|
||
%description doc | ||
Documentation for %{name}. | ||
|
||
%prep | ||
%setup -q -n %{gem_name}-%{version} | ||
|
||
%build | ||
# Create the gem as gem install only works on a gem file | ||
gem build ../%{gem_name}-%{version}.gemspec | ||
|
||
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir | ||
# by default, so that we can move it into the buildroot in %%install | ||
%gem_install | ||
|
||
%install | ||
mkdir -p %{buildroot}%{gem_dir} | ||
cp -a .%{gem_dir}/* \ | ||
%{buildroot}%{gem_dir}/ | ||
|
||
mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name} | ||
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ | ||
cp -a %{buildroot}%{gem_instdir}/ext/%{_arch}-%{_target_os}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} | ||
|
||
# Prevent dangling symlink in -debuginfo (rhbz#878863). | ||
#rm -rf %{buildroot}%{gem_instdir}/ext/ | ||
|
||
%check | ||
# Ideally, this would be something like this: | ||
# GEM_PATH="%{buildroot}%{gem_dir}:$GEM_PATH" ruby -e "require '%{gem_require_name}'" | ||
# But that fails to find native extensions on EL8, so we fake the structure that ruby expects | ||
mkdir gem_ext_test | ||
cp -a %{buildroot}%{gem_dir} gem_ext_test/ | ||
mkdir -p gem_ext_test/gems/extensions/%{_arch}-%{_target_os}/$(ruby -r rbconfig -e 'print RbConfig::CONFIG["ruby_version"]')/ | ||
cp -a %{buildroot}%{gem_extdir_mri} gem_ext_test/gems/extensions/%{_arch}-%{_target_os}/$(ruby -r rbconfig -e 'print RbConfig::CONFIG["ruby_version"]')/ | ||
GEM_PATH="./gem_ext_test/gems:$GEM_PATH" ruby -e "require '%{gem_require_name}'" | ||
rm -rf gem_ext_test | ||
|
||
%files | ||
%dir %{gem_instdir} | ||
%{gem_extdir_mri} | ||
%license %{gem_instdir}/LICENSE | ||
%{gem_instdir}/ext | ||
%{gem_libdir} | ||
%exclude %{gem_cache} | ||
%{gem_spec} | ||
|
||
%files doc | ||
%doc %{gem_docdir} | ||
%doc %{gem_instdir}/CHANGELOG.md | ||
%doc %{gem_instdir}/README.md | ||
|
||
%changelog |