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