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: java-sun-jdk-base
44 BuildRequires: libstdc++-devel
45 BuildRequires: libtool
46 BuildRequires: Mesa-libGLU-devel
47 BuildRequires: tk-devel
48 BuildRequires: bison flex tcl-devel tk-devel
52 BuildRequires: compat-32bit
54 BuildRequires: xorg-lib-libX11-devel
55 BuildRequires: xorg-lib-libXmu-devel
56 BuildRequires: xorg-proto-xproto-devel
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
62 exchange and rapid application development. It is an excellent platform for
63 development of numerical simulation software including CAD/CAM/CAE, AEC and
64 GIS, as well as PDM applications.
67 Group: Development/Libraries/C and C++
68 Summary: Devel package for %{name}
69 Requires: %{name} = %{version}
72 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
73 exchange and rapid application development. It is an excellent platform for
74 development of numerical simulation software including CAD/CAM/CAE, AEC and
75 GIS, as well as PDM applications.
78 %setup -q -n %{name}%{version}
106 bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
107 flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
108 mv ExprIntrp.tab.h ../../inc/
109 cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
112 export CFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
113 export CXXFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
115 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
116 export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
118 LDFLAGS=-lpthread %configure \
121 --enable-production \
125 --with-java-include=/usr/lib64/jvm/java/include
130 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
137 cp -a data %{buildroot}%{_prefix}/
138 cp -a doc %{buildroot}%{_prefix}/
139 cp -a samples %{buildroot}%{_prefix}/
142 %__ln_s %{_libdir} %{buildroot}/%{_prefix}/Linux/lib
143 %__ln_s %{_libdir} %{buildroot}/%{_prefix}/lin/lib
146 # add symlinks for compatibility resons
147 %__mkdir -p %{buildroot}/usr/share/opencascade/
148 %__mkdir -p %{buildroot}/usr/include/
149 %__mkdir -p %{buildroot}/usr/share/doc/packages/
150 %__mkdir -p %{buildroot}/usr/%{_lib}
152 %__ln_s %{_prefix} %{buildroot}/usr/share/opencascade/%{version}
153 %__ln_s %{_prefix}/inc %{buildroot}/usr/include/opencascade
154 %__ln_s %{_prefix}/doc %{buildroot}/usr/share/doc/packages/opencascade
155 `for i in $(ls %{buildroot}/%{_libdir}); do %__ln_s %{_libdir}/$i %{buildroot}/usr/%{_lib}/$i; done`
157 %__mkdir -p %buildroot/etc/ld.so.conf.d/
158 %__cp %SOURCE1 %buildroot/etc/ld.so.conf.d/
160 %post -p /sbin/ldconfig
161 %postun -p /sbin/ldconfig
164 rm -rf $RPM_BUILD_ROOT
167 %defattr(644,root,root,755)
171 %dir %{_prefix}/Linux
173 %dir %{_prefix}/wok/lib/
174 %dir %{_prefix}/wok/site/
178 %dir %{_libdir}/opencas/
179 %dir /usr/share/opencascade/
181 %{_bindir}/wokprocess
190 %{_prefix}/wok/site/*
192 %{_prefix}/env_DRAW.sh
194 %{_libdir}/opencas/*.so
196 /usr/share/opencascade/%{version}
197 /usr/share/doc/packages/opencascade
198 %config /etc/ld.so.conf.d/%name.conf
199 %dir %{_prefix}/src/UnitsAPI
201 %{_prefix}/src/UnitsAPI/*.dat
204 %defattr(644,root,root,755)
205 %dir /usr/include/opencascade/
207 %{_libdir}/opencas/*.la
212 %dir %{_prefix}/samples
214 %exclude %{_prefix}/src/UnitsAPI/*.dat