From 33d3194e76b1ff99caeb2d051c5a55c7d106810b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:09:03 +0100 Subject: [PATCH] package created using the webbuild interface [release 8.2.0-1mamba;Tue Dec 03 2019] --- README.md | 2 ++ vtk.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 vtk.spec diff --git a/README.md b/README.md index 26055c4..b07b143 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # vtk +The Visualization Toolkit (VTK) is open source software for manipulating and displaying scientific data. It comes with state-of-the-art tools for 3D rendering, a suite of widgets for 3D interaction, and extensive 2D plotting capability. + diff --git a/vtk.spec b/vtk.spec new file mode 100644 index 0000000..4f5c761 --- /dev/null +++ b/vtk.spec @@ -0,0 +1,91 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: vtk +Version: 8.2.0 +Release: 1mamba +Summary: Software for manipulating and displaying scientific data +Group: Applications/Scientific +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://vtk.org/ +Source: https://www.vtk.org/files/release/%{majver}/VTK-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXt-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Visualization Toolkit (VTK) is open source software for manipulating and displaying scientific data. It comes with state-of-the-art tools for 3D rendering, a suite of widgets for 3D interaction, and extensive 2D plotting capability. + +%package -n lib%{name} +Group: System/Libraries +Summary: Software for manipulating and displaying scientific data + +%description -n lib%{name} +The Visualization Toolkit (VTK) is open source software for manipulating and displaying scientific data. It comes with state-of-the-art tools for 3D rendering, a suite of widgets for 3D interaction, and extensive 2D plotting capability. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n VTK-%{version} + +%build +%cmake -d build \ + -DCMAKE_C_FLAGS="%{optflags} -fcommon" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libvtk*-%{majver}.so.* +%doc Copyright.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/vtk-%{majver} +%{_includedir}/vtk-%{majver}/* +%{_libdir}/libvtk*-%{majver}.so +%dir %{_libdir}/cmake/vtk-%{majver} +%dir %{_libdir}/cmake/vtk-%{majver}/Modules +%{_libdir}/cmake/vtk-%{majver}/Modules/vtk*.cmake +%{_libdir}/cmake/vtk-%{majver}/*.cmake +%{_libdir}/cmake/vtk-%{majver}/*.in +%dir %{_datadir}/doc/vtk-%{majver} +%{_datadir}/doc/vtk-%{majver}/* +%doc README.md + +%changelog +* Tue Dec 03 2019 Silvan Calarco 8.2.0-1mamba +- package created using the webbuild interface