[InsightToolkit/f21] Remove source files of external dependencies
sebp
sebp at fedoraproject.org
Wed Aug 13 01:36:04 UTC 2014
commit ed95fdb710f6b34bb45ee9408a7360766bd83718
Author: Sebastian Pölsterl <poelster at in.tum.de>
Date: Tue Aug 12 21:35:55 2014 -0400
Remove source files of external dependencies
- Partially fixes bug #1076793
InsightToolkit.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/InsightToolkit.spec b/InsightToolkit.spec
index 8d04122..c1fc5c3 100644
--- a/InsightToolkit.spec
+++ b/InsightToolkit.spec
@@ -10,7 +10,7 @@
Name: InsightToolkit
Summary: Insight Toolkit library for medical image processing
Version: %{_ver_major}.%{_ver_minor}.%{_ver_release}
-Release: 1%{?dist}
+Release: 2%{?dist}
License: ASL 2.0
Group: Applications/Engineering
Source0: http://sourceforge.net/projects/itk/files/itk/%{_ver_major}.%{_ver_minor}/%{name}-%{version}.tar.xz
@@ -116,6 +116,12 @@ cp -a %{SOURCE1} %{SOURCE2} .
# remove applications: they are shipped separately now
rm -rf Applications/
+# remove source files of external dependencies that itk gets linked against
+for adir in DCMTK Expat GDCM HDF5 JPEG PNG TIFF VNL ZLIB; do
+ find Modules/ThirdParty/${adir} -regextype posix-extended -type f \
+ -regex ".*\.(h|hxx|hpp|c|cc|cpp|cxx|txx)$" -not -iname "itk*" -print0 | xargs -0 rm -fr
+done
+
%build
mkdir -p %{_target_platform}
@@ -204,6 +210,10 @@ make test -C %{_target_platform} || exit 0
%{_libdir}/libITKVtkGlue*.so.*
%changelog
+* Tue Aug 12 2014 Sebastian Pölsterl <sebp at k-d-w.org> - 4.6.0-2
+- Remove source files of external dependencies
+- Partially fixes bug #1076793
+
* Mon Aug 04 2014 Sebastian Pölsterl <sebp at k-d-w.org> - 4.6.0-1
- Update to 4.6.0
More information about the scm-commits
mailing list