Sisyphus repositório
Última atualização: 21 junho 2021 | SRPMs: 17557 | Visitas: 21257471
en ru br
ALT Linux repositórios
S:0.9.11-alt2.1

Group :: Sistema/Kernel e hardware
RPM: fuse-cryfs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname cryfs
%def_without system_spdlog
Name: fuse-cryfs
Version: 0.9.11
Release: alt2.1

Summary: Cryptographic filesystem for the cloud

License: LGPL
Group: System/Kernel and hardware
Url: https://www.cryfs.org/

Requires: fuse

# Source-url: https://github.com/cryfs/cryfs/archive/%version.tar.gz

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: %name-%version.tar

# ported changes from upstream

Patch1: fuse-cryfs-glibc-compat.patch

BuildRequires: rpm-macros-cmake cmake
BuildRequires: boost-devel boost-devel-headers boost-filesystem-devel boost-program_options-devel
#BuildRequires: boost-devel-static
BuildRequires: libcryptopp-devel
BuildRequires: libcurl-devel
BuildRequires: libfuse-devel
BuildRequires: libssl-devel

BuildRequires: gcc-c++

# TODO: check when will req spdlog >= 1.1

%if_with system_spdlog
# instead builtin
BuildRequires: libspdlog-devel = 0.12.0
%endif

BuildRequires: python-modules-json

%description
CryFS encrypts your files, so you can safely store them anywhere.
It works well together with cloud services
like Dropbox, iCloud, OneDrive and others.
See https://www.cryfs.org.

%prep
%setup
%patch1 -p2

# conflicts with CHAR_WIDTH macro

%__subst "s|CHAR_WIDTH|SPDLOG_CHAR_WIDTH|g" vendor/spdlog/spdlog/fmt/bundled/format.h
%if_with system_spdlog
# replaced with libspdlog-devel
rm -rf vendor/spdlog/
%__subst "s|.*spdlog.*||" vendor/CMakeLists.txt
%__subst "s|spdlog||" src/cpp-utils/CMakeLists.txt
%endif

# explicitly set python-2

find . -type f | xargs sed -i \
-e '1s:^#!/usr/bin/env python$:#!/usr/bin/python%__python_version:' \
%nil

%build
%cmake -DBUILD_TESTING=off -DBoost_INCLUDE_DIRS=%_includedir/boost -DBoost_USE_STATIC_LIBS=off -DCMAKE_BUILD_TYPE=RELEASE
%cmake_build

%install
%cmake_install

%files
%_bindir/cryfs
%_man1dir/*

%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