[rubygem-rsolr] Initial import (#670209).

Vít Ondruch vondruch at fedoraproject.org
Tue Oct 25 12:19:43 UTC 2011


commit afc35edc8f0863be797befc4a2444b73b7b4f7ff
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Oct 25 14:19:38 2011 +0200

    Initial import (#670209).

 .gitignore         |    1 +
 rubygem-rsolr.spec |   83 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c9d01f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rsolr-1.0.2.gem
diff --git a/rubygem-rsolr.spec b/rubygem-rsolr.spec
new file mode 100644
index 0000000..c6d51e5
--- /dev/null
+++ b/rubygem-rsolr.spec
@@ -0,0 +1,83 @@
+%global gemname rsolr
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: A Ruby client for Apache Solr
+Name: rubygem-%{gemname}
+Version: 1.0.2
+Release: 1%{?dist}
+Group: Development/Languages
+License: ASL 2.0
+URL: http://github.com/mwmitchell/%{gemname}
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+Requires: rubygem(builder) >= 2.1.2
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: ruby
+# Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x
+BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(builder) >= 2.1.2
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+RSolr aims to provide a simple and extensible library for working with Solr
+
+
+%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}/
+
+%check
+pushd .%{geminstdir}
+rspec spec
+popd
+
+%files
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/LICENSE
+%{geminstdir}/VERSION
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{geminstdir}/README.rdoc
+%{geminstdir}/spec
+%{geminstdir}/Rakefile
+%{geminstdir}/tasks
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+* Tue Oct 25 2011 Vít Ondruch <vondruch at redhat.com> - 1.0.2-1
+- Updated to the RSolr 1.0.2.
+
+* Tue Jan 25 2011 Vít Ondruch <vondruch at redhat.com> - 1.0.0-2
+- Version file moved into main package, since it is required by runtime
+- Removed unnecessary cleanup in install section
+
+* Mon Jan 17 2011 Vít Ondruch <vondruch at redhat.com> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..20f6483 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+77e267c3ea89331d3099742bba9c4b71  rsolr-1.0.2.gem


More information about the scm-commits mailing list