Sisyphus repository
Last update: 23 september 2023 | SRPMs: 18616 | Visits: 30224543
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libleatherman

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:    libleatherman
Version: 1.12.9
Release: alt1
Summary: A collection of C++ and CMake utility libraries

Group:   System/Libraries
License: Apache-2.0
Packager: Andrey Cherepanov <cas at>

Source: leatherman-%version.tar
Patch1: fedora-shared_nowide.patch
Patch2: libleatherman-Catch-SIGSTKSZ-not-constexpr.patch

BuildRequires(pre): cmake
BuildRequires(pre): rpm-build-ninja
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: boost-devel
BuildRequires: boost-filesystem-devel
BuildRequires: boost-locale-devel
BuildRequires: boost-log-devel
BuildRequires: libcurl-devel
BuildRequires: unzip zip

A collection of C++ and CMake utility libraries.

%package devel
Summary: cpp-hocon development headers
Group: Development/Other
Provides: leatherman-devel = %version-%release
Obsoletes: leatherman-devel < %version-%release
Requires: boost-locale-devel

%description devel
Development headers for leatherman.

%add_python3_path %_libdir/cmake/leatherman/scripts/

%setup -n leatherman-%version
%patch1 -p1
# Ruby 2.3 fix: replace rb_data_object_alloc symbol with rb_data_object_wrap
sed -i 's/rb_data_object_alloc/rb_data_object_wrap/g' \
$( grep -rl rb_data_object_alloc ruby )
%ifarch %e2k
# actually any EDG-based compiler (up to and including 5.0 it seems);
# see also and mcst#5101
sed -r -i.orig 's,reinterpret_cast<char\*\*\*>,(char***),g' ruby/src/
# Set correct python executable in shebang
subst 's|#!.*python$|#!%__python3|' scripts/

# SIGSTKSZ is no longer a constexpr

cd vendor
unzip >/dev/null
%patch2 -p1 -d Catch-1.10.0
zip -ru Catch-1.10.0/

%cmake -GNinja \
      -Wno-dev \
%ninja_build -C "%_cmake__builddir"

%ninja_install -C "%_cmake__builddir"

%doc *.md

%files devel


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin