[packages/ruby-simplecov] - new

baggins baggins at pld-linux.org
Thu Dec 31 10:10:00 CET 2015


commit 7a05b47e33b93dc55990cf0ec4c416f647c82f75
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 31 10:09:43 2015 +0100

    - new

 ruby-simplecov.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
---
diff --git a/ruby-simplecov.spec b/ruby-simplecov.spec
new file mode 100644
index 0000000..e87272a
--- /dev/null
+++ b/ruby-simplecov.spec
@@ -0,0 +1,97 @@
+#
+# Conditional build:
+%bcond_without	doc			# don't build ri/rdoc
+
+%define pkgname simplecov
+Summary:	Code coverage for Ruby 1.9+
+Name:		ruby-%{pkgname}
+Version:	0.11.1
+Release:	1
+License:	MIT
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	151ac8250d824c62e383d94e53932423
+Group:		Development/Languages
+URL:		https://rubygems.org/gems/simplecov
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Code coverage for Ruby 1.9+ with a powerful configuration library
+and automatic merging of coverage across test suites.
+
+%package rdoc
+Summary:	HTML documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for %{pkgname}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
+%package ri
+Summary:	ri documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{pkgname}
+Group:		Documentation
+Requires:	ruby
+
+%description ri
+ri documentation for %{pkgname}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{pkgname}.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+# make gemspec self-contained
+ruby -r rubygems -e 'spec = eval(File.read("%{pkgname}.gemspec"))
+	File.open("%{pkgname}-%{version}.gemspec", "w") do |file|
+	file.puts spec.to_ruby_for_cache
+end'
+
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+%{__rm} -r ri/created.rid ri/{Coverage,Rails}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}/%{name}-%{version}}
+
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+cp -a rdoc/* $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+
+# install gemspec
+install -d $RPM_BUILD_ROOT%{ruby_specdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
+
+%if %{with doc}
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/SimpleCov
+%{ruby_ridir}/lib/simplecov
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-simplecov.git/commitdiff/7a05b47e33b93dc55990cf0ec4c416f647c82f75



More information about the pld-cvs-commit mailing list