[packages/crystal] build api docs
glen
glen at pld-linux.org
Sat Feb 23 11:54:27 CET 2019
commit c634fa5636c9d3039abebe040577388939702d53
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Feb 23 02:15:48 2019 +0200
build api docs
crystal.spec | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/crystal.spec b/crystal.spec
index 82e185b..737548c 100644
--- a/crystal.spec
+++ b/crystal.spec
@@ -1,7 +1,8 @@
#
# Conditional build:
%bcond_with bootstrap # bootstrap build
-%bcond_without tests # build without tests
+%bcond_without tests # build without tests
+%bcond_without apidocs # do not build and package API docs
# this probably does not have to be very latest
%define bootstrap_ver 0.27.2
@@ -55,6 +56,14 @@ Crystal is a programming language with the following goals:
boilerplate code.
- Compile to efficient native code.
+%package apidocs
+Summary: crystal API documentation
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for crystal.
+
%prep
%setup -q %{?with_bootstrap:-a1}
@@ -68,6 +77,7 @@ CXXFLAGS="%{rpmcxxflags}" \
%{__make} progress=true stats=true \
CC="%{__cc}" \
CXX="%{__cxx}"
+%{?with_apidocs:%{__make} docs}
%{?with_tests:%{__make} spec}
%install
@@ -88,3 +98,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/crystal
%{_mandir}/man1/crystal.1*
%{_examplesdir}/%{name}-%{version}
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crystal.git/commitdiff/c634fa5636c9d3039abebe040577388939702d53
More information about the pld-cvs-commit
mailing list