Репозиторий Sisyphus
Последнее обновление: 20 мая 2019 | Пакетов: 17692 | Посещений: 13569045
en ru br
Репозитории ALT

Группа :: Науки/Математика
Пакет: cgal

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: cgal
Version: 4.12
Release: alt1%ubt
Summary: Easy access to efficient and reliable geometric algorithms
License: Free for non-commertial using
Group: Sciences/Mathematics
Url: http://www.cgal.org/

Source: CGAL-%version.tar
Source1: CGAL-%version-doc_html.tar

# https://gforge.inria.fr/frs/download.php/32357/cgal_manual.pdf

Source2: cgal_manual.pdf
Source5: %name.pc

Requires: lib%name = %EVR

BuildRequires(pre): rpm-build-ubt
BuildRequires: gcc-c++ gcc-fortran cmake qt5-base-devel qt5-svg-devel
BuildRequires: boost-devel libgmp-devel libgmpxx-devel eigen3
BuildRequires: libGLU-devel libGL-devel libmpfr-devel libtbb-devel
BuildRequires: zlib-devel libX11 phonon-devel
BuildRequires: liblapack-devel libtaucs-devel

%description
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

%package -n lib%name
Summary: Shared libraries of CGAL
Group: System/Libraries

%description -n lib%name
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

This Package contains shared libraries of CGAL.

%package -n lib%name-qt5
Summary: Shared libraries of CGAL (Qt5 interface)
Group: System/Libraries
Requires: lib%name = %EVR

%description -n lib%name-qt5
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

This Package contains shared libraries of CGAL (Qt5 interface).

%package -n lib%name-devel
Summary: Development files of CGAL
Group: Development/C++
Requires: lib%name = %EVR

%description -n lib%name-devel
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

This Package contains developemnt files of CGAL.

%package -n lib%name-qt5-devel
Summary: Development files of CGAL (Qt5 interface)
Group: Development/C++
Requires: lib%name-devel = %EVR
Requires: lib%name-qt5 = %EVR

%description -n lib%name-qt5-devel
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

This Package contains developemnt files of CGAL (Qt5 interface).

%package devel-doc
Summary: Documentation for CGAL
Group: Development/Documentation
BuildArch: noarch

%description devel-doc
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++
library.

Thid package contains development documentation for CGAL.

%prep
%setup

install -p -m644 %SOURCE5 .
sed -i 's| at VERSION at |%version|g' %name.pc
sed -i 's| at LIBDIR at |%_libdir|g' %name.pc

%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCGAL_INSTALL_DOC_DIR=%_defaultdocdir/%name \
-DWITH_demos:BOOL=false \
-DWITH_examples:BOOL=false

%cmake_build VERBOSE=1

%install
%cmakeinstall_std

install -d %buildroot%_docdir/%name
cp -fR doc_html %buildroot%_docdir/%name
install -p -m644 %SOURCE2 %buildroot/%_docdir/%name
cp -fR examples %buildroot%_docdir/%name

pushd %buildroot%_docdir/%name
tar -xf %SOURCE1
popd

install -d %buildroot%_pkgconfigdir
install -p -m644 %name.pc %buildroot%_pkgconfigdir

%files
%_bindir/*
%_man1dir/*

%files -n lib%name
%_libdir/*.so.*
%exclude %_libdir/*_Qt?.so.*

%files -n lib%name-qt5
%_libdir/*_Qt5.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%exclude %_libdir/*_Qt?.so
%_libdir/cmake/CGAL
%_pkgconfigdir/*

%files -n lib%name-qt5-devel
%_libdir/*_Qt5.so

%files devel-doc
%doc %_docdir/%{name}*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin