[rubygem-pr_geohash] Initial import (#671095).

Vít Ondruch vondruch at fedoraproject.org
Fri Feb 4 10:01:26 UTC 2011


commit da3d5535e1264bd2679609781f3a9611438cff7e
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Feb 4 10:50:32 2011 +0100

    Initial import (#671095).

 .gitignore              |    1 +
 rubygem-pr_geohash.spec |   78 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0a07b49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pr_geohash-1.0.0.gem
diff --git a/rubygem-pr_geohash.spec b/rubygem-pr_geohash.spec
new file mode 100644
index 0000000..1ed99a6
--- /dev/null
+++ b/rubygem-pr_geohash.spec
@@ -0,0 +1,78 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname pr_geohash
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: GeoHash encode/decode library for pure Ruby
+Name: rubygem-%{gemname}
+Version: 1.0.0
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/masuidrive/%{gemname}
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+Requires: ruby
+BuildRequires: rubygems
+BuildRequires: ruby
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+GeoHash encode/decode library for pure Ruby.
+It's implementation of http://en.wikipedia.org/wiki/Geohash
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+
+rm %{buildroot}/%{geminstdir}/.autotest
+rm %{buildroot}/%{geminstdir}/Manifest.txt
+
+%check
+pushd %{buildroot}/%{geminstdir}
+ruby -Ilib test/test_pr_geohash.rb
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/History.txt
+%doc %{geminstdir}/README.rdoc
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%{geminstdir}/Rakefile
+%{geminstdir}/test/
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+
+%changelog
+* Wed Feb 02 2011 Vít Ondruch <vondruch at redhat.com> - 1.0.0-2
+- Removed unnecessary version information.
+
+* Thu Jan 20 2011 Vít Ondruch <vondruch at redhat.com> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1d129b5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+362ad377252cacf68932aab374463e80  pr_geohash-1.0.0.gem


More information about the scm-commits mailing list