[packages/aws-c-cal] - new
qboosh
qboosh at pld-linux.org
Sat Jun 14 15:07:12 CEST 2025
commit f214e55caa3967ff0c55443a66e6660d388de8cd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 14 14:25:57 2025 +0200
- new
aws-c-cal.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
---
diff --git a/aws-c-cal.spec b/aws-c-cal.spec
new file mode 100644
index 0000000..ed3d05d
--- /dev/null
+++ b/aws-c-cal.spec
@@ -0,0 +1,86 @@
+#
+# Conditional build:
+%bcond_with openssl # system OpenSSL instead of internal ByoCrypto
+%bcond_without tests # unit tests
+#
+Summary: AWS C CAL (Crypto Abstraction Layer)
+Summary(pl.UTF-8): Biblioteka AWS C CAL (Crypto Abstraction Layer - warstwa abstrakcji kryptografii)
+Name: aws-c-cal
+Version: 0.9.2
+Release: 1
+License: Apache v2.0
+Group: Libraries
+#Source0Download: https://github.com/awslabs/aws-c-cal/releases
+Source0: https://github.com/awslabs/aws-c-cal/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 63350b547630e002c0af0c63e24cd41b
+URL: https://github.com/awslabs/aws-c-cal
+BuildRequires: aws-c-common-devel
+BuildRequires: cmake >= 3.9
+BuildRequires: gcc >= 5:3.2
+# also aws-lc possible (with -DUSE_OPENSSL=OFF)
+%{?with_openssl:BuildRequires: openssl-devel >= 1.0.2}
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for
+cryptography primitives.
+
+
+%description -l pl.UTF-8
+AWS Crypto Abstraction Layer - wieloplatformowy interfejs C99 do
+podstaw kryptograficznych.
+
+%package devel
+Summary: Header files for AWS C CAL library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AWS C CAL
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: aws-c-common-devel
+%{?with_openssl:Requires: openssl-devel >= 1.0.2}
+
+%description devel
+Header files for AWS C CAL library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki AWS C CAL.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake .. \
+ %{?with_openssl:-DBYO_CRYPTO=OFF} \
+ %{?with_openssl:-DUSE_OPENSSL=ON} \
+
+%{__make}
+
+%if %{with tests}
+%{__make} test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc NOTICE README.md
+%attr(755,root,root) %{_libdir}/libaws-c-cal.so.1.0.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libaws-c-cal.so
+%dir %{_includedir}/aws
+%{_includedir}/aws/cal
+%{_libdir}/cmake/aws-c-cal
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aws-c-cal.git/commitdiff/f214e55caa3967ff0c55443a66e6660d388de8cd
More information about the pld-cvs-commit
mailing list