SHA256
1
0
forked from pool/fscrypt
fscrypt/fscrypt.spec
Dirk Mueller 9272366398 Accepting request 1062173 from home:darix:playground
- update to 0.3.4:
  - fscrypt now requires Go 1.16 or later to build.
  - pam_fscrypt now supports the option unlock_only to disable
    locking of directories on logout.
  - Fixed a bug where the number of CPUs used in the passphrase
    hash would be calculated incorrectly on systems with more than
    255 CPUs.
  - Added support for AES-256-HCTR2 filenames encryption.
  - Directories are now synced immediately after an encryption
    policy is applied, reducing the chance of an inconsistency
    after a sudden crash.
  - Added Lustre to the list of allowed filesystems.
  - Added a NEWS.md file that contains the release notes, and
    backfilled it from the GitHub release notes.

OBS-URL: https://build.opensuse.org/request/show/1062173
OBS-URL: https://build.opensuse.org/package/show/filesystems/fscrypt?expand=0&rev=14
2023-01-31 10:20:45 +00:00

78 lines
2.5 KiB
RPMSpec

#
# spec file for package fscrypt
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fscrypt
Version: 0.3.4
Release: 0
Summary: Go tool for managing Linux filesystem encryption
License: Apache-2.0
Group: System/Base
URL: https://github.com/google/fscrypt
Source: https://github.com/google/fscrypt/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.xz
BuildRequires: golang-packaging
BuildRequires: m4
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: golang(API) >= 1.14
BuildRequires: pkgconfig(bash-completion)
Requires: pam-fscrypt = %{version}
%description
fscrypt is a high-level tool for the management of Linux filesystem encryption.
This tool manages metadata, key generation, key wrapping, PAM integration, and
provides a uniform interface for creating and modifying encrypted directories.
%package -n pam-fscrypt
#
Summary: Go tool for managing Linux filesystem encryption (the pam module)
Group: System/Base
Requires(pre): fscrypt = %{version}
%description -n pam-fscrypt
fscrypt is a high-level tool for the management of Linux filesystem encryption.
This tool manages metadata, key generation, key wrapping, PAM integration, and
provides a uniform interface for creating and modifying encrypted directories.
This package holds the pam module for fscrypt.
%prep
%autosetup -p1 -a 1
%build
%global make_args GO_FLAGS="-mod=vendor -buildmode=pie" PAM_MODULE_DIR="%{_pam_moduledir}" PREFIX="%{_prefix}"
%make_build %{make_args}
%install
%make_install %{make_args}
chmod a-x %{buildroot}%{_datadir}/pam-configs/fscrypt
%files
%license LICENSE
%doc README.md
%{_bindir}/fscrypt
%dir %{_datadir}/pam-configs/
%{_datadir}/pam-configs/fscrypt
%{_datadir}/bash-completion/completions/fscrypt
%files -n pam-fscrypt
%license LICENSE
%{_pam_moduledir}/pam_fscrypt.so
%changelog