|
|
@ -2,22 +2,35 @@
|
|
|
|
%global gem_name pg
|
|
|
|
%global gem_name pg
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.2.3
|
|
|
|
Version: 1.5.4
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: A Ruby interface to the PostgreSQL RDBMS
|
|
|
|
Summary: A Ruby interface to the PostgreSQL RDBMS
|
|
|
|
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
|
|
|
|
License: (BSD-2-Clause OR Ruby) AND PostgreSQL
|
|
|
|
#
|
|
|
|
|
|
|
|
# The portions of the code that are BSD-licensed are licensed under
|
|
|
|
|
|
|
|
# the BSD 3-Clause license; the contents of the BSD file are incorrect.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
License: (BSD or Ruby) and PostgreSQL
|
|
|
|
|
|
|
|
URL: https://github.com/ged/ruby-pg
|
|
|
|
URL: https://github.com/ged/ruby-pg
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
# git clone --no-checkout https://github.com/ged/ruby-pg.git
|
|
|
|
|
|
|
|
# git -C ruby-pg archive -v -o pg-1.5.4-spec.tar.gz v1.5.4 spec/
|
|
|
|
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
|
# Disable RPATH.
|
|
|
|
# Disable RPATH.
|
|
|
|
# https://bitbucket.org/ged/ruby-pg/issue/183
|
|
|
|
# https://github.com/ged/ruby-pg/issues/183
|
|
|
|
Patch0: rubygem-pg-0.17.1-remove-rpath.patch
|
|
|
|
Patch0: rubygem-pg-1.3.0-remove-rpath.patch
|
|
|
|
# Required in ext/pg_text_decoder.c
|
|
|
|
# Fix integer arithmetic on timespec struct fields on 32bit systems.
|
|
|
|
|
|
|
|
# The time_t type that is the type of timespec struct fields is not guaranteed
|
|
|
|
|
|
|
|
# to be any particular size or type. Therefore we need to explicitly retype
|
|
|
|
|
|
|
|
# to avoid buffer {over,under}flow.
|
|
|
|
|
|
|
|
# See `man 3 timespec` and `man 3 time_t` for further reference.
|
|
|
|
|
|
|
|
# https://github.com/ged/ruby-pg/issues/545
|
|
|
|
|
|
|
|
# https://github.com/ged/ruby-pg/pull/547
|
|
|
|
|
|
|
|
Patch1: rubygem-pg-1.5.4-Explicitly-retype-timespec-fields-to-int64_t.patch
|
|
|
|
|
|
|
|
# Fix possible buffer overflows.
|
|
|
|
|
|
|
|
# Found when upstream was investigating the following issue:
|
|
|
|
|
|
|
|
# https://github.com/ged/ruby-pg/issues/545
|
|
|
|
|
|
|
|
# https://github.com/ged/ruby-pg/pull/548
|
|
|
|
|
|
|
|
Patch2: rubygem-pg-1.5.4-Fix-possible-buffer-overflows-on-32-bit-systems.patch
|
|
|
|
|
|
|
|
# ext/pg_text_decoder.c
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
|
|
|
|
# lib/pg/text_{de,en}coder.rb
|
|
|
|
|
|
|
|
Requires: rubygem(json)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
@ -31,7 +44,7 @@ BuildRequires: rubygem(rspec)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This is the extension library to access a PostgreSQL database from Ruby.
|
|
|
|
This is the extension library to access a PostgreSQL database from Ruby.
|
|
|
|
This library works with PostgreSQL 9.1 and later.
|
|
|
|
This library works with PostgreSQL 9.3 and later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
@ -43,9 +56,11 @@ BuildArch: noarch
|
|
|
|
Documentation for %{name}.
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%patch 0 -p1
|
|
|
|
|
|
|
|
%patch 1 -p1
|
|
|
|
|
|
|
|
%patch 2 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
@ -66,18 +81,11 @@ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
|
|
|
|
|
|
|
|
|
|
|
# Remove useless shebangs.
|
|
|
|
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile.cross
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Files under %%{gem_libdir} are not executable.
|
|
|
|
|
|
|
|
for file in `find %{buildroot}%{gem_libdir} -type f -name "*.rb"`; do
|
|
|
|
|
|
|
|
sed -i '/^#!\/usr\/bin\/env/ d' $file \
|
|
|
|
|
|
|
|
&& chmod -v 644 $file
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
ln -s %{_builddir}/spec .
|
|
|
|
|
|
|
|
|
|
|
|
# Set --verbose to show detail log by $VERBOSE.
|
|
|
|
# Set --verbose to show detail log by $VERBOSE.
|
|
|
|
# See https://github.com/ged/ruby-pg/blob/master/spec/helpers.rb $VERBOSE
|
|
|
|
# See https://github.com/ged/ruby-pg/blob/master/spec/helpers.rb $VERBOSE
|
|
|
|
# Assign a random port to consider a case of multi builds in parallel in a host.
|
|
|
|
# Assign a random port to consider a case of multi builds in parallel in a host.
|
|
|
@ -94,34 +102,90 @@ popd
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%license %{gem_instdir}/BSDL
|
|
|
|
%license %{gem_instdir}/BSDL
|
|
|
|
%license %{gem_instdir}/POSTGRES
|
|
|
|
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
|
|
|
|
%license %{gem_instdir}/POSTGRES
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/ChangeLog
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/Contributors.rdoc
|
|
|
|
%doc %{gem_instdir}/Contributors.rdoc
|
|
|
|
%doc %{gem_instdir}/History.rdoc
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/History.md
|
|
|
|
%doc %{gem_instdir}/Manifest.txt
|
|
|
|
%doc %{gem_instdir}/Manifest.txt
|
|
|
|
%doc %{gem_instdir}/README-OS_X.rdoc
|
|
|
|
%doc %{gem_instdir}/README-OS_X.rdoc
|
|
|
|
%doc %{gem_instdir}/README-Windows.rdoc
|
|
|
|
%doc %{gem_instdir}/README-Windows.rdoc
|
|
|
|
%doc %{gem_instdir}/README.ja.rdoc
|
|
|
|
%lang(ja) %doc %{gem_instdir}/README.ja.md
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{gem_instdir}/Rakefile*
|
|
|
|
%{gem_instdir}/Rakefile*
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
%{gem_instdir}/rakelib/*
|
|
|
|
|
|
|
|
%{gem_instdir}/certs
|
|
|
|
|
|
|
|
%{gem_instdir}/misc
|
|
|
|
|
|
|
|
%{gem_instdir}/pg.gemspec
|
|
|
|
|
|
|
|
%{gem_instdir}/sample
|
|
|
|
|
|
|
|
# The translations are only related to README and the readme is already in
|
|
|
|
|
|
|
|
# japanese (AFAICT) when we build an RPM from the gem, so we shouldn't need
|
|
|
|
|
|
|
|
# this directory at all.
|
|
|
|
|
|
|
|
# https://github.com/ged/ruby-pg/pull/549
|
|
|
|
|
|
|
|
%exclude %{gem_instdir}/translation
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-7
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.5.4-5
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.5.4-4
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.5.4-4
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 03 2024 Vít Ondruch <vondruch@redhat.com> - 1.5.4-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 23 2023 Jarek Prokop <jprokop@redhat.com> - 1.5.4-1
|
|
|
|
|
|
|
|
- Upgrade to pg 1.5.4.
|
|
|
|
|
|
|
|
Resolves: rhbz#2173399
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 03 2023 Vít Ondruch <vondruch@redhat.com> - 1.4.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 15 2022 Vít Ondruch <vondruch@redhat.com> - 1.4.5-1
|
|
|
|
|
|
|
|
- Update to pg 1.4.5.
|
|
|
|
|
|
|
|
Resolves: rhbz#2099059
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 12 2022 Jarek Prokop <jprokop@redhat.com> - 1.3.5-1
|
|
|
|
|
|
|
|
- Update to pg 1.3.5.
|
|
|
|
|
|
|
|
Resolves: rhbz#1814862
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 17 2022 Pavel Valena <pvalena@redhat.com> - 1.3.2-1
|
|
|
|
|
|
|
|
- Update to pg 1.3.2.
|
|
|
|
|
|
|
|
Resolves: rhbz#1814862
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 28 2022 Vít Ondruch <vondruch@redhat.com> - 1.3.0-1
|
|
|
|
|
|
|
|
- Update to pg 1.3.0.
|
|
|
|
|
|
|
|
Resolves: rhbz#1814862
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-6
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-6
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 1.2.3-5
|
|
|
|
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 1.2.3-5
|
|
|
|
- rebuild for libpq ABI fix rhbz#1908268
|
|
|
|
- rebuild for libpq ABI fix rhbz#1908268
|
|
|
|