This commit is contained in:
Vít Ondruch 2014-04-15 10:35:36 +02:00
parent f852869233
commit aeb6375562

View File

@ -4,7 +4,7 @@
Summary: A Ruby interface to the PostgreSQL RDBMS Summary: A Ruby interface to the PostgreSQL RDBMS
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.14.1 Version: 0.14.1
Release: 2%{?dist} Release: 3%{?dist}
Group: Development/Languages Group: Development/Languages
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) # Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
# #
@ -15,8 +15,6 @@ License: (BSD or Ruby) and PostgreSQL
URL: http://bitbucket.org/ged/ruby-pg/ URL: http://bitbucket.org/ged/ruby-pg/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Patch0: rubygem-pg-0.15.0.pre.432-Adding-some-fixes-for-PostgreSQL-9.2.x.patch Patch0: rubygem-pg-0.15.0.pre.432-Adding-some-fixes-for-PostgreSQL-9.2.x.patch
Requires: ruby(release)
Requires: ruby(rubygems)
BuildRequires: ruby(release) BuildRequires: ruby(release)
BuildRequires: ruby-devel BuildRequires: ruby-devel
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
@ -25,7 +23,6 @@ BuildRequires: postgresql-server postgresql-devel
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
# Introduced in F17. # Introduced in F17.
Obsoletes: ruby(postgres) <= 0.7.9-2010.01.28.2 Obsoletes: ruby(postgres) <= 0.7.9-2010.01.28.2
Provides: rubygem(%{gem_name}) = %{version}
%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.
@ -54,11 +51,11 @@ popd
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
mkdir -p %{buildroot}%{gem_extdir_mri}/lib mkdir -p %{buildroot}%{gem_extdir_mri}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
mv %{buildroot}%{gem_libdir}/pg_ext.so %{buildroot}%{gem_extdir_mri}/lib cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
# Remove the binary extension sources and build leftovers. # Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext rm -rf %{buildroot}%{gem_instdir}/ext
@ -85,7 +82,7 @@ done
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
rspec spec rspec -I$(dirs +1)%{gem_extdir_mri} spec
popd popd
%files %files
@ -116,6 +113,9 @@ popd
%changelog %changelog
* Tue Apr 15 2014 Vít Ondruch <vondruch@redhat.com> - 0.14.1-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild