Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:telephony-ithod
liboqs-opensuse
liboqs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File liboqs.spec of Package liboqs-opensuse
# # spec file for package liboqs # # 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/ # %global debug_package %{nil} %define numberOfProcessorsOnMachine %(nproc) %define wantedJobs %(echo "1.25*%{numberOfProcessorsOnMachine}" | bc -l) %define jobsIget %(echo %{wantedJobs} | awk '{print int(\$1+0.5)}') Name: liboqs Version: 0.9.1 # Fedora release look standard from OpenSUSE build service: # Release: <CI_CNT>.<B_CNT> # Release: %%{?release_prefix}.<CI_CNT>.<B_CNT> # where rpm macro %%{release_prefix} is defined in spec file # Normally it looks like: # Release: 63.fc38 for Fedora packages which is scripted as: # Release: 0%%{?dist} # OpenSUSE build service allows for this variant: # Release: 63.1.fc38 # Release: <CI_CNT>.<B_CNT>%%{?dist} # # Add this to Project Config to tag Fedora packages with fcXX: # ------------------------------ # # reset release name # onepercentage%%if 0onepercentage%%{?fedora_version} # Release: <CI_CNT>.<B_CNT> spec:<CI_CNT>.<B_CNT>twopercentage%%{?dist} # onepercentage%%endif # ------------------------------ Release: 0 Summary: C library for quantum-resistant cryptographic algorithms License: MIT Group: Productivity/Security URL: https://github.com/open-quantum-safe/liboqs/ Source: https://github.com/open-quantum-safe/liboqs/archive/refs/tags/%{version}.tar.gz Source1: baselibs.conf Patch0: liboqs-fix-build.patch Patch1: liboqs-fix-prototypemismatch.patch BuildRequires: cmake BuildRequires: doxygen BuildRequires: bc %if 0%{?suse_version} # # # Machine specific # ---------------- # We do not know what machine that will build. # To make the most use of parallel processes, # depending on machine, we need some tools to find out # what the machine is capable of. # # Get number of processors: BuildRequires: procps # For command line calculation: # BuildRequires: bc # # # Security # -------- # BuildRequires: libopenssl-devel %endif %if 0%{?fedora} > 1 # # # Machine specific # ---------------- # We do not know what machine that will build. # To make the most use of parallel processes, # depending on machine, we need some tools to find out # what the machine is capable of. # # Get number of processors: BuildRequires: procps-ng # For command line calculation: # BuildRequires: bc # # # Security # -------- # BuildRequires: openssl-devel %endif %description liboqs is a C library for quantum-resistant cryptographic algorithms. See the bundled README.md for particular limitations on intended use. %package -n liboqs4 Summary: C library for quantum-resistant cryptographic algorithms Group: System/Libraries %description -n liboqs4 liboqs is a C library for quantum-resistant cryptographic algorithms. See the bundled README.md for particular limitations on intended use. %package devel Summary: Headers for liboqs, a library for quantum-resistant cryptography Group: Development/Languages/C and C++ Requires: liboqs4 = %{version} %description devel liboqs is a C library for quantum-resistant cryptographic algorithms. See the bundled README.md for particular limitations on intended use. %prep %autosetup -p1 %build echo numberOfProcessorsOnMachine=%{numberOfProcessorsOnMachine} echo wantedJobs=%{wantedJobs} echo jobsIget=%{jobsIget} export RPM_OPT_FLAGS="%{optflags} -std=gnu11" # 20220702: The %%cmake macro can't be used because a 'CMakeLists.txt' folder # exists %if 0%{?suse_version} cmake -S . -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DOQS_DIST_BUILD:BOOL=ON pushd build %cmake_build popd %endif %if 0%{?fedora} > 1 cmake -S . -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib64 \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DOQS_DIST_BUILD:BOOL=ON cmake --build build --parallel %{jobsIget} %endif %if 0%{?suse_version} %cmake_install %endif %if 0%{?fedora} > 1 rm -f $HOME/.rpmmacros export QA_RPATHS=$(( 0x0001|0x0002 )) cmake --install build --prefix "%{buildroot}/usr" # cd build # make install DESTDIR="%{buildroot}" %endif # need to find out what cmake option is needed %if 0%{?suse_version} #mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix} #if [ "%{_lib}" != "lib" ]; then # mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} #fi %endif #rmdir %{buildroot}%{_prefix}/local/ echo echo "Show files" echo "----------" find %{buildroot} echo "----------" echo "End show files" echo %post -n liboqs4 -p /sbin/ldconfig %postun -n liboqs4 -p /sbin/ldconfig %files -n liboqs4 %license LICENSE.txt %{_libdir}/liboqs.so.%version %{_libdir}/liboqs.so.4 %doc README.md %files devel %license LICENSE.txt %dir %{_includedir}/oqs %{_includedir}/oqs/* %{_libdir}/liboqs.so %{_libdir}/pkgconfig/liboqs.pc %dir %{_libdir}/cmake/ %dir %{_libdir}/cmake/liboqs/ %{_libdir}/cmake/liboqs/liboqsTargets-noconfig.cmake %{_libdir}/cmake/liboqs/liboqsTargets.cmake %{_libdir}/cmake/liboqs/liboqsConfig.cmake %{_libdir}/cmake/liboqs/liboqsConfigVersion.cmake %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor