]> git.pld-linux.org Git - packages/libntlm.git/blame - libntlm.spec
add static_libs bcond
[packages/libntlm.git] / libntlm.spec
CommitLineData
492060fa
JP
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
51bd595f 5Summary: Library for NTLM authentication
50c6fe48 6Summary(pl.UTF-8): Biblioteka do uwierzytelniania NTLM
51bd595f 7Name: libntlm
490cb89b 8Version: 1.7
2a9e6a30 9Release: 1
2d4ec471 10License: LGPL v2.1+
51bd595f 11Group: Libraries
490cb89b
JB
12Source0: https://download.savannah.nongnu.org/releases/libntlm/%{name}-%{version}.tar.gz
13# Source0-md5: ecb7ffe83a97588e444eafa0d85c3c01
14URL: https://gitlab.com/gsasl/libntlm/
492060fa 15BuildRequires: rpmbuild(macros) >= 1.527
51bd595f
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
2a9e6a30 19Libntlm library provides routines to manipulate the structures used
51bd595f
JB
20for the client end of Microsoft NTLM authentication.
21
22This code was taken mostly from the Samba project and was initially
23intended for use with Microsoft Exchange Server when it is configured
24to require NTLM authentication for clients of its IMAP server.
25
9ffc2437 26%description -l pl.UTF-8
2a9e6a30 27Biblioteka Libntlm dostarcza procedury do obróbki struktur używanych
51bd595f
JB
28po stronie klienta mechanizmu uwierzytelniania Microsoft NTLM.
29
9ffc2437
JR
30Ten kod pochodzi w większości z projektu Samba i początkowo miał być
31używany z serwerem Microsoft Exchange w przypadku, gdy został
32skonfigurowany aby wymagać uwierzytelnienia NTLM od klientów swojego
51bd595f
JB
33serwera IMAP.
34
35%package devel
2a9e6a30
JB
36Summary: Header files for Libntlm library
37Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Libntlm
51bd595f 38Group: Development/Libraries
744dc1a8 39Requires: %{name} = %{version}-%{release}
51bd595f
JB
40
41%description devel
2a9e6a30 42Header files for Libntlm library.
51bd595f 43
9ffc2437 44%description devel -l pl.UTF-8
2a9e6a30 45Pliki nagłówkowe biblioteki Libntlm.
51bd595f
JB
46
47%package static
2a9e6a30
JB
48Summary: Static Libntlm library
49Summary(pl.UTF-8): Statyczna biblioteka Libntlm
51bd595f 50Group: Development/Libraries
744dc1a8 51Requires: %{name}-devel = %{version}-%{release}
51bd595f
JB
52
53%description static
2a9e6a30 54Static Libntlm library.
51bd595f 55
9ffc2437 56%description static -l pl.UTF-8
2a9e6a30 57Statyczna 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
69rm -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
78rm -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
This page took 0.183416 seconds and 4 git commands to generate.