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