[packages/clementine] revisit third party vendor cleanup
glen
glen at pld-linux.org
Wed Jan 20 18:20:51 CET 2016
commit 8e4b706b2e0eb5443db5347462fcb4e7a07d7180
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 20 19:01:24 2016 +0200
revisit third party vendor cleanup
clementine.spec | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/clementine.spec b/clementine.spec
index 36e9ab7..a68ff05 100644
--- a/clementine.spec
+++ b/clementine.spec
@@ -119,9 +119,20 @@ a Qt4 előnyeit.
# - sha2 - ?
# - qocoa - ?
# - qsqlite - see bcond
-mv 3rdparty 3rdparty.keep
-install -d 3rdparty
-mv 3rdparty.keep/{sha2,qocoa%{?with_static_sqlite:,qsqlite}%{?with_static_projectm:,libprojectm}} 3rdparty
+# cleanup vendor. keep only needed libraries.
+# (the rest are packaged with system packages)
+mv 3rdparty 3rdparty.dist
+vendor() {
+ local path dir
+ for path; do
+ dir=$(dirname $path)
+ test -d 3rdparty/$dir || mkdir -p 3rdparty/$dir
+ mv 3rdparty.dist/$path 3rdparty/$path
+ done
+}
+vendor sha2 qocoa
+%{?with_static_sqlite:vendor qsqlite}
+%{?with_static_projectm:vendor libprojectm}
# Don't build tests. They require gmock
sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/clementine.git/commitdiff/8e4b706b2e0eb5443db5347462fcb4e7a07d7180
More information about the pld-cvs-commit
mailing list