|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%global gem_name pg
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.2.3
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 1.3.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A Ruby interface to the PostgreSQL RDBMS
|
|
|
|
|
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
|
|
|
|
|
#
|
|
|
|
@ -13,11 +13,16 @@ Summary: A Ruby interface to the PostgreSQL RDBMS
|
|
|
|
|
License: (BSD or Ruby) and PostgreSQL
|
|
|
|
|
URL: https://github.com/ged/ruby-pg
|
|
|
|
|
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.3.5-spec.tar.gz v1.3.5 spec/
|
|
|
|
|
Source1: %{gem_name}-%{version}-spec.tar.gz
|
|
|
|
|
# Disable RPATH.
|
|
|
|
|
# https://bitbucket.org/ged/ruby-pg/issue/183
|
|
|
|
|
Patch0: rubygem-pg-0.17.1-remove-rpath.patch
|
|
|
|
|
# Required in ext/pg_text_decoder.c
|
|
|
|
|
# https://github.com/ged/ruby-pg/issues/183
|
|
|
|
|
Patch0: rubygem-pg-1.3.0-remove-rpath.patch
|
|
|
|
|
# ext/pg_text_decoder.c
|
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
|
# lib/pg/text_{de,en}coder.rb
|
|
|
|
|
Requires: rubygem(json)
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
@ -31,7 +36,7 @@ BuildRequires: rubygem(rspec)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
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
|
|
|
|
@ -43,7 +48,7 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
@ -66,18 +71,19 @@ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}
|
|
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
|
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
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
ln -s %{_builddir}/spec .
|
|
|
|
|
|
|
|
|
|
# Test failures with disabled netwrok.
|
|
|
|
|
# https://github.com/ged/ruby-pg/issues/421
|
|
|
|
|
sed -i -r 's|\\d\+\\\.\\d\+\\\.\\d\+\\\.\\d\+|(\0)?|' spec/pg/connection_spec.rb
|
|
|
|
|
|
|
|
|
|
# Disable flaky test. This is problematic on most architectures.
|
|
|
|
|
# https://github.com/ged/ruby-pg/issues/424
|
|
|
|
|
sed -i -e '/it "needs to flush data after send_query" do/a\ skip' spec/pg/connection_spec.rb
|
|
|
|
|
|
|
|
|
|
# Set --verbose to show detail log by $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.
|
|
|
|
@ -94,7 +100,7 @@ popd
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%license %{gem_instdir}/BSDL
|
|
|
|
|
%license %{gem_instdir}/POSTGRES
|
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
@ -104,76 +110,41 @@ popd
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/ChangeLog
|
|
|
|
|
%doc %{gem_instdir}/Contributors.rdoc
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%doc %{gem_instdir}/History.rdoc
|
|
|
|
|
%doc %{gem_instdir}/Manifest.txt
|
|
|
|
|
%doc %{gem_instdir}/README-OS_X.rdoc
|
|
|
|
|
%doc %{gem_instdir}/README-Windows.rdoc
|
|
|
|
|
%doc %{gem_instdir}/README.ja.rdoc
|
|
|
|
|
%lang(ja) %doc %{gem_instdir}/README.ja.rdoc
|
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
%{gem_instdir}/Rakefile*
|
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
%{gem_instdir}/rakelib/*
|
|
|
|
|
%{gem_instdir}/certs
|
|
|
|
|
%{gem_instdir}/misc
|
|
|
|
|
%{gem_instdir}/pg.gemspec
|
|
|
|
|
%{gem_instdir}/sample
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.3-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 1.2.3-5
|
|
|
|
|
- rebuild for libpq ABI fix rhbz#1908268
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 6 2021 Vít Ondruch <vondruch@redhat.com> - 1.2.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Mar 19 2020 Jun Aruga <jaruga@redhat.com> - 1.2.3-1
|
|
|
|
|
- Update to pg 1.2.3.
|
|
|
|
|
|
|
|
|
|
* Fri Mar 06 2020 Jun Aruga <jaruga@redhat.com> - 1.2.2-1
|
|
|
|
|
- Update to pg 1.2.2.
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 17 2020 Vít Ondruch <vondruch@redhat.com> - 1.2.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7
|
|
|
|
|
|
|
|
|
|
* Mon Jan 06 2020 Jun Aruga <jaruga@redhat.com> - 1.2.1-1
|
|
|
|
|
- Update to pg 1.2.1.
|
|
|
|
|
|
|
|
|
|
* Thu Jan 02 2020 Jun Aruga <jaruga@redhat.com> - 1.2.0-1
|
|
|
|
|
- Update to pg 1.2.0.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 17 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.6
|
|
|
|
|
* Wed Mar 29 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.3.5-1
|
|
|
|
|
- Rebuilt for MSVSphere 9.1.
|
|
|
|
|
|
|
|
|
|
* Thu Jan 10 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.4-1
|
|
|
|
|
- Update to pg 1.1.4.
|
|
|
|
|
* Thu May 26 2022 Jarek Prokop - 1.3.5-1
|
|
|
|
|
- Update to pg 1.3.5
|
|
|
|
|
Related: rhbz#2063773
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2019 Vít Ondruch <vondruch@redhat.com> - 1.1.3-2
|
|
|
|
|
- Fix PostgreSQL 11 compatibility.
|
|
|
|
|
* Fri May 29 2020 Jun Aruga <jaruga@redhat.com> - 1.2.3-1
|
|
|
|
|
- Update to pg 1.2.3 by merging Fedora master branch (commit: 5db4d26)
|
|
|
|
|
Resolves: rhbz#1817135
|
|
|
|
|
|
|
|
|
|
* Tue Sep 18 2018 Jun Aruga <jaruga@redhat.com> - 1.1.3-1
|
|
|
|
|
- Update to pg 1.1.3.
|
|
|
|
|
- Update to output log when tests fail.
|
|
|
|
|
* Wed Jun 12 2019 Jun Aruga <jaruga@redhat.com> - 1.1.4-1
|
|
|
|
|
- Update to pg 1.1.4 by merging Fedora master branch (commit: 397796e)
|
|
|
|
|
* BuildRequires: s/postgresql-devel/libpq-devel/
|
|
|
|
|
* Add marking lines at the start and end of the setup.log
|
|
|
|
|
Resolves: rhbz#1672575
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Thu May 23 2019 Jun Aruga <jaruga@redhat.com> - 1.0.0-2
|
|
|
|
|
- Assign a random testing port.
|
|
|
|
|
|
|
|
|
|
* Tue Feb 13 2018 Vít Ondruch <vondruch@redhat.com> - 1.0.0-1
|
|
|
|
|
- Update to pg 1.0.0.
|
|
|
|
|