2011-05-30 08:11:41 +00:00
|
|
|
# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*-
|
2012-01-24 11:36:05 +00:00
|
|
|
%global gem_name pg
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
Summary: A Ruby interface to the PostgreSQL RDBMS
|
2012-01-24 11:36:05 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2016-01-06 17:14:33 +00:00
|
|
|
Version: 0.18.4
|
2016-02-04 23:05:29 +00:00
|
|
|
Release: 2%{?dist}
|
2011-05-30 08:11:41 +00:00
|
|
|
Group: Development/Languages
|
2011-06-01 14:03:45 +00:00
|
|
|
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2013-03-07 12:29:52 +00:00
|
|
|
License: (BSD or Ruby) and PostgreSQL
|
2016-01-06 17:14:33 +00:00
|
|
|
URL: https://bitbucket.org/ged/ruby-pg
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2014-04-15 13:58:39 +00:00
|
|
|
# Disable RPATH.
|
|
|
|
# https://bitbucket.org/ged/ruby-pg/issue/183
|
|
|
|
Patch0: rubygem-pg-0.17.1-remove-rpath.patch
|
2013-03-07 10:45:20 +00:00
|
|
|
BuildRequires: ruby(release)
|
2012-01-24 11:36:05 +00:00
|
|
|
BuildRequires: rubygems-devel
|
2016-01-06 17:14:33 +00:00
|
|
|
BuildRequires: ruby-devel
|
|
|
|
|
2011-05-30 08:11:41 +00:00
|
|
|
BuildRequires: postgresql-server postgresql-devel
|
2013-03-07 12:29:52 +00:00
|
|
|
BuildRequires: rubygem(rspec)
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is the extension library to access a PostgreSQL database from Ruby.
|
|
|
|
This library works with PostgreSQL 7.4 and later.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
2011-06-03 16:55:57 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%description doc
|
2015-01-16 14:05:34 +00:00
|
|
|
Documentation for %{name}.
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2014-04-15 13:58:39 +00:00
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
2011-05-30 08:11:41 +00:00
|
|
|
|
2013-03-07 12:29:52 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
2011-05-30 08:11:41 +00:00
|
|
|
%build
|
2014-04-15 13:58:39 +00:00
|
|
|
# Create the gem as gem install only works on a gem file
|
|
|
|
gem build %{gem_name}.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
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%install
|
2012-01-24 11:36:05 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
2011-05-30 08:11:41 +00:00
|
|
|
|
2016-01-06 17:14:33 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
2014-04-15 08:35:36 +00:00
|
|
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
2011-06-03 16:55:57 +00:00
|
|
|
|
2016-01-06 17:14:33 +00:00
|
|
|
# Prevent dangling symlink in -debuginfo (rhbz#878863).
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
2011-05-31 09:55:01 +00:00
|
|
|
|
|
|
|
# Remove useless shebangs.
|
2013-03-07 12:29:52 +00:00
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile.cross
|
|
|
|
|
2014-04-15 13:58:39 +00:00
|
|
|
# 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
|
2013-03-07 12:29:52 +00:00
|
|
|
|
2014-04-15 13:58:39 +00:00
|
|
|
# Fix shebangs and executable bits of samples.
|
|
|
|
for file in `find %{buildroot}%{gem_instdir}/sample -type f -name "*.rb"`; do
|
2015-08-26 14:51:55 +00:00
|
|
|
sed -i -e '/^#!\/usr\/bin\/env/ s/.*/#!\/usr\/bin\/ruby/' $file \
|
2014-04-15 13:58:39 +00:00
|
|
|
&& chmod -v 755 $file
|
|
|
|
done
|
2011-05-31 09:55:01 +00:00
|
|
|
|
|
|
|
# Fix spec shebangs.
|
|
|
|
# https://bitbucket.org/ged/ruby-pg/issue/74/
|
2012-01-24 11:36:05 +00:00
|
|
|
for file in `find %{buildroot}%{gem_instdir}/spec -type f ! -perm /a+x -name "*.rb"`; do
|
2011-05-31 09:55:01 +00:00
|
|
|
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] \
|
|
|
|
&& sed -i -e 's/^#!\/usr\/bin\/env spec/#!\/usr\/bin\/env rspec/' $file \
|
|
|
|
&& chmod -v 755 $file
|
|
|
|
done
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%check
|
2012-01-24 11:36:05 +00:00
|
|
|
pushd .%{gem_instdir}
|
2014-04-15 08:35:36 +00:00
|
|
|
rspec -I$(dirs +1)%{gem_extdir_mri} spec
|
2011-05-30 08:11:41 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
2012-01-24 11:36:05 +00:00
|
|
|
%dir %{gem_instdir}
|
2016-01-06 17:14:33 +00:00
|
|
|
%{gem_extdir_mri}
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
%license %{gem_instdir}/BSDL
|
|
|
|
%license %{gem_instdir}/POSTGRES
|
|
|
|
%license %{gem_instdir}/LICENSE
|
2012-01-24 11:36:05 +00:00
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%files doc
|
2012-01-24 11:36:05 +00:00
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/ChangeLog
|
|
|
|
%doc %{gem_instdir}/Contributors.rdoc
|
|
|
|
%doc %{gem_instdir}/History.rdoc
|
|
|
|
%doc %{gem_instdir}/Manifest.txt
|
2013-03-07 12:29:52 +00:00
|
|
|
%doc %{gem_instdir}/README-OS_X.rdoc
|
|
|
|
%doc %{gem_instdir}/README-Windows.rdoc
|
2016-01-06 17:14:33 +00:00
|
|
|
%doc %{gem_instdir}/README.ja.rdoc
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/Rakefile.cross
|
2012-01-24 11:36:05 +00:00
|
|
|
%{gem_instdir}/sample
|
|
|
|
%{gem_instdir}/spec
|
2011-05-30 08:11:41 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-02-04 23:05:29 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-06 17:14:33 +00:00
|
|
|
* Wed Jan 06 2016 Vít Ondruch <vondruch@redhat.com> - 0.18.4-1
|
2016-01-06 16:29:34 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
2016-01-06 17:14:33 +00:00
|
|
|
- Update to pg 1.18.4.
|
2016-01-06 16:29:34 +00:00
|
|
|
|
2015-08-26 14:51:55 +00:00
|
|
|
* Wed Aug 26 2015 Vít Ondruch <vondruch@redhat.com> - 0.18.2-1
|
|
|
|
- Update to pg 1.18.2.
|
|
|
|
|
2015-06-18 23:36:28 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-16 14:05:34 +00:00
|
|
|
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.18.1-1
|
2015-01-16 12:55:35 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
2015-01-16 14:05:34 +00:00
|
|
|
- Update to pg 0.18.1.
|
2015-01-16 12:55:35 +00:00
|
|
|
|
2014-08-18 00:52:26 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 04:59:35 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-15 13:58:39 +00:00
|
|
|
* Tue Apr 15 2014 Vít Ondruch <vondruch@redhat.com> - 0.17.1-1
|
2014-04-15 08:35:36 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
2014-04-15 13:58:39 +00:00
|
|
|
- Update to pg 0.17.1.
|
2014-04-15 08:35:36 +00:00
|
|
|
|
2013-08-04 14:38:54 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-07 12:29:52 +00:00
|
|
|
* Thu Mar 07 2013 Vít Ondruch <vondruch@redhat.com> - 0.14.1-1
|
2013-03-07 10:45:20 +00:00
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
2013-03-07 12:29:52 +00:00
|
|
|
- Update to pg 0.14.1.
|
2013-03-07 10:45:20 +00:00
|
|
|
|
2013-02-14 22:59:17 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 18:16:17 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-07 15:11:24 +00:00
|
|
|
* Tue Feb 07 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-2
|
|
|
|
- Obsolete ruby-postgress, which was retired.
|
|
|
|
|
2012-01-24 11:36:05 +00:00
|
|
|
* Tue Jan 24 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-1
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
- Upgrade to pg 0.12.2.
|
|
|
|
|
2012-01-14 03:19:08 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-03 17:26:15 +00:00
|
|
|
* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-5
|
|
|
|
- Pass CFLAGS to extconf.rb.
|
|
|
|
|
2011-06-03 16:55:57 +00:00
|
|
|
* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-4
|
|
|
|
- Binary extension moved into ruby_sitearch dir.
|
|
|
|
- -doc subpackage made architecture independent.
|
|
|
|
|
2011-06-01 14:03:45 +00:00
|
|
|
* Wed Jun 01 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-3
|
2011-06-03 16:55:57 +00:00
|
|
|
- Quoted upstream license clarification.
|
2011-06-01 14:03:45 +00:00
|
|
|
|
2011-05-31 09:55:01 +00:00
|
|
|
* Mon May 30 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-2
|
|
|
|
- Removed/fixed shebang in non-executables.
|
|
|
|
- Removed sources.
|
|
|
|
|
2011-05-30 08:11:41 +00:00
|
|
|
* Thu May 26 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1
|
|
|
|
- Initial package
|