1 %define boost_version 1.32
2 Summary: Computational Geometry Algorithms Library
6 License: GPLv3+ and LGPLv3+
8 Source0: https://gforge.inria.fr/frs/download.php/file/34705/%{name}-%{version}.tar.xz
9 # Source0-md5: 65fa7e17cd654ef68da47df608000007
10 URL: http://www.cgal.org/
11 BuildRequires: blas-devel
12 BuildRequires: boost-devel >= %{boost_version}
14 BuildRequires: gmp-c++-devel
15 BuildRequires: gmp-devel
16 BuildRequires: lapack-devel
17 BuildRequires: mpfr-devel
18 BuildRequires: qt-devel >= 3.0
19 BuildRequires: sed >= 4.0
20 BuildRequires: zlib-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Libraries for CGAL applications. CGAL is a collaborative effort of
25 several sites in Europe and Israel. The goal is to make the most
26 important of the solutions and methods developed in computational
27 geometry available to users in industry and academia in a C++ library.
28 The goal is to provide easy access to useful, reliable geometric
32 Summary: Development files and tools for CGAL applications
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
36 Requires: boost-devel >= %{boost_version}
37 Requires: gmp-c++-devel
39 Requires: lapack-devel
45 The %{name}-devel package provides the headers files and tools you may
46 need to develop applications using CGAL.
49 Summary: Examples and demos of CGAL algorithms
51 Requires: %{name}-devel = %{version}-%{release}
53 %description demos-source
54 The %{name}-demos-source package provides the sources of examples and
55 demos of CGAL algorithms.
64 # what is ${CHANGE_SOVERSION} here?
66 -DCGAL_INSTALL_LIB_DIR=%{_lib} \
67 -DCGAL_INSTALL_DOC_DIR= ${CHANGE_SOVERSION} \
73 rm -rf $RPM_BUILD_ROOT
74 %{__make} -C build install \
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %doc AUTHORS LICENSE LICENSE.FREE_USE LICENSE.LGPL CHANGES
86 %attr(755,root,root) %{_libdir}/libCGAL.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libCGAL.so.11
88 %attr(755,root,root) %{_libdir}/libCGAL_Core.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libCGAL_Core.so.11
90 %attr(755,root,root) %{_libdir}/libCGAL_ImageIO.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libCGAL_ImageIO.so.11
92 %attr(755,root,root) %{_libdir}/libCGAL_Qt4.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libCGAL_Qt4.so.11
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_bindir}/cgal_create_CMakeLists
98 %attr(755,root,root) %{_bindir}/cgal_create_cmake_script
101 %attr(755,root,root) %{_libdir}/libCGAL*.so
102 %{_mandir}/man1/cgal_create_cmake_script.1*