3 # - move qt stuff to subpackages?
6 %bcond_with examples # demo+examples build
7 %bcond_with qt3 # CGAL_Qt3 library
11 Summary: Computational Geometry Algorithms Library
12 Summary(pl.UTF-8): Computational Geometry Algorithms Library - biblioteka algorytmów geometrii obliczeniowej
16 License: GPL v3+ and LGPL v3+
18 Source0: https://github.com/CGAL/releases/archive/%{name}-%{version}.tar.gz
19 # Source0-md5: 50b29d3f3372cd93aaa31d01f0e45036
20 URL: http://www.cgal.org/
21 BuildRequires: OpenGL-GLU-devel
22 BuildRequires: Qt5Core-devel >= %{qt5_ver}
23 BuildRequires: Qt5Gui-devel >= %{qt5_ver}
24 BuildRequires: Qt5OpenGL-devel >= %{qt5_ver}
25 BuildRequires: Qt5Svg-devel >= %{qt5_ver}
26 BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
27 BuildRequires: boost-devel >= %{boost_ver}
28 BuildRequires: cmake >= 2.8.11
29 BuildRequires: gmp-devel >= 4.1.4
30 BuildRequires: libstdc++-devel
31 BuildRequires: mpfr-devel >= 2.2.1
32 BuildRequires: qt5-build >= %{qt5_ver}
33 BuildRequires: qt5-qmake >= %{qt5_ver}
34 BuildRequires: sed >= 4.0
35 BuildRequires: zlib-devel
37 BuildRequires: qt-devel >= 3
38 BuildRequires: xorg-lib-libX11-devel
39 BuildRequires: xorg-lib-libXext-devel
42 BuildRequires: blas-devel
43 BuildRequires: eigen3 >= 3.1.91
44 BuildRequires: gmp-c++-devel >= 4.1.4
45 BuildRequires: lapack-devel
47 #TODO: mpfi QGLViewer ipelib
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Libraries for CGAL applications. CGAL is a collaborative effort of
53 several sites in Europe and Israel. The goal is to make the most
54 important of the solutions and methods developed in computational
55 geometry available to users in industry and academia in a C++ library.
56 The goal is to provide easy access to useful, reliable geometric
59 %description -l pl.UTF-8
60 Biblioteka dla aplikacji CGAL (Computational Geometry Algorithms
61 Library). CGAL to wspólny projekt kilku placówek w Europie i Izraelu.
62 Celem jest udostępnienie najważniejszych rozwiązań i metod powstałych
63 w geometrii obliczeniowej dla użytkowników przemysłowych i naukowych w
64 postaci biblioteki C++. Ma ona za zadanie zapewniać łatwy dostęp do
65 przydatnych, wiarygodnych algorytmów geometrycznych.
68 Summary: Development files and tools for CGAL applications
69 Summary(pl.UTF-8): Pliki i narzędzia programistyczne dla aplikacji CGAL
70 Group: Development/Libraries
71 Requires: %{name} = %{version}-%{release}
72 Requires: boost-devel >= %{boost_ver}
73 Requires: libstdc++-devel
75 Requires: Qt5Core-devel >= %{qt5_ver}
76 Requires: Qt5Gui-devel >= %{qt5_ver}
77 Requires: Qt5OpenGL-devel >= %{qt5_ver}
78 Requires: Qt5Widgets-devel >= %{qt5_ver}
81 Requires: qt-devel >= 3
83 # CGAL header interfaces for (using their headers) - use Suggests?
84 Requires: gmp-c++-devel >= 4.1.4
85 Requires: gmp-devel >= 4.1.4
86 Requires: mpfr-devel >= 2.2.1
87 #Suggests: eigen3 >= 3.1 gsl-devel tbb-devel vtk-devel
88 #Suggests(TODO): <rs_exports.h> <rs3_fncts.h> <taucs.h> <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh> <NTL/ZZX.h> <mpfi.h> <LEDA/*.h> <ipelib.h>
90 # CGAL header interfaces for (without using their headers) - use Suggests?
92 Requires: lapack-devel
95 This package provides the header files and tools you may need to
96 develop applications using CGAL.
98 %description devel -l pl.UTF-8
99 Ten pakiet zawiera pliki nagłówkowe i narzędzia potrzebne do tworzenia
100 aplikacji wykorzystujących CGAL.
102 %package demos-source
103 Summary: Examples and demos of CGAL algorithms
104 Summary(pl.UTF-8): Przykłady i programy demonstracyjne do algorytmów CGAL
106 Requires: %{name}-devel = %{version}-%{release}
108 %description demos-source
109 This package provides the sources of examples and demos of CGAL
112 %description demos-source -l pl.UTF-8
113 Ten pakiet zawiera kod źrodłowy programów przykładowych i
114 demonstracyjnych do algorytmów CGAL.
117 %setup -q -n releases-%{name}-%{version}
122 # override build type, because:
123 # PLD is not a valid build type: only Release or Debug is allowed
125 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
126 -DCMAKE_CXX_FLAGS_Release="%{rpmcxxflags}" \
127 -DCMAKE_EXE_LINKER_FLAGS_Release="%{rpmldflags}" \
128 -DCMAKE_SHARED_LINKER_FLAGS_Release="%{rpmldflags}" \
129 -DCGAL_INSTALL_LIB_DIR=%{_lib} \
130 -DCGAL_INSTALL_DOC_DIR= \
131 %{?with_qt3:-DWITH_CGAL_Qt3=ON} \
140 rm -rf $RPM_BUILD_ROOT
141 %{__make} -C build install \
142 DESTDIR=$RPM_BUILD_ROOT
144 # useless in binary package
145 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{cgal_create_CMakeLists,cgal_create_cmake_script,cgal_make_macosx_app}
148 rm -rf $RPM_BUILD_ROOT
150 %post -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
154 %defattr(644,root,root,755)
155 %doc AUTHORS CHANGES LICENSE LICENSE.BSL LICENSE.FREE_USE LICENSE.LGPL
156 %attr(755,root,root) %{_libdir}/libCGAL.so.*.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libCGAL.so.11
158 %attr(755,root,root) %{_libdir}/libCGAL_Core.so.*.*.*
159 %attr(755,root,root) %ghost %{_libdir}/libCGAL_Core.so.11
160 %attr(755,root,root) %{_libdir}/libCGAL_ImageIO.so.*.*.*
161 %attr(755,root,root) %ghost %{_libdir}/libCGAL_ImageIO.so.11
163 %attr(755,root,root) %{_libdir}/libCGAL_Qt3.so.*.*.*
164 %attr(755,root,root) %ghost %{_libdir}/libCGAL_Qt3.so.11
166 %attr(755,root,root) %{_libdir}/libCGAL_Qt5.so.*.*.*
167 %attr(755,root,root) %ghost %{_libdir}/libCGAL_Qt5.so.11
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/libCGAL.so
172 %attr(755,root,root) %{_libdir}/libCGAL_Core.so
173 %attr(755,root,root) %{_libdir}/libCGAL_ImageIO.so
175 %attr(755,root,root) %{_libdir}/libCGAL_Qt3.so
177 %attr(755,root,root) %{_libdir}/libCGAL_Qt5.so
180 %{_mandir}/man1/cgal_create_cmake_script.1*