]> git.pld-linux.org Git - packages/OpenCASCADE.git/blame - OpenCASCADE.spec
- more verbose libs files, all modules symlinks moved to base (so -devel requires...
[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
a4130b39 26Summary(pl.UTF-8): Platforma CAE OpenCASCADE
9d815b70 27Name: OpenCASCADE
211fd830
TP
28# The 6.3.1 is a maintenance release, only available for OCC customers
29Version: 6.3.0
c317d1d9 30Release: 44
211fd830 31License: LGPL-like, see http://www.opencascade.org/occ/license/
b22968e0 32Group: Applications/Engineering
a4130b39 33#Source0Download: https://old.opencascade.com/content/latest-release
211fd830
TP
34Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
35# Source0-md5: 52778127974cb3141c2827f9d40d1f11
9d815b70
TP
36Patch0: %{name}6.3.0-obs-check.patch
37Patch1: %{name}6.3.0-strcmp.patch
f520bc3e 38Patch2: %{name}6.3.0-occ6.3.0.patch
49bdbc8a 39Patch3: %{name}6.3.0-casroot.patch
d12a0ed3 40Patch4: wokstep_extract.patch
8817ffd7 41Patch5: %{name}6.3.0-tkernel-ld.patch
f520bc3e
TP
42Patch6: %{name}6.3.0-mft-disable-mmap.patch
43Patch7: %{name}6.3.0-no-bitmaps-icon.patch
61b2b43f 44Patch8: %{name}6.3.0-DESTDIR.patch
8817ffd7
TP
45Patch9: %{name}6.3.0-maint-mode.patch
46Patch10: %{name}6.3.0-dep-libs.patch
f520bc3e 47Patch11: %{name}6.3.0-move-vrml-vis.patch
0da61c06
TP
48Patch12: %{name}6.3.0-make-wok-libs-private.patch
49Patch13: %{name}6.3.0-make-draw-libs-private.patch
8817ffd7 50Patch14: %{name}6.3.0-wok-install.patch
f520bc3e
TP
51Patch15: %{name}6.3.0-udlist.patch
52Patch16: %{name}6.3.0-WOKUnix_FDescr.patch
53Patch17: fix-tklcaf.patch
2b38e9f0 54Patch18: %{name}-build.patch
a4130b39
JB
55URL: https://www.opencascade.com/open-cascade-technology/
56BuildRequires: OpenGL-GLU-devel
61b2b43f
TP
57BuildRequires: autoconf
58BuildRequires: automake
b22968e0
TP
59BuildRequires: bison
60BuildRequires: flex
a4130b39 61%ifnarch i386 i486
2b38e9f0 62BuildRequires: jdk
660cc86c 63%endif
61b2b43f
TP
64BuildRequires: libstdc++-devel
65BuildRequires: libtool
a4130b39 66BuildRequires: rpmbuild(macros) >= 1.752
869e1a31 67BuildRequires: tk-devel
61b2b43f
TP
68BuildRequires: xorg-lib-libX11-devel
69BuildRequires: xorg-lib-libXmu-devel
70BuildRequires: xorg-proto-xproto-devel
a4130b39 71Requires: %{name}-libs = %{version}-%{release}
9d815b70 72BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ab499437
TP
73
74%description
a4130b39
JB
75OpenCASCADE is a suite for 3D surface and solid modeling,
76visualization, data exchange and rapid application development. It is
77an excellent platform for development of numerical simulation software
78including CAD/CAM/CAE, AEC and GIS, as well as PDM applications.
79
80%description -l pl.UTF-8
81OpenCASCADE to szkielet do modelowania powierzchni i brył 3D wraz z
82wizualizacją, wymianą danych i wsparciem szybkiego tworzenia
83aplikacji. Jest to świetna platforma do rozwoju oprogramowania
84symulacji numerycznych, w tym CAD/CAM/CAE, AEC oraz GIS, a także
85aplikacji PDM.
ab499437 86
b22968e0
TP
87%package libs
88Summary: OpenCASCADE shared libraries
a4130b39 89Summary(pl.UTF-8): Biblioteki współdzielone OpenCASCADE
b22968e0
TP
90Group: Libraries
91
92%description libs
93OpenCASCADE shared libraries.
94
a4130b39
JB
95%description libs -l pl.UTF-8
96Biblioteki współdzielone OpenCASCADE.
97
ab499437 98%package devel
b22968e0 99Summary: OpenCASCADE development files
a4130b39 100Summary(pl.UTF-8): Pliki programistyczne OpenCASCADE
b22968e0
TP
101Group: Development/Libraries
102Requires: %{name}-libs = %{version}-%{release}
ab499437
TP
103
104%description devel
b22968e0
TP
105OpenCASCADE development files.
106
a4130b39
JB
107%description devel -l pl.UTF-8
108Pliki programistyczne OpenCASCADE.
109
b22968e0
TP
110%package doc
111Summary: OpenCASCADE documentation
a4130b39 112Summary(pl.UTF-8): Dokumentacja do OpenCASCADE
b22968e0 113Group: Documentation
a4130b39 114%{?noarchpackage}
b22968e0
TP
115
116%description doc
a4130b39
JB
117OpenCASCADE help and HTML documentation.
118
119%description doc -l pl.UTF-8
120Pomoc oraz dokumentacja w formacie HTML do OpenCASCADE.
b22968e0 121
fce55032
TP
122%package samples
123Summary: OpenCASCADE samples
a4130b39 124Summary(pl.UTF-8): Przykłady do OpenCASCADE
fce55032 125Group: Documentation
a4130b39 126%{?noarchpackage}
fce55032
TP
127
128%description samples
129OpenCASCADE samples.
130
a4130b39
JB
131%description samples -l pl.UTF-8
132Przykłady do OpenCASCADE.
133
ab499437
TP
134%prep
135%setup -q -n %{name}%{version}
ab499437
TP
136%patch0 -p1
137%patch1 -p1
138%patch2 -p1
139%patch3 -p1
d12a0ed3 140%patch4 -p1
ab499437
TP
141%patch5 -p1
142%patch6 -p1
143%patch7 -p1
144%patch8 -p1
145%patch9 -p1
146%patch10 -p1
147%patch11 -p1
0da61c06
TP
148%patch12 -p1
149%patch13 -p1
ab499437
TP
150%patch14 -p1
151%patch15 -p1
152%patch16 -p1
f520bc3e 153%patch17 -p1
2b38e9f0 154%patch18 -p1
b22968e0
TP
155cd ros/src/ExprIntrp
156bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
157flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
a4130b39 158%{__mv} ExprIntrp.tab.h ../../inc/
b22968e0 159cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
ab499437
TP
160
161%build
9d815b70
TP
162cd ros
163%{__libtoolize}
5e4cb3c9 164%{__aclocal}
9d815b70
TP
165%{__autoconf}
166%{__autoheader}
167%{__automake}
168
ab499437 169%ifarch x86_64 ppc64
2b38e9f0
AM
170export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing -DUSE_INTERP_RESULT"
171export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing -DUSE_INTERP_RESULT"
ab499437 172%else
2b38e9f0
AM
173export CFLAGS="%{rpmcflags} -fno-strict-aliasing -DUSE_INTERP_RESULT"
174export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing -DUSE_INTERP_RESULT"
ab499437 175%endif
a4130b39
JB
176LDFLAGS=-lpthread \
177%configure \
178 %{?debug:--disable-production --enable-debug} \
0ad19400 179 %{!?debug:--enable-production --disable-debug} \
b22968e0 180 --with-java-include="%{java_home}"/include
ab499437 181
cdf0b2d4 182%{__make}
ab499437
TP
183
184%install
cdf0b2d4 185rm -rf $RPM_BUILD_ROOT
b63031f9 186install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_includedir}}
61b2b43f 187
a4130b39 188%{__make} -C ros install \
61b2b43f 189 DESTDIR=$RPM_BUILD_ROOT
b22968e0
TP
190
191cp -a data $RPM_BUILD_ROOT%{_datadir}/%{name}
a4130b39
JB
192%{__mv} $RPM_BUILD_ROOT{%{_prefix}/{src,wok,config.h,env_DRAW.sh},%{_datadir}/%{name}}
193%{__mv} $RPM_BUILD_ROOT{%{_prefix}/inc,%{_includedir}/%{name}}
194%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/{Linux,lin}
3c55ead9 195
a4130b39 196install -d $RPM_BUILD_ROOT/usr/src
fce55032 197for i in doc samples; do
a4130b39
JB
198install -d ${i}-i
199[ -d $i ] && %{__mv} $i ${i}-i/%{name}-%{version} || :
fce55032
TP
200done
201ln -s %{_builddir}/%{name}%{version}/doc-i $RPM_BUILD_ROOT%{_defaultdocdir}
202ln -s %{_builddir}/%{name}%{version}/samples-i $RPM_BUILD_ROOT%{_examplesdir}
203
0729df7d
TP
204%{__rm} $RPM_BUILD_ROOT%{_libdir}{/opencas,}/*.la
205
ab499437 206%clean
cdf0b2d4 207rm -rf $RPM_BUILD_ROOT
ab499437 208
81e4c012
JB
209%post libs -p /sbin/ldconfig
210%postun libs -p /sbin/ldconfig
211
ab499437 212%files
cdf0b2d4 213%defattr(644,root,root,755)
3c55ead9 214%attr(755,root,root) %{_bindir}/DRAWEXE
81e4c012
JB
215%attr(755,root,root) %{_bindir}/wokprocess
216%attr(755,root,root) %{_bindir}/woksh
b63031f9 217%dir %{_datadir}/%{name}
24cda61d 218%{_datadir}/%{name}/config.h
b63031f9 219%{_datadir}/%{name}/data
24cda61d 220%attr(755,root,root) %{_datadir}/%{name}/env_DRAW.sh
b63031f9
TP
221%dir %{_datadir}/%{name}/src
222%dir %{_datadir}/%{name}/src/UnitsAPI
223%{_datadir}/%{name}/src/UnitsAPI/*.dat
24cda61d 224%{_datadir}/%{name}/wok
81e4c012 225%attr(755,root,root) %{_libdir}/opencas/lib*.so*
3c55ead9
TP
226
227%files libs
228%defattr(644,root,root,755)
0da61c06 229%doc LICENSE ros/README.txt
81e4c012
JB
230%attr(755,root,root) %{_libdir}/libBin*Plugin.so.*.*.*
231%attr(755,root,root) %ghost %{_libdir}/libBin*Plugin.so.0
232%attr(755,root,root) %{_libdir}/libTWOSPlugin.so.*.*.*
233%attr(755,root,root) %ghost %{_libdir}/libTWOSPlugin.so.0
234%attr(755,root,root) %{_libdir}/libPTKernel.so.*.*.*
235%attr(755,root,root) %ghost %{_libdir}/libPTKernel.so.0
236%attr(755,root,root) %{_libdir}/libStd*Plugin.so.*.*.*
237%attr(755,root,root) %ghost %{_libdir}/libStd*Plugin.so.0
238%attr(755,root,root) %{_libdir}/libTK*.so.*.*.*
239%attr(755,root,root) %ghost %{_libdir}/libTK*.so.0
240%attr(755,root,root) %{_libdir}/libXCAFPlugin.so.*.*.*
241%attr(755,root,root) %ghost %{_libdir}/libXCAFPlugin.so.0
242%attr(755,root,root) %{_libdir}/libXml*Plugin.so.*.*.*
243%attr(755,root,root) %ghost %{_libdir}/libXml*Plugin.so.0
0729df7d 244%dir %{_libdir}/opencas
3c55ead9 245
ab499437 246%files devel
cdf0b2d4 247%defattr(644,root,root,755)
3c55ead9 248%{_includedir}/%{name}
81e4c012
JB
249%attr(755,root,root) %{_libdir}/libBin*Plugin.so
250%attr(755,root,root) %{_libdir}/libTWOSPlugin.so
251%attr(755,root,root) %{_libdir}/libPTKernel.so
252%attr(755,root,root) %{_libdir}/libStd*Plugin.so
253%attr(755,root,root) %{_libdir}/libTK*.so
254%attr(755,root,root) %{_libdir}/libXCAFPlugin.so
255%attr(755,root,root) %{_libdir}/libXml*Plugin.so
b63031f9
TP
256%{_datadir}/%{name}/src/*
257%exclude %{_datadir}/%{name}/src/UnitsAPI/*.dat
fce55032
TP
258
259%files doc
b63031f9 260%defattr(644,root,root,755)
fce55032
TP
261%{_docdir}/%{name}-%{version}
262
263%files samples
b63031f9 264%defattr(644,root,root,755)
fce55032 265%{_examplesdir}/%{name}-%{version}
This page took 0.121876 seconds and 4 git commands to generate.