[packages/ruby-sass] add doc bcond
glen
glen at pld-linux.org
Mon Dec 8 13:54:44 CET 2014
commit e0e8467f1335c2893f328868a6483442f5e78c20
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Dec 8 14:54:35 2014 +0200
add doc bcond
ruby-sass.spec | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/ruby-sass.spec b/ruby-sass.spec
index e0f7b00..172100f 100644
--- a/ruby-sass.spec
+++ b/ruby-sass.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without doc # don't build ri/rdoc
+
%define pkgname sass
Summary: A powerful but elegant CSS compiler that makes CSS fun again
Name: ruby-%{pkgname}
@@ -58,9 +62,15 @@ s=$(ruby -e "puts File.read('VERSION_NAME').strip.inspect")
# write .gemspec
%__gem_helper spec
+%if %{with doc}
rdoc --ri --op ri lib
rdoc --op rdoc lib
+rm -r ri/ActionController
+rm -r ri/Merb
+rm -r ri/OrderedHash
+rm ri/cache.ri
rm ri/created.rid
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -89,6 +99,7 @@ rm -rf $RPM_BUILD_ROOT
%{ruby_rubylibdir}/sass.rb
%{ruby_specdir}/%{pkgname}-%{version}.gemspec
+%if %{with doc}
%files rdoc
%defattr(644,root,root,755)
%{ruby_rdocdir}/%{name}-%{version}
@@ -96,3 +107,4 @@ rm -rf $RPM_BUILD_ROOT
%files ri
%defattr(644,root,root,755)
%{ruby_ridir}/Sass
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-sass.git/commitdiff/e0e8467f1335c2893f328868a6483442f5e78c20
More information about the pld-cvs-commit
mailing list