[packages/kicad] - rework prep to make sure all modules are installed - parallel build works
baggins
baggins at pld-linux.org
Sun Apr 16 14:18:43 CEST 2017
commit 1046b699cf4533b087f9df542ebce691154b3915
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Apr 16 14:09:13 2017 +0200
- rework prep to make sure all modules are installed
- parallel build works
kicad.spec | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/kicad.spec b/kicad.spec
index fd996bc..f014c85 100644
--- a/kicad.spec
+++ b/kicad.spec
@@ -384,17 +384,17 @@ BuildArch: noarch
Documentation and tutorials for Kicad in Russian.
%prep
-%setup -q -a 1 -a 2 -a 3
-%setup -qD %(seq -f '-a %g' 100 192 | xargs)
-
+%setup -q -a 1 -a 2 -a 3 %(seq -f '-a %g' 100 192 | xargs)
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
install -d modules
-for module in *.pretty-*; do
- %{__mv} $module modules/${module%%.pretty-*}
+%{__sed} -e '/(lib/!d' -e 's/.*(name \([^)]*\)).*uri \${KIGITHUB}\/\([^)]*\)).*/\2 \1/' \
+ %{name}-library-%{version}/template/fp-lib-table.for-github | \
+while read src dest ; do
+ %{__mv} $src-%{version} modules/$dest
done
%build
@@ -402,7 +402,7 @@ done
mkdir %{name}-library-%{version}/build
cd %{name}-library-%{version}/build
%cmake ..
-%{__make} -j1 VERBOSE=1
+%{__make} VERBOSE=1
cd ../..
# Documentation
@@ -410,7 +410,7 @@ mkdir %{name}-doc-%{version}/build
cd %{name}-doc-%{version}/build
%cmake .. \
-DBUILD_FORMATS=html
-%{__make} -j1 VERBOSE=1
+%{__make} VERBOSE=1
cd ../..
# Translations
@@ -418,7 +418,7 @@ mkdir %{name}-i18n-%{version}/build
cd %{name}-i18n-%{version}/build
%cmake .. \
-DKICAD_I18N_UNIX_STRICT_PATH=ON
-%{__make} -j1 VERBOSE=1
+%{__make} VERBOSE=1
cd ../..
# Core components
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kicad.git/commitdiff/2d9dab202ce645f7ae961f0ab9777e232f61252c
More information about the pld-cvs-commit
mailing list