[packages/ntbtls] - new
qboosh
qboosh at pld-linux.org
Sun Apr 9 20:06:25 CEST 2017
commit a862738c8b8c03b3a351c54a9512e00141ec973f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 9 20:06:23 2017 +0200
- new
ntbtls.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
---
diff --git a/ntbtls.spec b/ntbtls.spec
new file mode 100644
index 0000000..debe0ca
--- /dev/null
+++ b/ntbtls.spec
@@ -0,0 +1,106 @@
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+#
+Summary: Not Too Bad Transport Layer Security
+Summary(pl.UTF-8): Not Too Bad Transport Layer Security - "nie taka zła" implementacja TLS
+Name: ntbtls
+Version: 0.1.1
+Release: 1
+License: GPL v3+
+Group: Libraries
+Source0: ftp://ftp.gnupg.org/gcrypt/ntbtls/%{name}-%{version}.tar.bz2
+# Source0-md5: 5f6eaefd9fe7d10fef84275cd51b191e
+URL: https://wiki.gnupg.org/NTBTLS
+BuildRequires: libgcrypt-devel >= 1.6.0
+BuildRequires: libgpg-error-devel >= 1.17
+BuildRequires: libksba-devel >= 1.2.0
+BuildRequires: zlib-devel
+Requires: libgcrypt >= 1.6.0
+Requires: libgpg-devel >= 1.17
+Requires: libksba >= 1.2.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+NTBTLS ("Not Too Bad TLS") is a TLS client-only library developed by
+Werner Koch.
+
+It started (2014) as a stripped down fork of PolarSSL (now called mbed
+tls), using libgcrypt and existing GnuPG modules for X.509 certificate
+handling.
+
+%description -l pl.UTF-8
+MTBTLS ("Not Too Bad TLS" - nie taki zły TLS) to biblioteka
+(wyłącznie) kliencka TLS tworzona przez Wernera Kocha.
+
+Projekt wystartował w 2014 roku jako przycięte odgałęzienie projektu
+PolarSSL (teraz mającego nazwę mbed tls), wykorzystujące libgcrypt
+oraz istniejące moduły GnuPG do obsługi certyfikatów X.509.
+
+%package devel
+Summary: Header files for NTBTLS library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki NTBTLS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libgcrypt-devel >= 1.6.0
+Requires: libgpg-error-devel >= 1.17
+Requires: libksba-devel >= 1.2.0
+Requires: zlib-devel
+
+%description devel
+Header files for NTBTLS library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki NTBTLS.
+
+%package static
+Summary: Static NTBTLS library
+Summary(pl.UTF-8): Statyczna biblioteka NTBTLS
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static NTBTLS library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka NTBTLS.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ %{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} 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 AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libntbtls.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libntbtls.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ntbtls-config
+%attr(755,root,root) %{_libdir}/libntbtls.so
+%{_libdir}/libntbtls.la
+%{_includedir}/ntbtls.h
+%{_aclocaldir}/ntbtls.m4
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libntbtls.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ntbtls.git/commitdiff/a862738c8b8c03b3a351c54a9512e00141ec973f
More information about the pld-cvs-commit
mailing list