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