packages: ruby-oauth/ruby-oauth.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Mon Aug 30 20:53:02 CEST 2010
Author: aredridel Date: Mon Aug 30 18:53:02 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- added
---- Files affected:
packages/ruby-oauth:
ruby-oauth.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ruby-oauth/ruby-oauth.spec
diff -u /dev/null packages/ruby-oauth/ruby-oauth.spec:1.1
--- /dev/null Mon Aug 30 20:53:02 2010
+++ packages/ruby-oauth/ruby-oauth.spec Mon Aug 30 20:52:57 2010
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+
+%define gitrev d8dbd6f
+%define gitauthor mojodna
+%define gitname oauth
+
+Summary: Ruby library for doing OAuth
+Name: ruby-oauth
+Version: 0.3.6
+Release: 1
+License: MIT
+Group: Development/Tools
+Source0: http://download.github.com/%{gitauthor}-%{gitname}-v%{version}-0-g%{gitrev}.tar.gz
+# Source0-md5: 32491813dd124e2214d36fe6d1e66227
+#Patch0: %{name}-nogems.patch
+URL: http://oauth.rubyforge.org/
+BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: ruby
+BuildRequires: ruby-modules
+BuildRequires: setup.rb = 3.4.1
+%{?ruby_mod_ver_requires_eq}
+#BuildArch: noarch
+Requires: ruby-hmac
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a library for implementing both OAuth clients and servers in
+Ruby applications.
+
+%prep
+%setup -q -n %{gitauthor}-%{gitname}-%{gitrev}
+#%patch0 -p1
+cp %{_datadir}/setup.rb .
+ruby setup.rb config \
+ --installdirs=std
+ruby setup.rb setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+ruby setup.rb install \
+ --prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/oauth
+%{ruby_rubylibdir}/oauth.rb
+%{ruby_rubylibdir}/oauth
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/08/30 18:52:57 aredridel
+- added
+
================================================================
More information about the pld-cvs-commit
mailing list