]> git.pld-linux.org Git - packages/OpenCASCADE.git/blame - OpenCASCADE.spec
- avoid versioning and weird dirs, just KISS
[packages/OpenCASCADE.git] / OpenCASCADE.spec
CommitLineData
ab499437 1#
ab499437
TP
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.
10
211fd830 11Summary: OpenCASCADE CAE platform
9d815b70 12Name: OpenCASCADE
211fd830
TP
13# The 6.3.1 is a maintenance release, only available for OCC customers
14Version: 6.3.0
ab499437 15Release: 40.3
211fd830 16License: LGPL-like, see http://www.opencascade.org/occ/license/
b22968e0 17Group: Applications/Engineering
211fd830
TP
18Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
19# Source0-md5: 52778127974cb3141c2827f9d40d1f11
9d815b70
TP
20Patch0: %{name}6.3.0-obs-check.patch
21Patch1: %{name}6.3.0-strcmp.patch
ab499437
TP
22Patch2: OpenCASCADE6.3.0-occ6.3.0.patch
23Patch3: OpenCASCADE6.3.0-casroot.patch
ab499437
TP
24Patch5: OpenCASCADE6.3.0-tkernel-ld.patch
25Patch6: OpenCASCADE6.3.0-mft-disable-mmap.patch
26Patch7: OpenCASCADE6.3.0-no-bitmaps-icon.patch
61b2b43f 27Patch8: %{name}6.3.0-DESTDIR.patch
ab499437
TP
28Patch9: OpenCASCADE6.3.0-maint-mode.patch
29Patch10: OpenCASCADE6.3.0-dep-libs.patch
30Patch11: OpenCASCADE6.3.0-move-vrml-vis.patch
ab499437
TP
31Patch14: OpenCASCADE6.3.0-wok-install.patch
32Patch15: OpenCASCADE6.3.0-udlist.patch
33Patch16: OpenCASCADE6.3.0-WOKUnix_FDescr.patch
211fd830 34URL: http://www.opencascade.org/
61b2b43f
TP
35BuildRequires: autoconf
36BuildRequires: automake
b22968e0
TP
37BuildRequires: bison
38BuildRequires: flex
869e1a31 39BuildRequires: java-sun-jdk-base
61b2b43f
TP
40BuildRequires: libstdc++-devel
41BuildRequires: libtool
42BuildRequires: Mesa-libGLU-devel
869e1a31 43BuildRequires: tk-devel
61b2b43f
TP
44BuildRequires: xorg-lib-libX11-devel
45BuildRequires: xorg-lib-libXmu-devel
46BuildRequires: xorg-proto-xproto-devel
9d815b70 47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ab499437
TP
48
49%description
50OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
51exchange and rapid application development. It is an excellent platform for
52development of numerical simulation software including CAD/CAM/CAE, AEC and
53GIS, as well as PDM applications.
54
b22968e0
TP
55%package libs
56Summary: OpenCASCADE shared libraries
57Group: Libraries
58
59%description libs
60OpenCASCADE shared libraries.
61
ab499437 62%package devel
b22968e0
TP
63Summary: OpenCASCADE development files
64Group: Development/Libraries
65Requires: %{name}-libs = %{version}-%{release}
ab499437
TP
66
67%description devel
b22968e0
TP
68OpenCASCADE development files.
69
70%package doc
71Summary: OpenCASCADE documentation
72Group: Documentation
73
74%description doc
75OpenCASCADE help and html documentation.
76
77%package examples
78Summary: OpenCASCADE examples
79Group: Documentation
80
81%description examples
82OpenCASCADE examples.
ab499437
TP
83
84%prep
85%setup -q -n %{name}%{version}
ab499437
TP
86%patch0 -p1
87%patch1 -p1
88%patch2 -p1
89%patch3 -p1
ab499437
TP
90%patch5 -p1
91%patch6 -p1
92%patch7 -p1
93%patch8 -p1
94%patch9 -p1
95%patch10 -p1
96%patch11 -p1
ab499437
TP
97%patch14 -p1
98%patch15 -p1
99%patch16 -p1
b22968e0
TP
100cd ros/src/ExprIntrp
101bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
102flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
103mv ExprIntrp.tab.h ../../inc/
104cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
ab499437
TP
105
106%build
9d815b70
TP
107cd ros
108%{__libtoolize}
109%{__aclocal} -I m4
110%{__autoconf}
111%{__autoheader}
112%{__automake}
113
ab499437 114%ifarch x86_64 ppc64
b22968e0
TP
115export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
116export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
ab499437 117%else
b22968e0
TP
118export CFLAGS="%{rpmcflags} -fno-strict-aliasing"
119export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
ab499437 120%endif
ab499437 121LDFLAGS=-lpthread %configure \
ab499437
TP
122 --disable-static \
123 --disable-debug \
124 --enable-production \
869e1a31 125 --enable-draw \
ab499437
TP
126 --enable-wok \
127 --enable-wrappers \
b22968e0 128 --with-java-include="%{java_home}"/include
ab499437 129
cdf0b2d4 130%{__make}
ab499437
TP
131
132%install
cdf0b2d4 133rm -rf $RPM_BUILD_ROOT
3c55ead9 134install -d $RPM_BUILD_ROOT%{_includedir}
61b2b43f 135
ab499437 136cd ros
61b2b43f
TP
137%{__make} install \
138 DESTDIR=$RPM_BUILD_ROOT
ab499437 139cd ..
b22968e0
TP
140
141cp -a data $RPM_BUILD_ROOT%{_datadir}/%{name}
cdf0b2d4
TP
142cp -a doc %{buildroot}%{_prefix}/
143cp -a samples %{buildroot}%{_prefix}/
ab499437 144
3c55ead9
TP
145mv $RPM_BUILD_ROOT{%{_prefix}/inc,%{_includedir}/%{name}}
146rm -r $RPM_BUILD_ROOT%{_prefix}/{Linux,lin}
147
cdf0b2d4 148%post -p /sbin/ldconfig
ab499437
TP
149%postun -p /sbin/ldconfig
150
151%clean
cdf0b2d4 152rm -rf $RPM_BUILD_ROOT
ab499437
TP
153
154%files
cdf0b2d4 155%defattr(644,root,root,755)
3c55ead9
TP
156%attr(755,root,root) %{_bindir}/DRAWEXE
157%attr(755,root,root) %{_bindir}/wok*
158
159%files libs
160%defattr(644,root,root,755)
161%attr(755,root,root) %{_libdir}/*.so.*.*.*
162%attr(755,root,root) %ghost %{_libdir}/*.so.0
163
ab499437
TP
164%dir %{_prefix}/wok
165%dir %{_prefix}/wok/lib/
166%dir %{_prefix}/wok/site/
167%dir %{_prefix}/data
168%dir %{_prefix}/doc
169%dir %{_libdir}/
170%dir %{_libdir}/opencas/
171%dir /usr/share/opencascade/
ab499437
TP
172%{_prefix}/data/*
173%{_prefix}/doc/*
174%{_prefix}/wok/lib/*
175%{_prefix}/wok/site/*
176%{_prefix}/config.h
177%{_prefix}/env_DRAW.sh
ab499437 178%{_libdir}/opencas/*.so
ab499437
TP
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
183%dir %{_prefix}/src
184%{_prefix}/src/UnitsAPI/*.dat
185
186%files devel
cdf0b2d4 187%defattr(644,root,root,755)
3c55ead9 188%{_includedir}/%{name}
ab499437 189%{_libdir}/*.la
3c55ead9
TP
190%attr(755,root,root) %{_libdir}/*.so
191
ab499437
TP
192%{_libdir}/opencas/*.la
193%dir %{_prefix}/src/
194%{_prefix}/src/*
195%dir %{_prefix}/inc/
196%{_prefix}/inc/*
197%dir %{_prefix}/samples
198%{_prefix}/samples/*
199%exclude %{_prefix}/src/UnitsAPI/*.dat
This page took 0.07015 seconds and 4 git commands to generate.