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 Group: Productivity/Other
14 # The 6.3.1 is a maintenance release, only available for OCC customers
17 License: LGPL-like, see http://www.opencascade.org/occ/license/
18 Packager: Andrea Florio <andrea@opensuse.org>
19 Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
20 # Source0-md5: 52778127974cb3141c2827f9d40d1f11
22 Source2: OpenCASCADE-rpmlintrc
23 Patch0: %{name}6.3.0-obs-check.patch
24 Patch1: %{name}6.3.0-strcmp.patch
25 Patch2: OpenCASCADE6.3.0-occ6.3.0.patch
26 Patch3: OpenCASCADE6.3.0-casroot.patch
27 Patch4: OpenCASCADE6.3.0-lib-release.patch
28 Patch5: OpenCASCADE6.3.0-tkernel-ld.patch
29 Patch6: OpenCASCADE6.3.0-mft-disable-mmap.patch
30 Patch7: OpenCASCADE6.3.0-no-bitmaps-icon.patch
31 Patch8: %{name}6.3.0-DESTDIR.patch
32 Patch9: OpenCASCADE6.3.0-maint-mode.patch
33 Patch10: OpenCASCADE6.3.0-dep-libs.patch
34 Patch11: OpenCASCADE6.3.0-move-vrml-vis.patch
35 Patch12: OpenCASCADE6.3.0-make-wok-libs-private.patch
36 Patch13: OpenCASCADE6.3.0-make-draw-libs-private.patch
37 Patch14: OpenCASCADE6.3.0-wok-install.patch
38 Patch15: OpenCASCADE6.3.0-udlist.patch
39 Patch16: OpenCASCADE6.3.0-WOKUnix_FDescr.patch
40 URL: http://www.opencascade.org/
41 BuildRequires: autoconf
42 BuildRequires: automake
43 BuildRequires: libstdc++-devel
44 BuildRequires: libtool
45 BuildRequires: Mesa-libGLU-devel
46 BuildRequires: bison flex tcl-devel tk-devel
50 BuildRequires: compat-32bit
52 BuildRequires: java-1_5_0-gcj-compat-devel
53 BuildRequires: xorg-lib-libX11-devel
54 BuildRequires: xorg-lib-libXmu-devel
55 BuildRequires: xorg-proto-xproto-devel
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
61 exchange and rapid application development. It is an excellent platform for
62 development of numerical simulation software including CAD/CAM/CAE, AEC and
63 GIS, as well as PDM applications.
66 Group: Development/Libraries/C and C++
67 Summary: Devel package for %{name}
68 Requires: %{name} = %{version}
71 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
72 exchange and rapid application development. It is an excellent platform for
73 development of numerical simulation software including CAD/CAM/CAE, AEC and
74 GIS, as well as PDM applications.
77 %setup -q -n %{name}%{version}
105 bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
106 flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
107 mv ExprIntrp.tab.h ../../inc/
108 cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
111 export CFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
112 export CXXFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
114 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
115 export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
117 LDFLAGS=-lpthread %configure \
118 --with-gl-include=/usr/include \
119 --with-gl-library=/usr/%{_lib} \
120 --with-xmu-include=/usr/include/X11 \
121 --with-xmu-library=/usr/%{_lib} \
122 --with-tcl=/usr/%{_lib} \
123 --with-tk=/usr/%{_lib} \
126 --enable-production \
134 rm -rf $RPM_BUILD_ROOT
138 DESTDIR=$RPM_BUILD_ROOT
141 cp -a data %{buildroot}%{_prefix}/
142 cp -a doc %{buildroot}%{_prefix}/
143 cp -a samples %{buildroot}%{_prefix}/
146 %__ln_s %{_libdir} %{buildroot}/%{_prefix}/Linux/lib
147 %__ln_s %{_libdir} %{buildroot}/%{_prefix}/lin/lib
150 # add symlinks for compatibility resons
151 %__mkdir -p %{buildroot}/usr/share/opencascade/
152 %__mkdir -p %{buildroot}/usr/include/
153 %__mkdir -p %{buildroot}/usr/share/doc/packages/
154 %__mkdir -p %{buildroot}/usr/%{_lib}
156 %__ln_s %{_prefix} %{buildroot}/usr/share/opencascade/%{version}
157 %__ln_s %{_prefix}/inc %{buildroot}/usr/include/opencascade
158 %__ln_s %{_prefix}/doc %{buildroot}/usr/share/doc/packages/opencascade
159 `for i in $(ls %{buildroot}/%{_libdir}); do %__ln_s %{_libdir}/$i %{buildroot}/usr/%{_lib}/$i; done`
161 %__mkdir -p %buildroot/etc/ld.so.conf.d/
162 %__cp %SOURCE1 %buildroot/etc/ld.so.conf.d/
164 %post -p /sbin/ldconfig
165 %postun -p /sbin/ldconfig
168 rm -rf $RPM_BUILD_ROOT
171 %defattr(644,root,root,755)
175 %dir %{_prefix}/Linux
177 %dir %{_prefix}/wok/lib/
178 %dir %{_prefix}/wok/site/
182 %dir %{_libdir}/opencas/
183 %dir /usr/share/opencascade/
185 %{_bindir}/wokprocess
194 %{_prefix}/wok/site/*
196 %{_prefix}/env_DRAW.sh
198 %{_libdir}/opencas/*.so
200 /usr/share/opencascade/%{version}
201 /usr/share/doc/packages/opencascade
202 %config /etc/ld.so.conf.d/%name.conf
203 %dir %{_prefix}/src/UnitsAPI
205 %{_prefix}/src/UnitsAPI/*.dat
208 %defattr(644,root,root,755)
209 %dir /usr/include/opencascade/
211 %{_libdir}/opencas/*.la
216 %dir %{_prefix}/samples
218 %exclude %{_prefix}/src/UnitsAPI/*.dat