[rubygem-regin] Initial import (#670930).

Vít Ondruch vondruch at fedoraproject.org
Tue Jan 25 11:16:42 UTC 2011


commit 3b56f1a00022edbe5a1b131d21c28f7d078a48bb
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Jan 25 12:12:57 2011 +0100

    Initial import (#670930).

 .gitignore         |    1 +
 regin-tests.tgz    |  Bin 0 -> 5289 bytes
 rubygem-regin.spec |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 4 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cca8fda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/regin-0.3.7.gem
diff --git a/regin-tests.tgz b/regin-tests.tgz
new file mode 100644
index 0000000..792ba5f
Binary files /dev/null and b/regin-tests.tgz differ
diff --git a/rubygem-regin.spec b/rubygem-regin.spec
new file mode 100644
index 0000000..274aa78
--- /dev/null
+++ b/rubygem-regin.spec
@@ -0,0 +1,77 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname regin
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Ruby Regexp Introspection
+Name: rubygem-%{gemname}
+Version: 0.3.7
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/josh/%{gemname}
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+# git clone https://github.com/josh/regin.git && cd regin && git checkout v0.3.7
+# tar czvf regin-tests.tgz spec/
+Source1: %{gemname}-tests.tgz
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+Requires: ruby
+BuildRequires: rubygems
+BuildRequires: ruby
+BuildRequires: rubygem(rspec)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Regin allows you to introspect on Ruby Regexps. Powered by an over the top
+regexp syntax parser written in racc/rexical.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%prep
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+
+%clean
+
+%check
+mkdir %{_tmppath}/%{gemname}-%{version}
+tar xzvf %{SOURCE1} -C %{_tmppath}/%{gemname}-%{version}
+pushd %{_tmppath}/%{gemname}-%{version}
+ruby -I%{buildroot}%{geminstdir}/lib `which spec` spec
+popd
+rm -rf %{_tmppath}/%{gemname}-%{version}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/LICENSE
+%doc %{geminstdir}/README.rdoc
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+
+%changelog
+* Mon Jan 24 2011 Vít Ondruch <vondruch at redhat.com> - 0.3.7-2
+- Removed obsolete cleanup from install and clean sections
+
+* Wed Jan 19 2011 Vít Ondruch <vondruch at redhat.com> - 0.3.7-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b8eb2b4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7cf9725a4ec5438718ea94896c9c4f60  regin-0.3.7.gem


More information about the scm-commits mailing list