Author: hobbes1069
Update of /cvs/nonfree/rpms/OCE/F-15
In directory se02.es.rpmfusion.net:/tmp/cvs-serv19038
Modified Files:
sources
Added Files:
DRAWEXE.1 OCE-0.8.0-env.patch OCE.spec oce-32.png oce-48.png
oce-96.png opencascade-draw.desktop
Log Message:
* Mon Dec 19 2011 Richard Shaw <hobbes1069(a)gmail.com> - 0.8.0-2
- Build against OpenMP for parallelization.
- Fix problem with OCE overriding build flags.
--- NEW FILE DRAWEXE.1 ---
.TH DRAWEXE 1 "OpenCASCADE test harness" "DEBIAN" \" -*- nroff
-*-
.SH NAME
DRAWEXE \- OpenCASCADE test harness
.SH SYNOPSIS
\fBDRAWEXE\fP
.SH DESCRIPTION
This program provides a kind of scripting interface to the OpenCASCADE
libraries. You can perform a simple test by starting it and entering at the
command line: "pload ALL" then "source
/usr/share/opencascade/6.5.0/src/DrawResources/VisualizationDemo.tcl".
.SH AUTHOR
Adam Powell <hazelsct(a)debian.org>
OCE-0.8.0-env.patch:
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE OCE-0.8.0-env.patch ---
CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6caf4bf..7360edb 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -800,7 +800,7 @@ ELSE(WIN32)
${${PROJECT_NAME}_BINARY_DIR}/env.sh
)
ENDIF(WIN32)
-INSTALL(FILES ${ENV_SCRIPTS}
+INSTALL(PROGRAMS ${ENV_SCRIPTS}
DESTINATION ${${PROJECT_NAME}_INSTALL_SCRIPT_DIR})
FILE(GLOB header_files ${${PROJECT_NAME}_SOURCE_DIR}/inc/*.*)
--- NEW FILE OCE.spec ---
%global githash1 gc4c7d83
%global githash2 de78904
#global relcan 1
Name: OCE
Version: 0.8.0
Release: 2%{?relcan:.rc%{relcan}}%{?dist}
Summary: OpenCASCADE Community Edition
License: Open CASCADE Technology Public License
URL:
https://github.com/tpaviot/oce
# Github source! Archive was generated on the fly with the following URL:
#
https://github.com/tpaviot/oce/tarball/OCE-0.8.0
Source0:
tpaviot-oce-%{name}-%{version}%{?relcan:-rc%{relcan}}-0-%{githash1}.tar.gz
Patch0: OCE-0.8.0-env.patch
Source1: DRAWEXE.1
Source2: opencascade-draw.desktop
Source3: oce-96.png
Source4: oce-48.png
Source5: oce-32.png
# Utilities
BuildRequires: cmake
BuildRequires: desktop-file-utils
# Librraies
BuildRequires: xorg-x11-proto-devel
BuildRequires: mesa-libGL-devel mesa-libGLU-devel
BuildRequires: libXmu-devel
BuildRequires: ftgl-devel
BuildRequires: freeimage-devel
BuildRequires: gl2ps-devel
BuildRequires: libgomp
BuildRequires: tcl-devel
BuildRequires: tk-devel
%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 draw
Summary: OpenCASCADE CAE platform shared libraries
Group: System Environment/Libraries
%description draw
OpenCASCADE CAE DRAW test harness.
%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-%{githash2}
%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
LDFLAGS="-Wl,--as-needed";export LDFLAGS
%cmake -DOCE_BUILD_TYPE=RelWithDebInfo \
-DOCE_INSTALL_PREFIX=%{_prefix} \
-DOCE_INSTALL_LIB_DIR=%{_lib} \
-DOCE_WITH_FREEIMAGE=ON \
-DOCE_WITH_GL2PS=ON \
-DOCE_MULTITHREAD_LIBRARY:STRING=OPENMP \
-DOCE_DRAW=on \
../
make %{?_smp_mflags}
%install
pushd build
make install DESTDIR=%{buildroot}
# Remove empty .gxx files
find %{buildroot}%{_includedir} -name "*.gxx" -exec rm -f {} \;
# Install manpage for DRAWEXE
install -Dm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/DRAWEXE.1
# Install and validate desktop file
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE2}
# Install icons
install -Dm 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/oce.png
install -Dm 0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/oce.png
install -Dm 0644 %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/oce.png
%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
%post draw
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun draw
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans draw
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files foundation
%doc AUTHORS LICENSE.txt NEWS
# Foundation
%{_libdir}/libTKernel.so.*
%{_libdir}/libTKMath.so.*
%{_libdir}/libTKAdvTools.so.*
%{_datadir}/oce-%{version}%{?relcan:-rc%{relcan}}/
%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}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKDraw.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKTopTest.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKViewerTest.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKXSDRAW.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKDCAF.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKXDEDRAW.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/libTKTObjDRAW.so.*
# DRAWEXE application
%{_bindir}/DRAWEXE
%{_mandir}/man1/DRAWEXE.1.gz
%{_datadir}/applications/opencascade-draw.desktop
%{_datadir}/icons/hicolor/*/apps/*
%files devel
%doc examples
%{_includedir}/*
%{_libdir}/*.so
%exclude %{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/*.so.*
%{_libdir}/oce-%{version}%{?relcan:-rc%{relcan}}/
%changelog
* Mon Dec 19 2011 Richard Shaw <hobbes1069(a)gmail.com> - 0.8.0-2
- Build against OpenMP for parallelization.
- Fix problem with OCE overriding build flags.
* Mon Dec 12 2011 Richard Shaw <hobbes1069(a)gmail.com> - 0.8.0-1
- Update to 0.8.0.
- Use %%{buildroot} consistently.
- Fix excess linking.
* Tue Nov 08 2011 Richard Shaw <hobbes1069(a)gmail.com> - 0.7.0-1
- Initial release.
--- NEW FILE opencascade-draw.desktop ---
[Desktop Entry]
Name=OpenCASCADE Draw
Comment=OpenCASCADE DRAWEXE test harness
Exec=DRAWEXE
Icon=oce
Terminal=true
Type=Application
Version=1.0
Categories=ConsoleOnly;Graphics;3DGraphics;DataVisualization;Education;Science;
StartupNotify=false
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/OCE/F-15/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 Dec 2011 23:05:08 -0000 1.1
+++ sources 25 Dec 2011 02:47:07 -0000 1.2
@@ -0,0 +1 @@
+1ba89636b120b07bd72f18cf699425cd tpaviot-oce-OCE-0.8.0-0-gc4c7d83.tar.gz