From 68f1407fa91ffb1cf0796c5c4938f9e392896603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 30 May 2011 10:11:41 +0200 Subject: [PATCH] Initial import (#708934). --- rubygem-pg.spec | 88 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 2 files changed, 89 insertions(+) create mode 100644 rubygem-pg.spec diff --git a/rubygem-pg.spec b/rubygem-pg.spec new file mode 100644 index 0000000..04000c1 --- /dev/null +++ b/rubygem-pg.spec @@ -0,0 +1,88 @@ +# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname pg +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%global rubyabi 1.8 + +Summary: A Ruby interface to the PostgreSQL RDBMS +Name: rubygem-%{gemname} +Version: 0.11.0 +Release: 1%{?dist} +Group: Development/Languages +# License is not that clear: https://bitbucket.org/ged/ruby-pg/issue/72/ +License: (GPLv2 or Ruby) and BSD +URL: http://bitbucket.org/ged/ruby-pg/ +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: rubygems +Requires: ruby +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: rubygems +BuildRequires: ruby ruby-devel +BuildRequires: postgresql-server postgresql-devel +# Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x +BuildRequires: rubygem(rspec-core) +Provides: rubygem(%{gemname}) = %{version} + +%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 +Requires:%{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + + +%prep +%setup -q -c -T +mkdir -p .%{gemdir} +gem install --local --install-dir .%{gemdir} \ + --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* \ + %{buildroot}%{gemdir}/ + +# Remove all build leftovers. +rm %{buildroot}%{geminstdir}/ext/*.{so,o,log} + +%check +pushd .%{geminstdir} +rspec spec +popd + +%files +%dir %{geminstdir} +%doc %{geminstdir}/BSD +%doc %{geminstdir}/GPL +%doc %{geminstdir}/LICENSE +%{geminstdir}/ext +%{geminstdir}/lib +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/ChangeLog +%doc %{geminstdir}/Contributors +%{geminstdir}/Rakefile +%{geminstdir}/Rakefile.local +%doc %{geminstdir}/README +%doc %{geminstdir}/README.ja +%doc %{geminstdir}/README.OS_X +%doc %{geminstdir}/README.windows +%{geminstdir}/rake +%{geminstdir}/spec + + +%changelog +* Thu May 26 2011 Vít Ondruch - 0.11.0-1 +- Initial package diff --git a/sources b/sources index e69de29..548688a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b49ebda17f0313aa2bab19b9f0f735d pg-0.11.0.gem