Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: OCE
- Version: 0.7.0
- Release: 1%{?dist}
- Summary: Open CASCADE Community Edition
- License: Open CASCADE Technology Public License
- URL: https://github.com/tpaviot/oce
- Source0: https://github.com/tpaviot/oce/tarball/%{name}-%{version}.tar.gz
- Patch0: OCE-0.7.0-LIB_SUFFIX.patch
- BuildRequires: cmake
- BuildRequires: xorg-x11-proto-devel
- BuildRequires: mesa-libGL-devel
- BuildRequires: libXmu-devel
- BuildRequires: ftgl-devel
- BuildRequires: freeimage-devel
- BuildRequires: gl2ps-devel
- %if 0%{?fedora} > 15
- BuildRequires: tbb-devel
- %endif
- BuildRequires: tcl-devel
- BuildRequires: tk-devel
- #Requires:
- %description
- OpenCASCADE Community Edition (OCE) is a suite for 3D surface and solid
- modeling, visualization, data exchange and rapid application development. It
- is an excellent platform for development of numerical simulation software
- including CAD/CAM/CAE, AEC and GIS, as well as PDM applications.
- %package foundation
- Summary: OpenCASCADE CAE platform shared libraries
- Group: System Environment/Libraries
- %description foundation
- OpenCASCADE CAE platform shared libraries
- This package contains foundation classes which provide a variety of
- general-purpose services such as automated management of heap memory,
- exception handling, classes for manipulating aggregates of data, basic
- math tools.
- %package modeling
- Summary: OpenCASCADE CAE platform shared libraries
- Group: System Environment/Libraries
- %description modeling
- OpenCASCADE CAE platform shared libraries
- This package supplies data structures to represent 2D and 3D geometric models,
- as well as topological and geometrical algorithms.
- %package ocaf
- Summary: OpenCASCADE CAE platform shared libraries
- Group: System Environment/Libraries
- %description ocaf
- OpenCASCADE CAE platform shared libraries
- This package provides OpenCASCADE Application Framework services and
- support for data exchange.
- %package visualization
- Summary: OpenCASCADE CAE platform shared libraries
- Group: System Environment/Libraries
- %description visualization
- OpenCASCADE CAE platform shared libraries
- This package provides services for displaying 2D and 3D graphics.
- %package examples
- Summary: OpenCASCADE CAE platform shared libraries
- Group: System Environment/Libraries
- %description examples
- OpenCASCADE CAE platform shared libraries
- This package contains example input files for OpenCASCADE in various formats.
- %package devel
- Summary: OpenCASCADE CAE platform library development files
- Group: Development/Libraries
- Requires: %{name}-foundation%{?_isa} = %{version}-%{release}
- Requires: %{name}-modeling%{?_isa} = %{version}-%{release}
- Requires: %{name}-ocaf%{?_isa} = %{version}-%{release}
- Requires: %{name}-visualization%{?_isa} = %{version}-%{release}
- %description devel
- OpenCASCADE CAE platform library development files
- %prep
- %setup -q -n tpaviot-oce-a384024
- %patch0 -p1
- # Convert files to utf8
- iconv --from=ISO-8859-1 --to=UTF-8 LICENSE.txt > LICENSE.txt.new && \
- touch -r LICENSE.txt LICENSE.txt.new && \
- mv LICENSE.txt.new LICENSE.txt
- %build
- rm -rf build && mkdir build && pushd build
- %cmake -DOCE_INSTALL_PREFIX=%{_prefix} \
- -DOCE_INSTALL_LIB_DIR=%{_libdir} \
- -DOCE_WITH_FREEIMAGE=ON \
- -DOCE_WITH_GL2PS=ON \
- -DCMAKE_SKIP_RPATH=ON \
- %if 0%{?fedora} > 15
- -DOCE_MULTITHREAD_LIBRARY:STRING=TBB \
- %endif
- ../
- make %{?_smp_mflags}
- %install
- pushd build
- make install DESTDIR=%{buildroot}
- %post foundation -p /sbin/ldconfig
- %postun foundation -p /sbin/ldconfig
- %post modeling -p /sbin/ldconfig
- %postun modeling -p /sbin/ldconfig
- %post ocaf -p /sbin/ldconfig
- %postun ocaf -p /sbin/ldconfig
- %post visualization -p /sbin/ldconfig
- %postun visualization -p /sbin/ldconfig
- %files
- %doc AUTHORS LICENSE.txt NEWS
- %{_datadir}/oce-%{version}/
- %files foundation
- # Foundation
- %{_libdir}/libTKernel.so.*
- %{_libdir}/libTKMath.so.*
- %{_libdir}/libTKAdvTools.so.*
- %files modeling
- # Modeling Data
- %{_libdir}/libTKG2d.so.*
- %{_libdir}/libTKG3d.so.*
- %{_libdir}/libTKGeomBase.so.*
- %{_libdir}/libTKBRep.so.*
- # Modeling Algorithms
- %{_libdir}/libTKGeomAlgo.so.*
- %{_libdir}/libTKTopAlgo.so.*
- %{_libdir}/libTKPrim.so.*
- %{_libdir}/libTKBO.so.*
- %{_libdir}/libTKHLR.so.*
- %{_libdir}/libTKMesh.so.*
- %{_libdir}/libTKShHealing.so.*
- %{_libdir}/libTKXMesh.so.*
- %{_libdir}/libTKBool.so.*
- %{_libdir}/libTKFillet.so.*
- %{_libdir}/libTKFeat.so.*
- %{_libdir}/libTKOffset.so.*
- # Data exchange
- %{_libdir}/libTKSTL.so.*
- %{_libdir}/libTKXSBase.so.*
- %{_libdir}/libTKSTEPBase.so.*
- %{_libdir}/libTKIGES.so.*
- %{_libdir}/libTKSTEPAttr.so.*
- %{_libdir}/libTKSTEP209.so.*
- %{_libdir}/libTKSTEP.so.*
- %{_libdir}/libTKVRML.so.*
- %{_libdir}/libTKXCAF.so.*
- %{_libdir}/libTKXCAFSchema.so.*
- %{_libdir}/libTKXmlXCAF.so.*
- %{_libdir}/libTKBinXCAF.so.*
- %{_libdir}/libTKXDEIGES.so.*
- %{_libdir}/libTKXDESTEP.so.*
- %files visualization
- # Visualization Dependents
- %{_libdir}/libTKService.so.*
- %{_libdir}/libTKV2d.so.*
- %{_libdir}/libTKV3d.so.*
- # Visualization
- %{_libdir}/libTKOpenGl.so.*
- %{_libdir}/libTKMeshVS.so.*
- %{_libdir}/libTKNIS.so.*
- %{_libdir}/libTKVoxel.so.*
- %files ocaf
- # Application framework
- %{_libdir}/libTKCDF.so.*
- %{_libdir}/libPTKernel.so.*
- %{_libdir}/libTKLCAF.so.*
- %{_libdir}/libFWOSPlugin.so.*
- %{_libdir}/libTKPShape.so.*
- %{_libdir}/libTKBinL.so.*
- %{_libdir}/libTKXmlL.so.*
- %{_libdir}/libTKPLCAF.so.*
- %{_libdir}/libTKTObj.so.*
- %{_libdir}/libTKShapeSchema.so.*
- %{_libdir}/libTKStdLSchema.so.*
- %{_libdir}/libTKCAF.so.*
- %{_libdir}/libTKBin.so.*
- %{_libdir}/libTKXml.so.*
- %{_libdir}/libTKPCAF.so.*
- %{_libdir}/libTKBinTObj.so.*
- %{_libdir}/libTKXmlTObj.so.*
- %{_libdir}/libTKStdSchema.so.*
- #%files draw
- # Draw
- #%{_libdir}/libTKDraw.so.*
- #%{_libdir}/libTKTopTest.so.*
- #%{_libdir}/libTKViewerTest.so.*
- #%{_libdir}/libTKXSDRAW.so.*
- #%{_libdir}/libTKDCAF.so.*
- #%{_libdir}/libTKXDEDRAW.so.*
- #%{_libdir}/libTKTObjDRAW.so.*
- # DRAWEXE application
- #%{_bindir}/DRAWEXE
- %files devel
- %doc examples
- %{_includedir}/*
- %{_libdir}/*.so
- %{_libdir}/oce-%{version}/
- %changelog
- * Tue Nov 08 2011 Richard Shaw <hobbes1069@gmail.com> - 0.7.0-1
- - Initial release.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement