commit c5c5f633b318e91726a9af697ce1c87d56b854dd
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Jul 5 22:00:22 2018 +0200

    - rel 3; fix build by separating doc build

 libftdi1.spec | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/libftdi1.spec b/libftdi1.spec
index d1932b3..a4d75df 100644
--- a/libftdi1.spec
+++ b/libftdi1.spec
@@ -7,7 +7,7 @@ Summary:        Library to talk to FTDI's chips including the 
popular bitbang mode
 Summary(pl.UTF-8):     Biblioteka do komunikacji z układami FTDI włącznie z 
trybem bitbang
 Name:          libftdi1
 Version:       1.4
-Release:       2
+Release:       3
 License:       LGPL v2
 Group:         Libraries
 #Source0Download: https://www.intra2net.com/en/developer/libftdi/download.php
@@ -145,11 +145,21 @@ Wiązanie Pythona 3 do libftdi1.
 %patch0 -p1
 
 %build
+install -d build-doc
+cd build-doc
+%cmake .. \
+       -DDOCUMENTATION:BOOL=ON \
+       -DEXAMPLES:BOOL=OFF \
+       -DPYTHON_BINDINGS:BOOL=OFF
+%{__make} docs
+cd ..
+
 %if %{with python2}
 install -d build-py2
 cd build-py2
 %cmake .. \
-       -DEXAMPLES=OFF \
+       -DDOCUMENTATION:BOOL=OFF \
+       -DEXAMPLES:BOOL=OFF \
        -DPYTHON_EXECUTABLE=%{__python}
 %{__make}
 cd ..
@@ -159,7 +169,8 @@ cd ..
 install -d build-py3
 cd build-py3
 %cmake .. \
-       -DEXAMPLES=OFF \
+       -DDOCUMENTATION:BOOL=OFF \
+       -DEXAMPLES:BOOL=OFF \
        -DPYTHON_EXECUTABLE=%{__python3}
 %{__make}
 cd ..
@@ -194,7 +205,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog LICENSE README 
%{?with_python2:build-py2}%{!?with_python2:build-py3}/doc/html
+%doc AUTHORS ChangeLog LICENSE README build-doc/doc/html
 %attr(755,root,root) %{_libdir}/libftdi1.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libftdi1.so.2
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libftdi1.git/commitdiff/c5c5f633b318e91726a9af697ce1c87d56b854dd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to