[packages/ruby-cane] new, version 2.6.0
glen
glen at pld-linux.org
Sun Jul 14 12:35:31 CEST 2013
commit dee2a315a9eddd7bafca940ad65ccc99cf6c6081
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jul 14 13:35:05 2013 +0300
new, version 2.6.0
created with gem2rpm
ruby-cane.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
---
diff --git a/ruby-cane.spec b/ruby-cane.spec
new file mode 100644
index 0000000..1e4779a
--- /dev/null
+++ b/ruby-cane.spec
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_with tests # build without tests
+
+%define pkgname cane
+Summary: Code quality threshold checking as part of your build
+Name: ruby-%{pkgname}
+Version: 2.6.0
+Release: 1
+License: GPL v2+ or Ruby
+Group: Development/Languages
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 4f5428737cf48129476ad789ebec3a69
+URL: http://github.com/square/cane
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: ruby-rake
+BuildRequires: ruby-rspec < 3
+BuildRequires: ruby-rspec >= 2.0
+BuildRequires: ruby-rspec-fire
+BuildRequires: ruby-simplecov
+%endif
+Requires: ruby-parallel
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Fails your build if code quality thresholds are not met. Provides
+complexity and style checkers built-in, and allows integration with
+with custom quality metrics.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+
+%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)
+%attr(755,root,root) %{_bindir}/cane
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-cane.git/commitdiff/dee2a315a9eddd7bafca940ad65ccc99cf6c6081
More information about the pld-cvs-commit
mailing list