[packages/ruby-gh] new, version 0.14.0

glen glen at pld-linux.org
Mon Apr 18 21:04:13 CEST 2016


commit 3dfd0a10b4a88672dd8f1ebe95be6fd4b2a69390
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 18 22:03:27 2016 +0300

    new, version 0.14.0
    
    created with
     gem fetch gh -v 0.14.0
     gem2rpm *.gem -o ruby-gh.spec

 ruby-gh.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/ruby-gh.spec b/ruby-gh.spec
new file mode 100644
index 0000000..0d40385
--- /dev/null
+++ b/ruby-gh.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define	pkgname	gh
+Summary:	Layered GitHub Client
+Name:		ruby-%{pkgname}
+Version:	0.14.0
+Release:	1
+License:	MIT
+Group:		Development/Languages
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	b08fa6c05fd209725951215ca4e2b1a2
+URL:		http://gh.rkh.im/
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires:	ruby-rspec
+BuildRequires:	ruby-webmock
+%endif
+Requires:	ruby-addressable
+Requires:	ruby-backports
+Requires:	ruby-faraday < 1
+Requires:	ruby-faraday >= 0.8
+Requires:	ruby-multi_json < 2
+Requires:	ruby-multi_json >= 1.0
+Requires:	ruby-net-http-persistent >= 2.7
+Requires:	ruby-net-http-pipeline
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+multi-layer client for the GitHub API v3.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-gh.git/commitdiff/3dfd0a10b4a88672dd8f1ebe95be6fd4b2a69390



More information about the pld-cvs-commit mailing list