This commit is contained in:
Vít Ondruch 2013-03-07 11:45:20 +01:00
parent a65760e2a9
commit 39ab36ef45

View File

@ -1,11 +1,10 @@
# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name pg
%global rubyabi 1.9.1
Summary: A Ruby interface to the PostgreSQL RDBMS
Name: rubygem-%{gem_name}
Version: 0.12.2
Release: 4%{?dist}
Release: 5%{?dist}
Group: Development/Languages
# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/)
#
@ -15,10 +14,10 @@ Group: Development/Languages
License: (GPLv2 or Ruby) and BSD
URL: http://bitbucket.org/ged/ruby-pg/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: ruby
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(release)
BuildRequires: ruby-devel
BuildRequires: rubygems-devel
BuildRequires: ruby
@ -46,20 +45,17 @@ Documentation for %{name}
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install --local --install-dir .%{gem_dir} \
-V --force %{SOURCE0}
%gem_install -n %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
mkdir -p %{buildroot}%{gem_extdir}/lib
mkdir -p %{buildroot}%{gem_extdir_mri}/lib
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mv %{buildroot}%{gem_libdir}/pg_ext.so %{buildroot}%{gem_extdir}/lib
mv %{buildroot}%{gem_libdir}/pg_ext.so %{buildroot}%{gem_extdir_mri}/lib
# Remove the binary extension sources and build leftovers.
rm -rf %{buildroot}%{gem_instdir}/ext
@ -83,7 +79,7 @@ popd
%files
%exclude %{gem_instdir}/.gemtest
%{gem_extdir}
%{gem_extdir_mri}
%dir %{gem_instdir}
%doc %{gem_instdir}/BSD
%doc %{gem_instdir}/GPL
@ -110,6 +106,9 @@ popd
%changelog
* Thu Mar 07 2013 Vít Ondruch <vondruch@redhat.com> - 0.12.2-5
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
* 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