Copy from home:anubisg1:branches:science/vtk via accept of submit request 12109
Request was accepted with message: Thanks for your hard work. Looks good. OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=12
This commit is contained in:
parent
78125669e4
commit
309b15a2da
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:714c0dea68f65c65c02319ca495f5c367c64a52fb787aa13b1fe0f3fcfa6dfe2
|
||||
size 13953658
|
3
vtk-5.4.2.tar.gz
Normal file
3
vtk-5.4.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:037c0582ee7483e0b495e45a00c4f08784691ef82c4ea159ef86731c3beda73d
|
||||
size 18265310
|
91
vtk.spec
91
vtk.spec
@ -1,24 +1,19 @@
|
||||
%define lib_ver 5.2
|
||||
|
||||
%define qtdir %{_libdir}/qt3
|
||||
%define qtdir %{_libdir}/qt4
|
||||
|
||||
Name: vtk
|
||||
Summary: The Visualization Toolkit - A high level 3D visualization library
|
||||
Version: %{lib_ver}.1
|
||||
Version: 5.4.2
|
||||
Release: 1
|
||||
Packager: Werner Hoch <werner.ho@gmx.de>
|
||||
License: BSD
|
||||
Group: System Environment/Libraries
|
||||
|
||||
Group: System/Libraries
|
||||
URL: http://www.vtk.org
|
||||
Source: vtk-%{version}.tar.bz2
|
||||
Patch0: vtk-5.2.1-pythondestdir.patch
|
||||
Source0: vtk-%{version}.tar.gz
|
||||
Patch0: vtk-5.4.2-pythondestdir.patch
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
BuildRequires: cmake, tcl-devel, tk-devel, qt3-devel, python-devel
|
||||
BuildRequires: libexpat-devel, libjpeg-devel, libpng-devel, freetype2-devel
|
||||
BuildRequires: libtiff-devel, zlib-devel
|
||||
BuildRequires: doxygen, graphviz, gnuplot
|
||||
BuildRequires: cmake tcl-devel tk-devel libqt4-devel python-devel
|
||||
BuildRequires: libexpat-devel libjpeg-devel libpng-devel freetype2-devel
|
||||
BuildRequires: libtiff-devel zlib-devel fdupes doxygen graphviz gnuplot
|
||||
# tar-1.14.90+ uses --strip-components option
|
||||
BuildRequires: tar > 1.14.90
|
||||
BuildRequires: chrpath
|
||||
@ -45,7 +40,7 @@ use VTK to do 3D visualisation
|
||||
%package tcl
|
||||
Summary: Tcl bindings for VTK
|
||||
Requires: vtk = %{version}
|
||||
Group: System Environment/Libraries
|
||||
Group: System/Libraries
|
||||
|
||||
%description tcl
|
||||
tcl bindings for VTK
|
||||
@ -53,7 +48,7 @@ tcl bindings for VTK
|
||||
%package python
|
||||
Summary: Python bindings for VTK
|
||||
Requires: vtk = %{version}
|
||||
Group: System Environment/Libraries
|
||||
Group: System/Libraries
|
||||
|
||||
%description python
|
||||
python bindings for VTK
|
||||
@ -61,8 +56,9 @@ python bindings for VTK
|
||||
%package qt
|
||||
Summary: QT VTK widget
|
||||
Requires: vtk = %{version}
|
||||
Requires: qt3
|
||||
Group: Development/Libraries
|
||||
# do not neeeded to call it, rpm take care of it
|
||||
#Requires: libqt4
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description qt
|
||||
Qt VTK widget
|
||||
@ -70,7 +66,7 @@ Qt VTK widget
|
||||
%package examples
|
||||
Summary: Examples for VTK
|
||||
Requires: vtk = %{version}, vtkdata = %{version}
|
||||
Group: Applications/Engineering
|
||||
Group: Productivity/Scientific/Other
|
||||
|
||||
%description examples
|
||||
This package contains many well-commented examples showing how to use
|
||||
@ -80,13 +76,11 @@ programming languages
|
||||
%package testing-progs
|
||||
Summary: Testing programs for VTK
|
||||
Requires: %{name} = %{version}, vtkdata = %{version}
|
||||
Group: Applications/Engineering
|
||||
Group: Productivity/Scientific/Other
|
||||
|
||||
%description testing-progs
|
||||
Testing programs for VTK
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n VTK -q
|
||||
%patch0 -p1
|
||||
@ -97,8 +91,10 @@ grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
||||
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/%{name}data,g'
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
cmake . \
|
||||
-DDESIRED_QT_VERSION=3 \
|
||||
-DDESIRED_QT_VERSION=4 \
|
||||
-DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$RPM_BUILD_ROOT \
|
||||
@ -117,7 +113,7 @@ cmake . \
|
||||
-DVTK_USE_GUISUPPORT:BOOL=ON \
|
||||
-DVTK_USE_QVTK:BOOL=ON \
|
||||
-DVTK_INSTALL_QT_DIR:STRING=%{qtdir}/plugins/designer \
|
||||
-DVTK_LEGACY_REMOVE:BOOL=ON \
|
||||
-DVTK_LEGACY_REMOVE:BOOL=OFF \
|
||||
-DVTK_USE_GL2PS:BOOL=ON \
|
||||
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
|
||||
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
|
||||
@ -128,7 +124,7 @@ cmake . \
|
||||
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
|
||||
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=1
|
||||
|
||||
make %{_smp_mflags}
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
|
||||
%install
|
||||
make install
|
||||
@ -176,19 +172,19 @@ find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
|
||||
-name "CMake*" | xargs rm -rf
|
||||
|
||||
# cmake
|
||||
install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/*.cmake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/CMake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/hints $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||
install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{version}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/*.cmake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{version}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/CMake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{version}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/hints $RPM_BUILD_ROOT/%{_libdir}/vtk-%{version}
|
||||
|
||||
# make scripts executable
|
||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/testing/*.{py,tcl}
|
||||
|
||||
# fix tcl stuff
|
||||
install -d $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}/testing
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/pkgIndex.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/tcl/* $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/testing/*.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}/testing
|
||||
install -d $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{version}/testing
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/pkgIndex.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{version}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/tcl/* $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{version}
|
||||
mv $RPM_BUILD_ROOT/%{_libdir}/testing/*.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{version}/testing
|
||||
|
||||
#python testing files --> remove them
|
||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/testing
|
||||
@ -217,6 +213,12 @@ for dir in vtk vtk-devel vtk-tcl vtk-testing-progs vtk-python; do
|
||||
install -d $RPM_BUILD_ROOT/%{_docdir}/"$dir"
|
||||
done
|
||||
|
||||
`for i in $(find %{buildroot}%{_datadir}/vtk-examples/ -name '*.py'); do chmod +x $i; done`
|
||||
#chmod -x %buildroot/%{_libdir}/vtk-%{version}/*.cmake
|
||||
|
||||
#symlink duplicate files, made rpm smaller and rpmlint happyer
|
||||
%fdupes -s %buildroot
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -260,6 +262,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libvtkmetaio.so.*
|
||||
%{_libdir}/libvtksqlite.so.*
|
||||
%{_libdir}/libvtkverdict.so.*
|
||||
%{_libdir}/libvtkGeovis.so.*
|
||||
%{_libdir}/libvtkalglib.so.*
|
||||
%{_libdir}/libvtkproj4.so.*
|
||||
|
||||
%doc README.html
|
||||
%doc vtkLogo.jpg
|
||||
@ -267,11 +272,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_libdir}/vtk-%{lib_ver}
|
||||
%dir %{_libdir}/vtk-%{version}
|
||||
%{_includedir}/*
|
||||
%{_libdir}/vtk-%{lib_ver}/CMake
|
||||
%{_libdir}/vtk-%{lib_ver}/*.cmake
|
||||
%{_libdir}/vtk-%{lib_ver}/hints
|
||||
%{_libdir}/vtk-%{version}/CMake
|
||||
%{_libdir}/vtk-%{version}/*.cmake
|
||||
%{_libdir}/vtk-%{version}/hints
|
||||
%{_libdir}/libvtkCommon.so
|
||||
%{_libdir}/libvtkFiltering.so
|
||||
%{_libdir}/libvtkGenericFiltering.so
|
||||
@ -297,6 +302,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libvtkmetaio.so
|
||||
%{_libdir}/libvtksqlite.so
|
||||
%{_libdir}/libvtkverdict.so
|
||||
%{_libdir}/libvtkGeovis.so
|
||||
%{_libdir}/libvtkalglib.so
|
||||
%{_libdir}/libvtkproj4.so
|
||||
%doc README.html
|
||||
%doc vtkLogo.jpg
|
||||
%defattr(0644,root,root,-)
|
||||
@ -333,6 +341,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files qt
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libQVTK.so.*
|
||||
%{_libdir}/libvtkQtChart.so*
|
||||
%{_bindir}/qtevents
|
||||
%{_bindir}/qtimageviewer
|
||||
%{_bindir}/qtsimpleview
|
||||
@ -343,8 +352,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/%{name}-examples
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jun 08 2009 Andrea Florio <andrea@opensuse.org> - 5.4.2
|
||||
- made rpmlint happy (using fdupes)
|
||||
- fixed rpm Group using real ones, please check here: http://en.opensuse.org/SUSE_Package_Conventions/RPM_Groups
|
||||
- added libraries introduced in version 5.4.2 to file lists
|
||||
- use qt4 instead of qt3
|
||||
- replaced %{lib_version} with %{version}
|
||||
- set VTK_LEGACY_REMOVE to OFF for compatibility with applications that uses the legacy functions
|
||||
* Sat Jan 03 2009 Werner Hoch <werner.ho@gmx.de> - 5.2.1
|
||||
- removed vtk-data
|
||||
- removed vtk-doc (doxygen)
|
||||
@ -356,5 +371,3 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- use qt3 instead of qt4
|
||||
* Thu Jul 18 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4
|
||||
- specfile taken from fedora core 9 and adapted to opensuse
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user