From a5788b432de93fbd50e79245392bc92c4d62267f Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 17 Oct 2023 16:41:46 +0300 Subject: [PATCH] import libretls-3.7.0-1.el8 --- .gitignore | 1 + .libretls.metadata | 1 + SPECS/libretls.spec | 138 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 .gitignore create mode 100644 .libretls.metadata create mode 100644 SPECS/libretls.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44fab11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libretls-3.7.0.tar.gz diff --git a/.libretls.metadata b/.libretls.metadata new file mode 100644 index 0000000..831ac93 --- /dev/null +++ b/.libretls.metadata @@ -0,0 +1 @@ +8c62b86f6eae28bc711026f85e28f5ab9f7f610f SOURCES/libretls-3.7.0.tar.gz diff --git a/SPECS/libretls.spec b/SPECS/libretls.spec new file mode 100644 index 0000000..912bd72 --- /dev/null +++ b/SPECS/libretls.spec @@ -0,0 +1,138 @@ +Summary: Port of libtls from LibreSSL to OpenSSL +Name: libretls +Version: 3.7.0 +Release: 1%{?dist} +# libretls itself is ISC but uses other source codes, breakdown: +# BSD-3-Clause: compat/strsep.c +# MIT: compat/timegm.c +# LicenseRef-Fedora-Public-Domain: compat/{{explicit_bzero,ftruncate,pread,pwrite}.c,chacha_private.h} +License: ISC AND BSD-3-Clause AND MIT AND LicenseRef-Fedora-Public-Domain +URL: https://git.causal.agency/libretls/about/ +Source0: https://causal.agency/libretls/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: make +%if 0%{?fedora} || 0%{?rhel} > 7 +BuildRequires: openssl-devel >= 1.1.1b +%else +BuildRequires: openssl11-devel >= 1.1.1b +%endif +BuildRequires: man + +%description +LibreTLS is a port of libtls from LibreSSL to OpenSSL. OpenBSD's libtls is a +new TLS library, designed to make it easier to write foolproof applications. + +%package devel +Summary: Development files for libretls +Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig + +%description devel +The libretls-devel package contains libraries and header files for developing +applications that use libtls. + +%if 0%{!?_without_static:1} +%package static +Summary: Static library for libretls +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description static +The libretls-static package includes static libraries of libretls. Install it +if you need to link statically with libtls. +%endif + +%prep +%setup -q + +%build +%if 0%{?rhel} == 7 +sed -e 's| openssl | openssl11 |g' -i configure +%endif + +%configure %{?_without_static:--disable-static} +%make_build + +%install +%make_install + +# Don't install any libtool .la files +rm -f $RPM_BUILD_ROOT%{_libdir}/libtls.la + +# Convert README man page to text file +MANWIDTH=72 man ./README.7 | col -bx > README +touch -c -r README.7 README + +# Install README man page as libtls.7 +sed -e 's/README 7/libtls 7/g' -i README.7 +touch -c -r README README.7 +install -D -p -m 0644 README.7 $RPM_BUILD_ROOT%{_mandir}/man7/libtls.7 + +%ldconfig_scriptlets + +%files +%doc README +%{_libdir}/libtls.so.26* +%{_mandir}/man7/libtls.7* + +%files devel +%{_libdir}/libtls.so +%{_libdir}/pkgconfig/libtls.pc +%{_includedir}/tls.h +%{_mandir}/man3/tls_*.3* + +%if 0%{!?_without_static:1} +%files static +%{_libdir}/libtls.a +%endif + +%changelog +* Tue Oct 17 2023 Sergey Cherevko - 3.7.0-1 +- Rebuilt for MSVSphere 8.8 + +* Sat Dec 24 2022 Robert Scheck 3.7.0-1 +- Upgrade to 3.7.0 (#2156116) + +* Thu Jul 21 2022 Fedora Release Engineering - 3.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat May 14 2022 Robert Scheck 3.5.2-1 +- Upgrade to 3.5.2 (#2086096) + +* Tue Mar 22 2022 Robert Scheck 3.5.1-1 +- Upgrade to 3.5.1 (#2066532) + +* Sun Feb 27 2022 Robert Scheck 3.5.0-1 +- Upgrade to 3.5.0 (#2058999) + +* Thu Jan 20 2022 Fedora Release Engineering - 3.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 29 2021 Robert Scheck 3.4.2-1 +- Upgrade to 3.4.2 (#2027520) + +* Fri Oct 15 2021 Robert Scheck 3.4.1-1 +- Upgrade to 3.4.1 (#2014653) + +* Tue Sep 14 2021 Sahana Prasad - 3.3.4-2 +- Rebuilt with OpenSSL 3.0.0 + +* Tue Aug 24 2021 Robert Scheck 3.3.4-1 +- Upgrade to 3.3.4 (#1997265) + +* Thu Jul 22 2021 Fedora Release Engineering - 3.3.3p1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue May 25 2021 Robert Scheck 3.3.3p1-1 +- Upgrade to 3.3.3p1 (#1964579) + +* Sat May 08 2021 Robert Scheck 3.3.3-1 +- Upgrade to 3.3.3 (#1958568) + +* Wed Apr 21 2021 Robert Scheck 3.3.2-1 +- Upgrade to 3.3.2 (#1952200) + +* Sat Mar 06 2021 Robert Scheck 3.3.1p1-1 +- Upgrade to 3.3.1p1 + +* Fri Mar 05 2021 Robert Scheck 3.3.1-1 +- Upgrade to 3.3.1 (#1935540) +- Initial spec file for Fedora and Red Hat Enterprise Linux