Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37489763
en ru br
Репозитории ALT
S:1.0.2-alt1.1
5.1: 0.9-alt1.cvs20090702
www.altlinux.org/Changes

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

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

%define _unpackaged_files_terminate_build 1

%def_without doc

Name: blitz
Summary: C++ class library for scientific computing
Version: 1.0.2
Release: alt1.1
Group: Sciences/Mathematics
License: LGPLv3 or BSD-3-Clause or Artistic-2.0
URL: https://github.com/blitzpp/blitz

# https://github.com/blitzpp/blitz.git

Source: %name-%version.tar

Patch1: %name-%version-alt-build.patch

Requires: lib%name = %EVR

BuildRequires: gcc-c++ gcc-fortran liblapack-devel
BuildRequires: cmake
BuildRequires: ctest
BuildRequires: rpm-build-python3
%if_with doc
BuildRequires: doxygen graphviz
# explicitly added texinfo for info files
BuildRequires: texinfo
BuildRequires: /usr/bin/pdflatex
%endif

%description
Blitz++ is a C++ class library for scientific computing which provides
performance on par with Fortran 77/90. It uses template techniques to achieve
high performance. Blitz++ provides dense arrays and vectors, random number
generators, and small vectors.

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

%description -n lib%name
Blitz++ is a C++ class library for scientific computing which provides
performance on par with Fortran 77/90. It uses template techniques to achieve
high performance. Blitz++ provides dense arrays and vectors, random number
generators, and small vectors.

This package contains shared libraries of Blitz++.

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

%description -n lib%name-devel
Blitz++ is a C++ class library for scientific computing which provides
performance on par with Fortran 77/90. It uses template techniques to achieve
high performance. Blitz++ provides dense arrays and vectors, random number
generators, and small vectors.

This package contains development files of Blitz++.

%if_with doc
%package -n lib%name-devel-doc
Summary: Documentation for Blitz++
Group: Development/Documentation
BuildArch: noarch

%description -n lib%name-devel-doc
Blitz++ is a C++ class library for scientific computing which provides
performance on par with Fortran 77/90. It uses template techniques to achieve
high performance. Blitz++ provides dense arrays and vectors, random number
generators, and small vectors.

This package contains development documentation for Blitz++.
%endif

%package examples
Summary: Examples for Blitz++
Group: Development/Documentation
BuildArch: noarch

%description examples
Blitz++ is a C++ class library for scientific computing which provides
performance on par with Fortran 77/90. It uses template techniques to achieve
high performance. Blitz++ provides dense arrays and vectors, random number
generators, and small vectors.

This package contains examples for Blitz++.

%prep
%setup
%patch1 -p1

%build
export CC="gcc -pthread"
export CXX="g++ -pthread"

%cmake \
-DBUILD_DOC:BOOL=%{with doc} \
-DBUILD_TESTING:BOOL=ON \
-DBZ_THREADSAFE:BOOL=ON \
%nil

%cmake_build
%if_with doc
%cmake_build -t blitz-doc
%endif

%cmake_build -t testsuite
%cmake_build -t examples

%install
export CC="gcc -pthread"
export CXX="g++ -pthread"

%cmake_install

%check
export LD_LIBRARY_PATH=%buildroot%_libdir

%cmake_build -t check-testsuite
%cmake_build -t check-examples

%files
%doc COPYING* COPYRIGHT LEGAL LICENSE
%doc AUTHORS ChangeLog* README.md
%if_with doc
%_infodir/*
%endif

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

%files -n lib%name-devel
%_libdir/*.so
%_libdir/cmake/*
%_includedir/*
%_pkgconfigdir/*

%if_with doc
%files -n lib%name-devel-doc
%doc %_docdir/%name
%endif

%files examples
%doc examples

%changelog

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

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