forked from pool/insighttoolkit
Accepting request 351544 from home:pluskalm:branches:Application:Geo
- Cleanup spec filew with spec-cleaner - Use cmake macros - Use spdx license and install license file - Use url for source OBS-URL: https://build.opensuse.org/request/show/351544 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/insighttoolkit?expand=0&rev=2
This commit is contained in:
parent
80cecb468a
commit
31f9a60fba
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d8d5e3aea700588c60b01418c440b2d95b517ea18dd4c834c5164354e53596af
|
|
||||||
size 17400381
|
|
3
InsightToolkit-4.8.2.tar.xz
Normal file
3
InsightToolkit-4.8.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fec268ba180bdb78d760aa4f6f467d0a5fc71b3a34e3201d8425d0edfa23ef5f
|
||||||
|
size 11261016
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 1 08:07:48 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec filew with spec-cleaner
|
||||||
|
- Use cmake macros
|
||||||
|
- Use spdx license and install license file
|
||||||
|
- Use url for source
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
* Sat Dec 26 15:34:00 UTC 2015 Angelos Tzotsos <tzotsos@opensuse.org> - 4.8.2
|
* Sat Dec 26 15:34:00 UTC 2015 Angelos Tzotsos <tzotsos@opensuse.org> - 4.8.2
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package insighttoolkit
|
# spec file for package insighttoolkit
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2015 Angelos Tzotsos <tzotsos@opensuse.org>.
|
# Copyright (c) 2015 Angelos Tzotsos <tzotsos@opensuse.org>.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,72 +14,75 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define tarname InsightToolkit
|
%define tarname InsightToolkit
|
||||||
|
|
||||||
Name: insighttoolkit
|
Name: insighttoolkit
|
||||||
Version: 4.8.2
|
Version: 4.8.2
|
||||||
Release: 1
|
Release: 0
|
||||||
Summary: Insight Segmentation and Registration Toolkit
|
Summary: Insight Segmentation and Registration Toolkit
|
||||||
|
License: Apache-2.0
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: Apache-2
|
Url: http://www.itk.org
|
||||||
URL: http://www.itk.org
|
Source0: http://sourceforge.net/projects/itk/files/itk/4.8/%{tarname}-%{version}.tar.xz
|
||||||
Source0: %{tarname}-%{version}.tar.gz
|
|
||||||
Patch0: nrrdio-linking.patch
|
Patch0: nrrdio-linking.patch
|
||||||
Patch1: doubleconv.patch
|
Patch1: doubleconv.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
BuildRequires: cmake >= 2.8.0
|
BuildRequires: cmake >= 2.8.0
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: dcmtk-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: fdupes
|
||||||
BuildRequires: swig
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
BuildRequires: libpng-devel
|
|
||||||
BuildRequires: libtiff-devel
|
|
||||||
BuildRequires: fftw3-devel
|
BuildRequires: fftw3-devel
|
||||||
BuildRequires: fftw3-threads-devel
|
BuildRequires: fftw3-threads-devel
|
||||||
BuildRequires: dcmtk-devel
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
# BuildRequires: gdcm-devel
|
# BuildRequires: gdcm-devel
|
||||||
BuildRequires: hdf5-devel
|
BuildRequires: hdf5-devel
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: vtk-devel
|
|
||||||
BuildRequires: python-vtk
|
|
||||||
BuildRequires: libjpeg-devel
|
|
||||||
BuildRequires: libexpat-devel
|
BuildRequires: libexpat-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: libpng-devel
|
||||||
|
BuildRequires: libtiff-devel
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-vtk
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
BuildRequires: fdupes
|
BuildRequires: swig
|
||||||
|
BuildRequires: vtk-devel
|
||||||
|
BuildRequires: xz
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis
|
ITK is an open-source, cross-platform system that provides developers with
|
||||||
|
an extensive suite of software tools for image analysis.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for ITK
|
Summary: Development files for ITK
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: lib%{name}4 = %{version}
|
Requires: dcmtk-devel
|
||||||
Requires: zlib-devel
|
|
||||||
Requires: libpng-devel
|
|
||||||
Requires: libtiff-devel
|
|
||||||
Requires: fftw3-devel
|
Requires: fftw3-devel
|
||||||
Requires: fftw3-threads-devel
|
Requires: fftw3-threads-devel
|
||||||
Requires: dcmtk-devel
|
|
||||||
Requires: hdf5-devel
|
Requires: hdf5-devel
|
||||||
Requires: vtk-devel
|
Requires: lib%{name}4 = %{version}
|
||||||
Requires: libjpeg-devel
|
|
||||||
Requires: libexpat-devel
|
Requires: libexpat-devel
|
||||||
|
Requires: libjpeg-devel
|
||||||
|
Requires: libpng-devel
|
||||||
|
Requires: libtiff-devel
|
||||||
|
Requires: vtk-devel
|
||||||
|
Requires: zlib-devel
|
||||||
Provides: lib%{name}-devel
|
Provides: lib%{name}-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files for the ITK library. ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis
|
Development files for the ITK library. ITK is an open-source,
|
||||||
|
cross-platform system that provides developers with an extensive suite of
|
||||||
|
software tools for image analysis.
|
||||||
|
|
||||||
%package -n lib%{name}4
|
%package -n lib%{name}4
|
||||||
Summary: ITK static libraries
|
Summary: ITK static libraries
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n lib%{name}4
|
%description -n lib%{name}4
|
||||||
Shared ITK library. ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis.
|
Shared ITK library. ITK is an open-source, cross-platform system that
|
||||||
|
provides developers with an extensive suite of software tools for image
|
||||||
|
analysis..
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{tarname}-%{version}
|
%setup -q -n %{tarname}-%{version}
|
||||||
@ -86,15 +90,11 @@ Shared ITK library. ITK is an open-source, cross-platform system that provides d
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd ..
|
%cmake \
|
||||||
mkdir temp
|
-DBUILD_EXAMPLES:BOOL=ON \
|
||||||
cd temp
|
|
||||||
cmake -DBUILD_EXAMPLES:BOOL=ON \
|
|
||||||
-DBUILD_SHARED_LIBS:BOOL=ON \
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
||||||
-DBUILD_TESTING:BOOL=OFF \
|
-DBUILD_TESTING:BOOL=OFF \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
||||||
-DUSE_FFTWF=ON \
|
-DUSE_FFTWF=ON \
|
||||||
-DITK_USE_FFTWD:BOOL=ON \
|
-DITK_USE_FFTWD:BOOL=ON \
|
||||||
-DITK_USE_FFTWF:BOOL=ON \
|
-DITK_USE_FFTWF:BOOL=ON \
|
||||||
@ -129,41 +129,35 @@ cmake -DBUILD_EXAMPLES:BOOL=ON \
|
|||||||
-DITK_WRAP_complex_double:BOOL=ON \
|
-DITK_WRAP_complex_double:BOOL=ON \
|
||||||
-DITK_WRAPPING:BOOL=OFF \
|
-DITK_WRAPPING:BOOL=OFF \
|
||||||
-DITK_WRAP_PYTHON:BOOL=OFF \
|
-DITK_WRAP_PYTHON:BOOL=OFF \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
-DCMAKE_BUILD_TYPE:STRING="Release"
|
||||||
-DCMAKE_BUILD_TYPE:STRING="Release" ../%{tarname}-%{version}/
|
|
||||||
|
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
make VERBOSE=1 %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd ../temp
|
%cmake_install
|
||||||
make install DESTDIR=%{buildroot}
|
|
||||||
|
|
||||||
%if "%{_lib}" == "lib64"
|
%if "%{_lib}" == "lib64"
|
||||||
mkdir -p %{buildroot}/usr/lib64
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mv %{buildroot}/usr/lib/* %{buildroot}/usr/lib64/
|
mv %{buildroot}%{_libexecdir}/* %{buildroot}%{_libdir}/
|
||||||
sed -i 's|/lib/|/lib64/|g' %{buildroot}/usr/lib64/cmake/ITK-4.8/ITKConfig.cmake
|
sed -i 's|/lib/|/lib64/|g' %{buildroot}%{_libdir}/cmake/ITK-4.8/ITKConfig.cmake
|
||||||
sed -i 's|/lib/|/lib64/|g' %{buildroot}/usr/lib64/cmake/ITK-4.8/ITKTargets.cmake
|
sed -i 's|/lib/|/lib64/|g' %{buildroot}%{_libdir}/cmake/ITK-4.8/ITKTargets.cmake
|
||||||
sed -i 's|/lib/|/lib64/|g' %{buildroot}/usr/lib64/cmake/ITK-4.8/ITKTargets-release.cmake
|
sed -i 's|/lib/|/lib64/|g' %{buildroot}%{_libdir}/cmake/ITK-4.8/ITKTargets-release.cmake
|
||||||
%endif
|
%endif
|
||||||
rm -rf %{buildroot}/usr/lib/debug
|
rm -rf %{buildroot}%{_libexecdir}/debug
|
||||||
|
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%post -n lib%{name}4 -p /sbin/ldconfig
|
%post -n lib%{name}4 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n lib%{name}4 -p /sbin/ldconfig
|
%postun -n lib%{name}4 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n lib%{name}4
|
%files -n lib%{name}4
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
# %dir %{_libdir}/
|
%doc LICENSE
|
||||||
%{_libdir}/*.so.1
|
%{_libdir}/*.so.1
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user