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
20 Patch0: %{name}6.3.0-obs-check.patch
21 Patch1: %{name}6.3.0-strcmp.patch
22 Patch2: OpenCASCADE6.3.0-occ6.3.0.patch
23 Patch3: OpenCASCADE6.3.0-casroot.patch
24 Patch5: OpenCASCADE6.3.0-tkernel-ld.patch
25 Patch6: OpenCASCADE6.3.0-mft-disable-mmap.patch
26 Patch7: OpenCASCADE6.3.0-no-bitmaps-icon.patch
27 Patch8: %{name}6.3.0-DESTDIR.patch
28 Patch9: OpenCASCADE6.3.0-maint-mode.patch
29 Patch10: OpenCASCADE6.3.0-dep-libs.patch
30 Patch11: OpenCASCADE6.3.0-move-vrml-vis.patch
31 Patch14: OpenCASCADE6.3.0-wok-install.patch
32 Patch15: OpenCASCADE6.3.0-udlist.patch
33 Patch16: OpenCASCADE6.3.0-WOKUnix_FDescr.patch
34 URL: http://www.opencascade.org/
35 BuildRequires: autoconf
36 BuildRequires: automake
39 BuildRequires: java-sun-jdk-base
40 BuildRequires: libstdc++-devel
41 BuildRequires: libtool
42 BuildRequires: Mesa-libGLU-devel
43 BuildRequires: tk-devel
44 BuildRequires: xorg-lib-libX11-devel
45 BuildRequires: xorg-lib-libXmu-devel
46 BuildRequires: xorg-proto-xproto-devel
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
51 exchange and rapid application development. It is an excellent platform for
52 development of numerical simulation software including CAD/CAM/CAE, AEC and
53 GIS, as well as PDM applications.
56 Summary: OpenCASCADE shared libraries
60 OpenCASCADE shared libraries.
63 Summary: OpenCASCADE development files
64 Group: Development/Libraries
65 Requires: %{name}-libs = %{version}-%{release}
68 OpenCASCADE development files.
71 Summary: OpenCASCADE documentation
75 OpenCASCADE help and html documentation.
78 Summary: OpenCASCADE examples
85 %setup -q -n %{name}%{version}
101 bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
102 flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
103 mv ExprIntrp.tab.h ../../inc/
104 cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
115 export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
116 export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
118 export CFLAGS="%{rpmcflags} -fno-strict-aliasing"
119 export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
121 LDFLAGS=-lpthread %configure \
124 --enable-production \
128 --with-java-include="%{java_home}"/include
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT%{_includedir}
138 DESTDIR=$RPM_BUILD_ROOT
141 cp -a data $RPM_BUILD_ROOT%{_datadir}/%{name}
142 cp -a doc %{buildroot}%{_prefix}/
143 cp -a samples %{buildroot}%{_prefix}/
145 mv $RPM_BUILD_ROOT{%{_prefix}/inc,%{_includedir}/%{name}}
146 rm -r $RPM_BUILD_ROOT%{_prefix}/{Linux,lin}
148 %post -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
152 rm -rf $RPM_BUILD_ROOT
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/DRAWEXE
157 %attr(755,root,root) %{_bindir}/wok*
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/*.so.*.*.*
162 %attr(755,root,root) %ghost %{_libdir}/*.so.0
165 %dir %{_prefix}/wok/lib/
166 %dir %{_prefix}/wok/site/
170 %dir %{_libdir}/opencas/
171 %dir /usr/share/opencascade/
175 %{_prefix}/wok/site/*
177 %{_prefix}/env_DRAW.sh
178 %{_libdir}/opencas/*.so
179 /usr/share/opencascade/%{version}
180 /usr/share/doc/packages/opencascade
181 %config /etc/ld.so.conf.d/%name.conf
182 %dir %{_prefix}/src/UnitsAPI
184 %{_prefix}/src/UnitsAPI/*.dat
187 %defattr(644,root,root,755)
188 %{_includedir}/%{name}
190 %attr(755,root,root) %{_libdir}/*.so
192 %{_libdir}/opencas/*.la
197 %dir %{_prefix}/samples
199 %exclude %{_prefix}/src/UnitsAPI/*.dat