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 # NOTE: there are some not PLD-relevant patches available:
12 # - MIPS: http://git.debian.org/?p=debian-science/packages/opencascade.git;a=blob;f=debian/patches/fix-asm.patch
13 # - kFreeBSD/Hurd: http://git.debian.org/?p=debian-science/packages/opencascade.git;a=blob;f=debian/patches/fix-osd_path.patch
15 # TODO: separate libs-x (80% of libraries)
17 Summary: OpenCASCADE CAE platform
19 # The 6.3.1 is a maintenance release, only available for OCC customers
22 License: LGPL-like, see http://www.opencascade.org/occ/license/
23 Group: Applications/Engineering
24 Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
25 # Source0-md5: 52778127974cb3141c2827f9d40d1f11
26 Patch0: %{name}6.3.0-obs-check.patch
27 Patch1: %{name}6.3.0-strcmp.patch
28 Patch2: %{name}6.3.0-occ6.3.0.patch
29 Patch3: %{name}6.3.0-casroot.patch
30 Patch4: wokstep_extract.patch
31 Patch5: OpenCASCADE6.3.0-tkernel-ld.patch
32 Patch6: %{name}6.3.0-mft-disable-mmap.patch
33 Patch7: %{name}6.3.0-no-bitmaps-icon.patch
34 Patch8: %{name}6.3.0-DESTDIR.patch
35 Patch9: OpenCASCADE6.3.0-maint-mode.patch
36 Patch10: OpenCASCADE6.3.0-dep-libs.patch
37 Patch11: %{name}6.3.0-move-vrml-vis.patch
38 Patch12: %{name}6.3.0-make-wok-libs-private.patch
39 Patch13: %{name}6.3.0-make-draw-libs-private.patch
40 Patch14: OpenCASCADE6.3.0-wok-install.patch
41 Patch15: %{name}6.3.0-udlist.patch
42 Patch16: %{name}6.3.0-WOKUnix_FDescr.patch
43 Patch17: fix-tklcaf.patch
44 URL: http://www.opencascade.org/
45 BuildRequires: autoconf
46 BuildRequires: automake
50 BuildRequires: java-sun-jdk-base
52 BuildRequires: libstdc++-devel
53 BuildRequires: libtool
54 BuildRequires: Mesa-libGLU-devel
55 BuildRequires: tk-devel
56 BuildRequires: xorg-lib-libX11-devel
57 BuildRequires: xorg-lib-libXmu-devel
58 BuildRequires: xorg-proto-xproto-devel
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
63 exchange and rapid application development. It is an excellent platform for
64 development of numerical simulation software including CAD/CAM/CAE, AEC and
65 GIS, as well as PDM applications.
68 Summary: OpenCASCADE shared libraries
72 OpenCASCADE shared libraries.
75 Summary: OpenCASCADE development files
76 Group: Development/Libraries
77 Requires: %{name}-libs = %{version}-%{release}
80 OpenCASCADE development files.
83 Summary: OpenCASCADE documentation
87 OpenCASCADE help and html documentation.
90 Summary: OpenCASCADE samples
97 %setup -q -n %{name}%{version}
117 bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
118 flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
119 mv ExprIntrp.tab.h ../../inc/
120 cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
131 export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
132 export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
134 export CFLAGS="%{rpmcflags} -fno-strict-aliasing"
135 export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
137 LDFLAGS=-lpthread %configure \
138 %{?debug:--disable-production --enable-debug} \
139 %{!?debug:--enable-production --disable-debug} \
140 --with-java-include="%{java_home}"/include
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_includedir}}
150 DESTDIR=$RPM_BUILD_ROOT
153 cp -a data $RPM_BUILD_ROOT%{_datadir}/%{name}
154 mv $RPM_BUILD_ROOT{%{_prefix}/{src,wok,config.h,env_DRAW.sh},%{_datadir}/%{name}}
155 mv $RPM_BUILD_ROOT{%{_prefix}/inc,%{_includedir}/%{name}}
156 rm -r $RPM_BUILD_ROOT%{_prefix}/{Linux,lin}
158 mkdir -p $RPM_BUILD_ROOT/usr/src
159 for i in doc samples; do
161 [ -d $i ] && mv $i $i-i/%{name}-%{version} || :
163 ln -s %{_builddir}/%{name}%{version}/doc-i $RPM_BUILD_ROOT%{_defaultdocdir}
164 ln -s %{_builddir}/%{name}%{version}/samples-i $RPM_BUILD_ROOT%{_examplesdir}
166 %post libs -p /sbin/ldconfig
167 %postun libs -p /sbin/ldconfig
170 rm -rf $RPM_BUILD_ROOT
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/DRAWEXE
175 %attr(755,root,root) %{_bindir}/wok*
176 %dir %{_datadir}/%{name}
177 %{_datadir}/%{name}/config.h
178 %{_datadir}/%{name}/data
179 %attr(755,root,root) %{_datadir}/%{name}/env_DRAW.sh
180 %dir %{_datadir}/%{name}/src
181 %dir %{_datadir}/%{name}/src/UnitsAPI
182 %{_datadir}/%{name}/src/UnitsAPI/*.dat
183 %{_datadir}/%{name}/wok
184 %dir %{_libdir}/opencas
185 %attr(755,root,root) %{_libdir}/opencas/*.so.*.*.*
186 %attr(755,root,root) %ghost %{_libdir}/opencas/*.so.0
189 %defattr(644,root,root,755)
190 %doc LICENSE ros/README.txt
191 %attr(755,root,root) %{_libdir}/*.so.*.*.*
192 %attr(755,root,root) %ghost %{_libdir}/*.so.0
195 %defattr(644,root,root,755)
196 %{_includedir}/%{name}
197 %{_libdir}/opencas/*.la
199 %attr(755,root,root) %{_libdir}/opencas/*.so
200 %attr(755,root,root) %{_libdir}/*.so
201 %{_datadir}/%{name}/src/*
202 %exclude %{_datadir}/%{name}/src/UnitsAPI/*.dat
205 %defattr(644,root,root,755)
206 %{_docdir}/%{name}-%{version}
209 %defattr(644,root,root,755)
210 %{_examplesdir}/%{name}-%{version}