2 # All modifications and additions to the file contributed by third parties
3 # remain the property of their copyright owners, unless otherwise agreed
4 # upon. The license for this file, and modifications and additions to the
5 # file, is the same license as for the pristine package itself (unless the
6 # license for the pristine package is not an Open Source License, in which
7 # case the license is the MIT License). An "Open Source License" is a
8 # license that conforms to the Open Source Definition (Version 1.9)
9 # published by the Open Source Initiative.
11 Summary: OpenCASCADE CAE platform
13 # The 6.3.1 is a maintenance release, only available for OCC customers
16 License: LGPL-like, see http://www.opencascade.org/occ/license/
17 Group: Applications/Engineering
18 Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
19 # Source0-md5: 52778127974cb3141c2827f9d40d1f11
21 Patch0: %{name}6.3.0-obs-check.patch
22 Patch1: %{name}6.3.0-strcmp.patch
23 Patch2: OpenCASCADE6.3.0-occ6.3.0.patch
24 Patch3: OpenCASCADE6.3.0-casroot.patch
25 Patch4: OpenCASCADE6.3.0-lib-release.patch
26 Patch5: OpenCASCADE6.3.0-tkernel-ld.patch
27 Patch6: OpenCASCADE6.3.0-mft-disable-mmap.patch
28 Patch7: OpenCASCADE6.3.0-no-bitmaps-icon.patch
29 Patch8: %{name}6.3.0-DESTDIR.patch
30 Patch9: OpenCASCADE6.3.0-maint-mode.patch
31 Patch10: OpenCASCADE6.3.0-dep-libs.patch
32 Patch11: OpenCASCADE6.3.0-move-vrml-vis.patch
33 Patch12: OpenCASCADE6.3.0-make-wok-libs-private.patch
34 Patch13: OpenCASCADE6.3.0-make-draw-libs-private.patch
35 Patch14: OpenCASCADE6.3.0-wok-install.patch
36 Patch15: OpenCASCADE6.3.0-udlist.patch
37 Patch16: OpenCASCADE6.3.0-WOKUnix_FDescr.patch
38 URL: http://www.opencascade.org/
39 BuildRequires: autoconf
40 BuildRequires: automake
43 BuildRequires: java-sun-jdk-base
44 BuildRequires: libstdc++-devel
45 BuildRequires: libtool
46 BuildRequires: Mesa-libGLU-devel
47 BuildRequires: tk-devel
48 BuildRequires: xorg-lib-libX11-devel
49 BuildRequires: xorg-lib-libXmu-devel
50 BuildRequires: xorg-proto-xproto-devel
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
55 exchange and rapid application development. It is an excellent platform for
56 development of numerical simulation software including CAD/CAM/CAE, AEC and
57 GIS, as well as PDM applications.
60 Summary: OpenCASCADE shared libraries
64 OpenCASCADE shared libraries.
67 Summary: OpenCASCADE development files
68 Group: Development/Libraries
69 Requires: %{name}-libs = %{version}-%{release}
72 OpenCASCADE development files.
75 Summary: OpenCASCADE documentation
79 OpenCASCADE help and html documentation.
82 Summary: OpenCASCADE examples
89 %setup -q -n %{name}%{version}
108 bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
109 flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
110 mv ExprIntrp.tab.h ../../inc/
111 cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
122 export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
123 export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
125 export CFLAGS="%{rpmcflags} -fno-strict-aliasing"
126 export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
128 LDFLAGS=-lpthread %configure \
131 --enable-production \
135 --with-java-include="%{java_home}"/include
140 rm -rf $RPM_BUILD_ROOT
141 install -d $RPM_BUILD_ROOT%{_includedir}
145 DESTDIR=$RPM_BUILD_ROOT
148 cp -a data $RPM_BUILD_ROOT%{_datadir}/%{name}
149 cp -a doc %{buildroot}%{_prefix}/
150 cp -a samples %{buildroot}%{_prefix}/
152 mv $RPM_BUILD_ROOT{%{_prefix}/inc,%{_includedir}/%{name}}
153 rm -r $RPM_BUILD_ROOT%{_prefix}/{Linux,lin}
155 %post -p /sbin/ldconfig
156 %postun -p /sbin/ldconfig
159 rm -rf $RPM_BUILD_ROOT
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_bindir}/DRAWEXE
164 %attr(755,root,root) %{_bindir}/wok*
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/*.so.*.*.*
169 %attr(755,root,root) %ghost %{_libdir}/*.so.0
172 %dir %{_prefix}/wok/lib/
173 %dir %{_prefix}/wok/site/
177 %dir %{_libdir}/opencas/
178 %dir /usr/share/opencascade/
182 %{_prefix}/wok/site/*
184 %{_prefix}/env_DRAW.sh
185 %{_libdir}/opencas/*.so
186 /usr/share/opencascade/%{version}
187 /usr/share/doc/packages/opencascade
188 %config /etc/ld.so.conf.d/%name.conf
189 %dir %{_prefix}/src/UnitsAPI
191 %{_prefix}/src/UnitsAPI/*.dat
194 %defattr(644,root,root,755)
195 %{_includedir}/%{name}
197 %attr(755,root,root) %{_libdir}/*.so
199 %{_libdir}/opencas/*.la
204 %dir %{_prefix}/samples
206 %exclude %{_prefix}/src/UnitsAPI/*.dat