]> git.pld-linux.org Git - packages/ntbtls.git/blame - ntbtls.spec
- release 2 (rebuild without libksba.la)
[packages/ntbtls.git] / ntbtls.spec
CommitLineData
a862738c
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Not Too Bad Transport Layer Security
6Summary(pl.UTF-8): Not Too Bad Transport Layer Security - "nie taka zła" implementacja TLS
7Name: ntbtls
30e6ab07 8Version: 0.1.2
1b2b4f21 9Release: 2
a862738c
JB
10License: GPL v3+
11Group: Libraries
12Source0: ftp://ftp.gnupg.org/gcrypt/ntbtls/%{name}-%{version}.tar.bz2
30e6ab07 13# Source0-md5: 81490fbbe551768019689071443f4e36
a862738c
JB
14URL: https://wiki.gnupg.org/NTBTLS
15BuildRequires: libgcrypt-devel >= 1.6.0
16BuildRequires: libgpg-error-devel >= 1.17
17BuildRequires: libksba-devel >= 1.2.0
18BuildRequires: zlib-devel
19Requires: libgcrypt >= 1.6.0
c381e32d 20Requires: libgpg-error >= 1.17
a862738c
JB
21Requires: libksba >= 1.2.0
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25NTBTLS ("Not Too Bad TLS") is a TLS client-only library developed by
26Werner Koch.
27
28It started (2014) as a stripped down fork of PolarSSL (now called mbed
29tls), using libgcrypt and existing GnuPG modules for X.509 certificate
30handling.
31
32%description -l pl.UTF-8
33MTBTLS ("Not Too Bad TLS" - nie taki zły TLS) to biblioteka
34(wyłącznie) kliencka TLS tworzona przez Wernera Kocha.
35
36Projekt wystartował w 2014 roku jako przycięte odgałęzienie projektu
37PolarSSL (teraz mającego nazwę mbed tls), wykorzystujące libgcrypt
38oraz istniejące moduły GnuPG do obsługi certyfikatów X.509.
39
40%package devel
41Summary: Header files for NTBTLS library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki NTBTLS
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45Requires: libgcrypt-devel >= 1.6.0
46Requires: libgpg-error-devel >= 1.17
47Requires: libksba-devel >= 1.2.0
48Requires: zlib-devel
49
50%description devel
51Header files for NTBTLS library.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe biblioteki NTBTLS.
55
56%package static
57Summary: Static NTBTLS library
58Summary(pl.UTF-8): Statyczna biblioteka NTBTLS
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
63Static NTBTLS library.
64
65%description static -l pl.UTF-8
66Statyczna biblioteka NTBTLS.
67
68%prep
69%setup -q
70
71%build
72%configure \
73 %{?with_static_libs:--enable-static}
74%{__make}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
79%{__make} install \
80 DESTDIR=$RPM_BUILD_ROOT
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post -p /sbin/ldconfig
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(644,root,root,755)
90%doc AUTHORS ChangeLog NEWS README
91%attr(755,root,root) %{_libdir}/libntbtls.so.*.*.*
92%attr(755,root,root) %ghost %{_libdir}/libntbtls.so.0
93
94%files devel
95%defattr(644,root,root,755)
96%attr(755,root,root) %{_bindir}/ntbtls-config
97%attr(755,root,root) %{_libdir}/libntbtls.so
98%{_libdir}/libntbtls.la
99%{_includedir}/ntbtls.h
100%{_aclocaldir}/ntbtls.m4
101
102%if %{with static_libs}
103%files static
104%defattr(644,root,root,755)
105%{_libdir}/libntbtls.a
106%endif
This page took 0.088716 seconds and 4 git commands to generate.