Group :: Desenvolvimento/C++
RPM: cvise
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_with check
Name: cvise
Version: 2.8.0
Release: alt2
Summary: Super-parallel Python port of the C-Reduce
License: BSD-3-Clause
Group: Development/C++
Url: https://github.com/marxin/cvise
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/marxin/cvise/archive/v%version.tar.gz
Source: %name-%version.tar
BuildRequires: astyle
BuildRequires: clang-devel
# https://bugzilla.altlinux.org/show_bug.cgi?id=39734
BuildRequires: llvm-devel-static clang-devel-static
BuildRequires: cmake
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: indent
BuildRequires: libncurses-devel
BuildRequires: zlib-devel
#BuildRequires: ninja
%if_with check
# deps
BuildRequires: python3(chardet)
BuildRequires: python3(pebble)
BuildRequires: /usr/bin/unifdef
# psutil
BuildRequires: /proc
BuildRequires: python3(psutil)
BuildRequires: python3(pytest)
%endif
BuildRequires(pre): rpm-build-python3
BuildRequires(pre): rpm-macros-cmake
BuildRequires(pre): rpm-build-intro >= 2.1.5
# use no more than system_memory/3000 build procs (see https://bugzilla.altlinux.org/show_bug.cgi?id=35112)
%_tune_parallel_build_by_procsize 3000
%add_python3_lib_path %_datadir/cvise
Requires: astyle
Requires: clang
Requires: indent
Requires: llvm
Requires: unifdef
#AutoProv: no
%description
C-Vise is a super-parallel Python port of the C-Reduce. The port is fully
compatible to the C-Reduce and uses the same efficient
LLVM-based C/C++ reduction tool named clang_delta.
C-Vise is a tool that takes a large C, C++ or OpenCL program that
has a property of interest (such as triggering a compiler bug) and
automatically produces a much smaller C/C++ or OpenCL program that
has the same property. It is intended for use by people who discover
and report bugs in compilers and other tools that process C/C++ or OpenCL code.
%prep
%setup
# TODO: https://bugzilla.altlinux.org/show_bug.cgi?id=38660
#__subst '14ilist(APPEND CMAKE_PREFIX_PATH "/usr/share/cmake/Modules")' CMakeLists.txt
# skip flake8
sed -i 's/--flake8/ /' setup.cfg
%build
%cmake -DCMAKE_INSTALL_LIBEXECDIR=%_libexecdir
%cmake_build
%install
%cmake_install
rm -rfv %buildroot%_datadir/cvise/tests/
%check
# assume _cmake__builddir %%_target_platform
cd %_target_platform
py.test3 -vra .
%files
%doc COPYING
%_bindir/cvise
%_bindir/cvise-delta
%_datadir/cvise/
%dir %_libexecdir/cvise/
%_libexecdir/cvise/clex
%_libexecdir/cvise/clang_delta
%_libexecdir/cvise/strlex
%_libexecdir/cvise/topformflat
%changelog
…
Todas as alterações você pod ver aqui
Name: cvise
Version: 2.8.0
Release: alt2
Summary: Super-parallel Python port of the C-Reduce
License: BSD-3-Clause
Group: Development/C++
Url: https://github.com/marxin/cvise
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/marxin/cvise/archive/v%version.tar.gz
Source: %name-%version.tar
BuildRequires: astyle
BuildRequires: clang-devel
# https://bugzilla.altlinux.org/show_bug.cgi?id=39734
BuildRequires: llvm-devel-static clang-devel-static
BuildRequires: cmake
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: indent
BuildRequires: libncurses-devel
BuildRequires: zlib-devel
#BuildRequires: ninja
%if_with check
# deps
BuildRequires: python3(chardet)
BuildRequires: python3(pebble)
BuildRequires: /usr/bin/unifdef
# psutil
BuildRequires: /proc
BuildRequires: python3(psutil)
BuildRequires: python3(pytest)
%endif
BuildRequires(pre): rpm-build-python3
BuildRequires(pre): rpm-macros-cmake
BuildRequires(pre): rpm-build-intro >= 2.1.5
# use no more than system_memory/3000 build procs (see https://bugzilla.altlinux.org/show_bug.cgi?id=35112)
%_tune_parallel_build_by_procsize 3000
%add_python3_lib_path %_datadir/cvise
Requires: astyle
Requires: clang
Requires: indent
Requires: llvm
Requires: unifdef
#AutoProv: no
%description
C-Vise is a super-parallel Python port of the C-Reduce. The port is fully
compatible to the C-Reduce and uses the same efficient
LLVM-based C/C++ reduction tool named clang_delta.
C-Vise is a tool that takes a large C, C++ or OpenCL program that
has a property of interest (such as triggering a compiler bug) and
automatically produces a much smaller C/C++ or OpenCL program that
has the same property. It is intended for use by people who discover
and report bugs in compilers and other tools that process C/C++ or OpenCL code.
%prep
%setup
# TODO: https://bugzilla.altlinux.org/show_bug.cgi?id=38660
#__subst '14ilist(APPEND CMAKE_PREFIX_PATH "/usr/share/cmake/Modules")' CMakeLists.txt
# skip flake8
sed -i 's/--flake8/ /' setup.cfg
%build
%cmake -DCMAKE_INSTALL_LIBEXECDIR=%_libexecdir
%cmake_build
%install
%cmake_install
rm -rfv %buildroot%_datadir/cvise/tests/
%check
# assume _cmake__builddir %%_target_platform
cd %_target_platform
py.test3 -vra .
%files
%doc COPYING
%_bindir/cvise
%_bindir/cvise-delta
%_datadir/cvise/
%dir %_libexecdir/cvise/
%_libexecdir/cvise/clex
%_libexecdir/cvise/clang_delta
%_libexecdir/cvise/strlex
%_libexecdir/cvise/topformflat
%changelog
…
Todas as alterações você pod ver aqui