aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-02-20 12:53:40 -0800
committerMark Ferrell <major@homeonderanged.org>2014-02-20 12:53:40 -0800
commit60ed91ed99f360007fb753386a8e34ddee06d421 (patch)
tree45dff74cccafa5cff36eb3a7052664d4432adb8b
parent032185875ed298835176058c66d37cd7f81f4d03 (diff)
Improve export filtering
* We remove more "dev" items from the exported rpm by default now. In the long run we should be dividing this data into dev rpm's and dbg rpm's.
-rwxr-xr-xbuilder/build-export6
1 files changed, 5 insertions, 1 deletions
diff --git a/builder/build-export b/builder/build-export
index a873b4e..732b888 100755
--- a/builder/build-export
+++ b/builder/build-export
@@ -69,7 +69,11 @@ ${DESCRIPTION}
%files
EOF
-tr '\000' '\n' < "${SYSROOT}/var/db/binpkgs/${CATEGORY}/${NAME}" | sed -e 's,^,/,' >> "${S}/SPECS/${NAME}-${VERSION}.spec"
+# FIXME In the long run we should see about producing -dbg and -dev rpms
+tr '\000' '\n' < "${SYSROOT}/var/db/binpkgs/${CATEGORY}/${NAME}" \
+ | sed -e 's,^,/,' \
+ | grep -v '^/usr/include' | grep -v 'pkgconfig' | grep -v '^*\.a$' \
+ >> "${S}/SPECS/${NAME}-${VERSION}.spec"
#mkdir -p "${D}"
#cd "${D}"