commit 760a6c9c65fa6b355a2fc809f5f9be0d2729bcad
Author: Jakub Bogusz <[email protected]>
Date:   Mon Sep 11 17:56:10 2023 +0200

    - new

 wolfssl.spec | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 138 insertions(+)
---
diff --git a/wolfssl.spec b/wolfssl.spec
new file mode 100644
index 0000000..a7d3a2c
--- /dev/null
+++ b/wolfssl.spec
@@ -0,0 +1,138 @@
+#
+# Conditional build:
+%bcond_without apidocs         # API documentation
+%bcond_without static_libs     # static library
+#
+Summary:       wolfSSL - small, fast, portable implementation of TLS/SSL for 
embedded devices to the cloud
+Summary(pl.UTF-8):     wolfSSL - mała, szybka, przenośna implementacja TLS/SSL 
dla urządzeń wbudowanych
+Name:          wolfssl
+Version:       5.6.3
+Release:       1
+License:       GPL v2 or commercial
+Group:         Libraries
+#Source0Download: https://github.com/wolfSSL/wolfssl/releases
+Source0:       
https://github.com/wolfSSL/wolfssl/archive/v%{version}-stable/%{name}-%{version}-stable.tar.gz
+# Source0-md5: d8ab3648d7a8510876a5c251f850525e
+URL:           https://www.wolfssl.com/
+BuildRequires: autoconf >= 2.69
+BuildRequires: automake >= 1:1.14.1
+%{?with_apidocs:BuildRequires: doxygen}
+BuildRequires: libtool >= 2:2.4.2
+BuildRequires: rpm-build >= 4.6
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The wolfSSL embedded SSL library (formerly CyaSSL) is a lightweight
+SSL/TLS library written in ANSI C and targeted for embedded, RTOS, and
+resource-constrained environments - primarily because of its small
+size, speed, and feature set. wolfSSL supports industry standards up
+to the current TLS 1.3 and DTLS 1.2 and offers progressive ciphers
+such as ChaCha20, Curve25519, Blake2b and Post-Quantum TLS 1.3 groups.
+
+%description -l pl.UTF-8
+Wbudowana biblioteka SSL wolfSSL (dawniej CyaSSL) to lekka biblioteka
+SSL/TLS napisana w ANSI C i przeznaczona przede wszystkim do środowisk
+wbudowanych, czasu rzeczywistego i o ograniczonych zasobach - głównie
+ze względu na mały rozmiar, szybkość i funkcjonalność. wolfSSL
+obsługuje standardy przemysłowe do aktualnego TLS 1.3 oraz DTLS 1.2 i
+oferuje progresywne szyfry, takie jak ChaCha20, Curve25519, Blake2b
+czy grupy Post-Quantum TLS 1.3.
+
+%package devel
+Summary:       Header files for wolfSSL library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki wolfSSL
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for wolfSSL library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki wolfSSL.
+
+%package static
+Summary:       Static wolfSSL library
+Summary(pl.UTF-8):     Statyczna biblioteka wolfSSL
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static wolfSSL library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka wolfSSL.
+
+%package apidocs
+Summary:       API documentation for wolfSSL library
+Summary(pl.UTF-8):     Dokumentacja API biblioteki wolfSSL
+Group:         Documentation
+BuildArch:     noarch
+
+%description apidocs
+API documentation for wolfSSL library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki wolfSSL.
+
+%prep
+%setup -q -n %{name}-%{version}-stable
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --enable-all \
+       --enable-quic \
+       %{?with_static_libs:--enable-static}
+%{__make}
+
+%if %{with apidocs}
+cd doc
+./generate_documentation.sh -html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libwolfssl.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wolfssl
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog.md LICENSING README.md doc/{QUIC.md,README.txt}
+%attr(755,root,root) %{_libdir}/libwolfssl.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwolfssl.so.35
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/wolfssl-config
+%attr(755,root,root) %{_libdir}/libwolfssl.so
+%{_includedir}/cyassl
+%{_includedir}/wolfssl
+%{_pkgconfigdir}/wolfssl.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libwolfssl.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/html/*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wolfssl.git/commitdiff/760a6c9c65fa6b355a2fc809f5f9be0d2729bcad

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to