Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37042084
en ru br
ALT Linux repositórios
S:1.12.9-alt1

Group :: Sistema/Bibliotecas
RPM: libleatherman

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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
Url:     https://github.com/puppetlabs/leatherman
Packager: Andrey Cherepanov <cas at altlinux.org>

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

%description
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/

%prep
%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 http://bugs.webkit.org/show_bug.cgi?id=29034 and mcst#5101
sed -r -i.orig 's,reinterpret_cast<char\*\*\*>,(char***),g' ruby/src/api.cc
%endif
# Set correct python executable in shebang
subst 's|#!.*python$|#!%__python3|' scripts/cpplint.py

# SIGSTKSZ is no longer a constexpr

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

%build
%cmake -GNinja \
      -Wno-dev \
      -DLEATHERMAN_SHARED=TRUE \
      -DENABLE_CXX_WERROR=OFF
%ninja_build -C "%_cmake__builddir"

%install
%ninja_install -C "%_cmake__builddir"

%files
%doc *.md
%_libdir/leatherman_*.so.*
%_datadir/locale/*/LC_MESSAGES/leatherman_*.mo

%files devel
%_libdir/leatherman_*.so
%_includedir/leatherman
%_libdir/cmake/leatherman

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009