File perl-File-SOPS.spec of Package perl-File-SOPS
#
# spec file for package perl-File-SOPS
#
# Copyright (c) 2026 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/
#
%define cpan_name File-SOPS
Name: perl-File-SOPS
Version: 0.002
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl implementation of Mozilla SOPS encrypted file format
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GE/GETTY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Crypt::Age)
BuildRequires: perl(CryptX)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Moo)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(namespace::clean)
Requires: perl(Crypt::Age)
Requires: perl(CryptX)
Requires: perl(JSON::MaybeXS)
Requires: perl(Moo)
Requires: perl(YAML::XS)
Requires: perl(namespace::clean)
%{perl_requires}
%description
File::SOPS is a pure Perl implementation of Mozilla SOPS (Secrets
OPerationS), compatible with the reference Go implementation at
https://github.com/getsops/sops.
SOPS encrypts *values* in structured files (YAML, JSON) while keeping
*keys* readable. This enables:
* * Git-friendly diffs - see which keys changed without decrypting
* * Partial file inspection without full decryption
* * Multiple encryption backends (currently age, with PGP/KMS planned)
* * MAC verification to detect tampering
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CLAUDE.md README README.md
%license LICENSE
%changelog