Advertisement
hobbes1069

OCE Spec

Nov 11th, 2011
2,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name:           OCE
  2. Version:        0.7.0
  3. Release:        1%{?dist}
  4. Summary:        Open CASCADE Community Edition
  5.  
  6. License:        Open CASCADE Technology Public License
  7. URL:            https://github.com/tpaviot/oce
  8. Source0:        https://github.com/tpaviot/oce/tarball/%{name}-%{version}.tar.gz
  9.  
  10. Patch0:         OCE-0.7.0-LIB_SUFFIX.patch
  11.  
  12. BuildRequires:  cmake
  13. BuildRequires:  xorg-x11-proto-devel
  14. BuildRequires:  mesa-libGL-devel
  15. BuildRequires:  libXmu-devel
  16. BuildRequires:  ftgl-devel
  17. BuildRequires:  freeimage-devel
  18. BuildRequires:  gl2ps-devel
  19. %if 0%{?fedora} > 15
  20. BuildRequires:  tbb-devel
  21. %endif
  22. BuildRequires:  tcl-devel
  23. BuildRequires:  tk-devel
  24.  
  25. #Requires:      
  26.  
  27. %description
  28. OpenCASCADE Community Edition (OCE) is a suite for 3D surface and solid
  29. modeling, visualization, data exchange and rapid application development. It
  30. is an excellent platform for development of numerical simulation software
  31. including CAD/CAM/CAE, AEC and GIS, as well as PDM applications.
  32.  
  33.  
  34. %package foundation
  35. Summary:        OpenCASCADE CAE platform shared libraries
  36. Group:          System Environment/Libraries
  37.  
  38. %description foundation
  39. OpenCASCADE CAE platform shared libraries
  40.  
  41. This package contains foundation classes which provide a variety of
  42. general-purpose services such as automated management of heap memory,
  43. exception handling, classes for manipulating aggregates of data, basic
  44. math tools.
  45.  
  46.  
  47. %package modeling
  48. Summary:        OpenCASCADE CAE platform shared libraries
  49. Group:          System Environment/Libraries
  50.  
  51. %description modeling
  52. OpenCASCADE CAE platform shared libraries
  53.  
  54. This package supplies data structures to represent 2D and 3D geometric models,
  55. as well as topological and geometrical algorithms.
  56.  
  57.  
  58. %package ocaf
  59. Summary:        OpenCASCADE CAE platform shared libraries
  60. Group:          System Environment/Libraries
  61.  
  62. %description ocaf
  63. OpenCASCADE CAE platform shared libraries
  64.  
  65. This package provides OpenCASCADE Application Framework services and
  66. support for data exchange.
  67.  
  68.  
  69. %package visualization
  70. Summary:        OpenCASCADE CAE platform shared libraries
  71. Group:          System Environment/Libraries
  72.  
  73. %description visualization
  74. OpenCASCADE CAE platform shared libraries
  75.  
  76. This package provides services for displaying 2D and 3D graphics.
  77.  
  78.  
  79. %package examples
  80. Summary:        OpenCASCADE CAE platform shared libraries
  81. Group:          System Environment/Libraries
  82.  
  83. %description examples
  84. OpenCASCADE CAE platform shared libraries
  85.  
  86. This package contains example input files for OpenCASCADE in various formats.
  87.  
  88. %package devel
  89. Summary:        OpenCASCADE CAE platform library development files
  90. Group:          Development/Libraries
  91. Requires:       %{name}-foundation%{?_isa} = %{version}-%{release}
  92. Requires:       %{name}-modeling%{?_isa} = %{version}-%{release}
  93. Requires:       %{name}-ocaf%{?_isa} = %{version}-%{release}
  94. Requires:       %{name}-visualization%{?_isa} = %{version}-%{release}
  95.  
  96. %description devel
  97. OpenCASCADE CAE platform library development files
  98.  
  99.  
  100. %prep
  101. %setup -q -n tpaviot-oce-a384024
  102.  
  103. %patch0 -p1
  104.  
  105. # Convert files to utf8
  106. iconv --from=ISO-8859-1 --to=UTF-8 LICENSE.txt > LICENSE.txt.new && \
  107. touch -r LICENSE.txt LICENSE.txt.new && \
  108. mv LICENSE.txt.new LICENSE.txt
  109.  
  110.  
  111. %build
  112. rm -rf build && mkdir build && pushd build
  113.  
  114. %cmake -DOCE_INSTALL_PREFIX=%{_prefix} \
  115.        -DOCE_INSTALL_LIB_DIR=%{_libdir} \
  116.        -DOCE_WITH_FREEIMAGE=ON \
  117.        -DOCE_WITH_GL2PS=ON \
  118.        -DCMAKE_SKIP_RPATH=ON \
  119. %if 0%{?fedora} > 15
  120.        -DOCE_MULTITHREAD_LIBRARY:STRING=TBB \
  121. %endif
  122.        ../
  123.  
  124. make %{?_smp_mflags}
  125.  
  126.  
  127. %install
  128. pushd build
  129. make install DESTDIR=%{buildroot}
  130.  
  131.  
  132. %post foundation -p /sbin/ldconfig
  133. %postun foundation -p /sbin/ldconfig
  134.  
  135. %post modeling -p /sbin/ldconfig
  136. %postun modeling -p /sbin/ldconfig
  137.  
  138. %post ocaf -p /sbin/ldconfig
  139. %postun ocaf -p /sbin/ldconfig
  140.  
  141. %post visualization -p /sbin/ldconfig
  142. %postun visualization -p /sbin/ldconfig
  143.  
  144.  
  145. %files
  146. %doc AUTHORS LICENSE.txt NEWS
  147. %{_datadir}/oce-%{version}/
  148.  
  149. %files foundation
  150. # Foundation
  151. %{_libdir}/libTKernel.so.*
  152. %{_libdir}/libTKMath.so.*
  153. %{_libdir}/libTKAdvTools.so.*
  154.  
  155. %files modeling
  156. # Modeling Data
  157. %{_libdir}/libTKG2d.so.*
  158. %{_libdir}/libTKG3d.so.*
  159. %{_libdir}/libTKGeomBase.so.*
  160. %{_libdir}/libTKBRep.so.*
  161. # Modeling Algorithms
  162. %{_libdir}/libTKGeomAlgo.so.*
  163. %{_libdir}/libTKTopAlgo.so.*
  164. %{_libdir}/libTKPrim.so.*
  165. %{_libdir}/libTKBO.so.*
  166. %{_libdir}/libTKHLR.so.*
  167. %{_libdir}/libTKMesh.so.*
  168. %{_libdir}/libTKShHealing.so.*
  169. %{_libdir}/libTKXMesh.so.*
  170. %{_libdir}/libTKBool.so.*
  171. %{_libdir}/libTKFillet.so.*
  172. %{_libdir}/libTKFeat.so.*
  173. %{_libdir}/libTKOffset.so.*
  174. # Data exchange
  175. %{_libdir}/libTKSTL.so.*
  176. %{_libdir}/libTKXSBase.so.*
  177. %{_libdir}/libTKSTEPBase.so.*
  178. %{_libdir}/libTKIGES.so.*
  179. %{_libdir}/libTKSTEPAttr.so.*
  180. %{_libdir}/libTKSTEP209.so.*
  181. %{_libdir}/libTKSTEP.so.*
  182. %{_libdir}/libTKVRML.so.*
  183. %{_libdir}/libTKXCAF.so.*
  184. %{_libdir}/libTKXCAFSchema.so.*
  185. %{_libdir}/libTKXmlXCAF.so.*
  186. %{_libdir}/libTKBinXCAF.so.*
  187. %{_libdir}/libTKXDEIGES.so.*
  188. %{_libdir}/libTKXDESTEP.so.*
  189.  
  190. %files visualization
  191. # Visualization Dependents
  192. %{_libdir}/libTKService.so.*
  193. %{_libdir}/libTKV2d.so.*
  194. %{_libdir}/libTKV3d.so.*
  195. # Visualization
  196. %{_libdir}/libTKOpenGl.so.*
  197. %{_libdir}/libTKMeshVS.so.*
  198. %{_libdir}/libTKNIS.so.*
  199. %{_libdir}/libTKVoxel.so.*
  200.  
  201. %files ocaf
  202. # Application framework
  203. %{_libdir}/libTKCDF.so.*
  204. %{_libdir}/libPTKernel.so.*
  205. %{_libdir}/libTKLCAF.so.*
  206. %{_libdir}/libFWOSPlugin.so.*
  207. %{_libdir}/libTKPShape.so.*
  208. %{_libdir}/libTKBinL.so.*
  209. %{_libdir}/libTKXmlL.so.*
  210. %{_libdir}/libTKPLCAF.so.*
  211. %{_libdir}/libTKTObj.so.*
  212. %{_libdir}/libTKShapeSchema.so.*
  213. %{_libdir}/libTKStdLSchema.so.*
  214. %{_libdir}/libTKCAF.so.*
  215. %{_libdir}/libTKBin.so.*
  216. %{_libdir}/libTKXml.so.*
  217. %{_libdir}/libTKPCAF.so.*
  218. %{_libdir}/libTKBinTObj.so.*
  219. %{_libdir}/libTKXmlTObj.so.*
  220. %{_libdir}/libTKStdSchema.so.*
  221.  
  222. #%files draw
  223. # Draw
  224. #%{_libdir}/libTKDraw.so.*
  225. #%{_libdir}/libTKTopTest.so.*
  226. #%{_libdir}/libTKViewerTest.so.*
  227. #%{_libdir}/libTKXSDRAW.so.*
  228. #%{_libdir}/libTKDCAF.so.*
  229. #%{_libdir}/libTKXDEDRAW.so.*
  230. #%{_libdir}/libTKTObjDRAW.so.*
  231. # DRAWEXE application
  232. #%{_bindir}/DRAWEXE
  233.  
  234. %files devel
  235. %doc examples
  236. %{_includedir}/*
  237. %{_libdir}/*.so
  238. %{_libdir}/oce-%{version}/
  239.  
  240.  
  241. %changelog
  242. * Tue Nov 08 2011 Richard Shaw <hobbes1069@gmail.com> - 0.7.0-1
  243. - Initial release.
  244.  
  245.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement