From 88b24833511aeb4c5d9bdafb78d5aafe87fecbb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 25 Sep 2013 20:23:00 +0300 Subject: [PATCH] new, version 0.9.12 created with gem2spec --- ruby-pry.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 ruby-pry.spec diff --git a/ruby-pry.spec b/ruby-pry.spec new file mode 100644 index 0000000..f74ea3c --- /dev/null +++ b/ruby-pry.spec @@ -0,0 +1,74 @@ +# +# Conditional build: +%bcond_with tests # build without tests + +%define pkgname pry +Summary: An IRB alternative and runtime developer console +Name: ruby-%{pkgname} +Version: 0.9.12 +Release: 1 +License: MIT +Group: Development/Languages +Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem +# Source0-md5: - +URL: http://pry.github.com +BuildRequires: rpm-rubyprov +BuildRequires: rpmbuild(macros) >= 1.656 +BuildRequires: sed >= 4.0 +%if %{with tests} +BuildRequires: ruby-bacon < 2 +BuildRequires: ruby-bacon >= 1.2 +BuildRequires: ruby-bond < 0.5 +BuildRequires: ruby-bond >= 0.4.2 +BuildRequires: ruby-guard < 1.4 +BuildRequires: ruby-guard >= 1.3.2 +BuildRequires: ruby-mocha < 0.14 +BuildRequires: ruby-mocha >= 0.13.1 +BuildRequires: ruby-open4 < 2 +BuildRequires: ruby-open4 >= 1.3 +BuildRequires: ruby-rake < 1 +BuildRequires: ruby-rake >= 0.9 +%endif +Requires: ruby-coderay < 1.1 +Requires: ruby-coderay >= 1.0.5 +Requires: ruby-method_source < 1 +Requires: ruby-method_source >= 0.8 +Requires: ruby-slop < 4 +Requires: ruby-slop >= 3.4 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +An IRB alternative and runtime developer console + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{pkgname}-%{version} +%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* + +%if %{with tests} +bacon -Ispec -q spec/*_spec.rb +%endif + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} +cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} +cp -a bin/* $RPM_BUILD_ROOT%{_bindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.markdown LICENSE CHANGELOG CONTRIBUTORS +%attr(755,root,root) %{_bindir}/pry +%{ruby_vendorlibdir}/%{pkgname}.rb +%{ruby_vendorlibdir}/%{pkgname} -- 2.44.0