[packages/ruby-base62] new, version 0.1.4

glen glen at pld-linux.org
Wed Apr 24 10:03:24 CEST 2013


commit 0b2c81f243f846e3a42fc8d4b7194c32980b7450
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 24 11:01:43 2013 +0300

    new, version 0.1.4
    
    created with gem2rpm
    gem2rpm --fetch base62 -o ruby-base62.spec

 ruby-base62.spec | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
---
diff --git a/ruby-base62.spec b/ruby-base62.spec
new file mode 100644
index 0000000..ffb248d
--- /dev/null
+++ b/ruby-base62.spec
@@ -0,0 +1,37 @@
+%define	pkgname	base62
+Summary:	module that monkeypatches Integer and String to add Base62 encoder
+Name:		ruby-%{pkgname}
+Version:	0.1.4
+Release:	1
+License:	MIT
+Group:		Development/Languages
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	0aec615988ddc6b5ba837c049ee4d95c
+URL:		http://github.com/jtzemp/base62
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Base62 monkeypatches Integer to add an Integer#base62_encode instance
+method to encode an integer in the character set of 0-9 + A-Z + a-z.
+It also monkeypatches String to add String#base62_decode to take the
+string and turn it back into a valid integer.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rdoc History.txt
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-base62.git/commitdiff/0b2c81f243f846e3a42fc8d4b7194c32980b7450



More information about the pld-cvs-commit mailing list