commit ea9bc286f89ca832ef12da1da3e5a0875c42b19c Author: Elan Ruusamäe <g...@delfi.ee> Date: Wed Sep 25 21:09:37 2013 +0300
new, version 0.8.1 created with gem2rpm ruby-method_source.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) --- diff --git a/ruby-method_source.spec b/ruby-method_source.spec new file mode 100644 index 0000000..0dd4c29 --- /dev/null +++ b/ruby-method_source.spec @@ -0,0 +1,57 @@ +# +# Conditional build: +%bcond_with tests # build without tests + +%define pkgname method_source +Summary: Retrieve the source code for a method +Name: ruby-%{pkgname} +Version: 0.8.1 +Release: 1 +License: MIT +Group: Development/Languages +Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem +# Source0-md5: - +URL: http://banisterfiend.wordpress.com/ +BuildRequires: rpm-rubyprov +BuildRequires: rpmbuild(macros) >= 1.656 +%if %{with tests} +BuildRequires: ruby-bacon < 1.2 +BuildRequires: ruby-bacon >= 1.1.0 +BuildRequires: ruby-rake < 1 +BuildRequires: ruby-rake >= 0.9 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Retrieve the sourcecode for a method. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + +%prep +%setup -q -n %{pkgname}-%{version} + +%build +%if %{with tests} +bacon test/test.rb +%endif + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} +cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.markdown LICENSE +%{ruby_vendorlibdir}/method_source.rb +%{ruby_vendorlibdir}/method_source ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/ruby-method_source.git/commitdiff/0c2e440cd20db831fe25255cd4ef28dbb502a875 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit