]>
Commit | Line | Data |
---|---|---|
492060fa JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
51bd595f | 5 | Summary: Library for NTLM authentication |
50c6fe48 | 6 | Summary(pl.UTF-8): Biblioteka do uwierzytelniania NTLM |
51bd595f | 7 | Name: libntlm |
490cb89b | 8 | Version: 1.7 |
2a9e6a30 | 9 | Release: 1 |
2d4ec471 | 10 | License: LGPL v2.1+ |
51bd595f | 11 | Group: Libraries |
490cb89b JB |
12 | Source0: https://download.savannah.nongnu.org/releases/libntlm/%{name}-%{version}.tar.gz |
13 | # Source0-md5: ecb7ffe83a97588e444eafa0d85c3c01 | |
14 | URL: https://gitlab.com/gsasl/libntlm/ | |
492060fa | 15 | BuildRequires: rpmbuild(macros) >= 1.527 |
51bd595f JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
2a9e6a30 | 19 | Libntlm library provides routines to manipulate the structures used |
51bd595f JB |
20 | for the client end of Microsoft NTLM authentication. |
21 | ||
22 | This code was taken mostly from the Samba project and was initially | |
23 | intended for use with Microsoft Exchange Server when it is configured | |
24 | to require NTLM authentication for clients of its IMAP server. | |
25 | ||
9ffc2437 | 26 | %description -l pl.UTF-8 |
2a9e6a30 | 27 | Biblioteka Libntlm dostarcza procedury do obróbki struktur używanych |
51bd595f JB |
28 | po stronie klienta mechanizmu uwierzytelniania Microsoft NTLM. |
29 | ||
9ffc2437 JR |
30 | Ten kod pochodzi w większości z projektu Samba i początkowo miał być |
31 | używany z serwerem Microsoft Exchange w przypadku, gdy został | |
32 | skonfigurowany aby wymagać uwierzytelnienia NTLM od klientów swojego | |
51bd595f JB |
33 | serwera IMAP. |
34 | ||
35 | %package devel | |
2a9e6a30 JB |
36 | Summary: Header files for Libntlm library |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Libntlm | |
51bd595f | 38 | Group: Development/Libraries |
744dc1a8 | 39 | Requires: %{name} = %{version}-%{release} |
51bd595f JB |
40 | |
41 | %description devel | |
2a9e6a30 | 42 | Header files for Libntlm library. |
51bd595f | 43 | |
9ffc2437 | 44 | %description devel -l pl.UTF-8 |
2a9e6a30 | 45 | Pliki nagłówkowe biblioteki Libntlm. |
51bd595f JB |
46 | |
47 | %package static | |
2a9e6a30 JB |
48 | Summary: Static Libntlm library |
49 | Summary(pl.UTF-8): Statyczna biblioteka Libntlm | |
51bd595f | 50 | Group: Development/Libraries |
744dc1a8 | 51 | Requires: %{name}-devel = %{version}-%{release} |
51bd595f JB |
52 | |
53 | %description static | |
2a9e6a30 | 54 | Static Libntlm library. |
51bd595f | 55 | |
9ffc2437 | 56 | %description static -l pl.UTF-8 |
2a9e6a30 | 57 | Statyczna biblioteka Libntlm. |
51bd595f JB |
58 | |
59 | %prep | |
60 | %setup -q | |
61 | ||
62 | %build | |
492060fa JP |
63 | %configure \ |
64 | %{__enable_disable static_libs static} | |
65 | ||
51bd595f JB |
66 | %{__make} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
2a9e6a30 JB |
74 | # no external dependencies, obsoleted by pkg-config |
75 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntlm.la | |
76 | ||
51bd595f JB |
77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
fc63afbf JB |
80 | %post -p /sbin/ldconfig |
81 | %postun -p /sbin/ldconfig | |
82 | ||
51bd595f JB |
83 | %files |
84 | %defattr(644,root,root,755) | |
85 | %doc AUTHORS ChangeLog NEWS README THANKS | |
86 | %attr(755,root,root) %{_libdir}/libntlm.so.*.*.* | |
a9311e31 | 87 | %attr(755,root,root) %ghost %{_libdir}/libntlm.so.0 |
51bd595f JB |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libntlm.so | |
51bd595f | 92 | %{_includedir}/ntlm.h |
0bbd4d55 | 93 | %{_pkgconfigdir}/libntlm.pc |
51bd595f | 94 | |
492060fa | 95 | %if %{with static_libs} |
51bd595f JB |
96 | %files static |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libntlm.a | |
492060fa | 99 | %endif |