[packages/ruby-thread_order] - pl, completed doc bcond

qboosh qboosh at pld-linux.org
Wed Jun 13 19:53:39 CEST 2018


commit ab197a677b9bf74931f5123ab26d2ccebec5f6f9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 13 19:54:53 2018 +0200

    - pl, completed doc bcond

 ruby-thread_order.spec | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ruby-thread_order.spec b/ruby-thread_order.spec
index 409bc04..f101289 100644
--- a/ruby-thread_order.spec
+++ b/ruby-thread_order.spec
@@ -1,9 +1,10 @@
 #
 # Conditional build:
-%bcond_without	doc			# don't build ri/rdoc
+%bcond_without	doc	# ri/rdoc documentation
 
 %define pkgname thread_order
 Summary:	Test helper for ordering threaded code
+Summary(pl.UTF-8):	Funkcje pomocnicze dla testów do ustalania porządku kodu w wątkach
 Name:		ruby-%{pkgname}
 Version:	1.1.0
 Release:	1
@@ -21,6 +22,11 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Test helper for ordering threaded code (does not depend on gems
 or stdlib, tested on 1.8.7 - 2.2, rbx, jruby).
 
+%description -l pl.UTF-8
+Funkcje pomocnicze dla testów do ustalania porządku kodu w wątkach
+(niezależnie od gemów ani biblioteki standardowej, przetestowany na
+implementacjach 1.8.7 - 2.2, rbx, jruby).
+
 %package rdoc
 Summary:	HTML documentation for Ruby %{pkgname} module
 Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla modułu języka Ruby %{pkgname}
@@ -60,11 +66,12 @@ end'
 
 #'
 
+%if %{with doc}
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
-# rm -r ri/NOT_THIS_MODULE_RELATED_DIRS
-rm ri/created.rid
-rm ri/cache.ri
+%{__rm} ri/created.rid
+%{__rm} ri/cache.ri
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -83,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Readme.md
+%doc License.txt Readme.md
 %{ruby_vendorlibdir}/%{pkgname}.rb
 %{ruby_vendorlibdir}/%{pkgname}
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-thread_order.git/commitdiff/ab197a677b9bf74931f5123ab26d2ccebec5f6f9



More information about the pld-cvs-commit mailing list