Files
openfhe/openfhe.spec

118 lines
3.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package openfhe
#
# Copyright (c) 2025 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/
#
2025-06-23 09:34:11 +03:00
%define libsover 1
%define libsoname lib%{name}%{libsover}
Name: openfhe
2025-06-23 09:34:11 +03:00
Version: 1.3.0
Release: 0
2025-02-13 15:03:08 +01:00
Summary: Fully Homomorphic Encryption Library
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://openfhe.org/
Source0: https://github.com/openfheorg/openfhe-development/archive/refs/tags/v%{version}.tar.gz#/%{name}-development-%{version}.tar.gz
2025-06-23 09:34:11 +03:00
# PATCH-FIX-OPENSUSE Disable installation of bundled cereal headers
Patch0: openfhe-disable-bundled-cereal-install.patch
BuildRequires: cereal-devel
BuildRequires: cmake >= 3.10
BuildRequires: gcc-c++
%description
2025-02-13 15:03:08 +01:00
Fully Homomorphic Encryption (FHE) is a cryptographic primitive that
performs computations over encrypted data without having access to
the secret key.
%package -n %{libsoname}
2025-02-13 15:03:08 +01:00
Summary: Fully Homomorphic Encryption Library
Group: System/Libraries
%description -n %{libsoname}
2025-02-13 15:03:08 +01:00
Fully Homomorphic Encryption (FHE) is a cryptographic primitive that
performs computations over encrypted data without having access to
the secret key. OpenFHE includes implementations of all common FHE
schemes:
* Brakerski/Fan-Vercauteren (BFV) scheme for integer arithmetic
* Brakerski-Gentry-Vaikuntanathan (BGV) scheme for integer arithmetic
* Cheon-Kim-Kim-Song (CKKS) scheme for real-number arithmetic
(includes approximate bootstrapping)
* Ducas-Micciancio (DM/FHEW), Chillotti-Gama-Georgieva-Izabachene
(CGGI/TFHE), and Lee-Micciancio-Kim-Choi-Deryabin-Eom-Yoo (LMKCDEY)
schemes for evaluating Boolean circuits and arbitrary functions
over larger plaintext spaces using lookup tables
%package devel
2025-02-13 15:03:08 +01:00
Summary: Headers for the Fully Homomorphic Encryption Library
Group: Development/Libraries/C and C++
Requires: %{libsoname} == %{version}
BuildArch: noarch
%description devel
2025-02-13 15:03:08 +01:00
Fully Homomorphic Encryption (FHE) is a cryptographic primitive that
performs computations over encrypted data without having access to
the secret key.
This subpackage contains the headers for the C API.
%prep
2025-06-23 09:34:11 +03:00
%autosetup -p1 -n %{name}-development-%{version}
%build
2025-06-23 09:34:11 +03:00
%cmake \
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF \
-DBUILD_BENCHMARKS=OFF \
-DBUILD_EXTRAS=OFF \
-DBUILD_SHARED=ON \
-DBUILD_UNITTESTS=OFF
%cmake_build
%install
%cmake_install
2025-06-23 09:34:11 +03:00
#%check
#pushd build
#%make_build testall
#popd
#
%ldconfig_scriptlets -n %{libsoname}
%files -n %{libsoname}
2025-06-23 09:34:11 +03:00
%license LICENSE
%doc README.md
/usr/lib/libOPENFHEpke.so.%{version}
/usr/lib/libOPENFHEbinfhe.so.%{version}
/usr/lib/libOPENFHEcore.so.%{version}
%files devel
2025-06-23 09:34:11 +03:00
%license LICENSE
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*
2025-06-23 09:34:11 +03:00
# Exclude the zero-length README.md file
%exclude %{_includedir}/openfhe/pke/scheme/README.md
%dir /usr/lib/OpenFHE
/usr/lib/OpenFHE/*.cmake
/usr/lib/libOPENFHEpke.so
/usr/lib/libOPENFHEbinfhe.so
/usr/lib/libOPENFHEcore.so
/usr/lib/libOPENFHEpke.so.1
/usr/lib/libOPENFHEbinfhe.so.1
/usr/lib/libOPENFHEcore.so.1
2025-06-23 09:34:11 +03:00
%changelog