libntlm/libntlm.spec
2021-09-12 17:16:01 +08:00

46 lines
1.2 KiB
RPMSpec

Name: libntlm
Version: 1.6
Release: 1
Summary: NTLMv1 authentication library
License: LGPLv2+
URL: http://nongnu.org/libntlm
Source0: http://nongnu.org/libntlm/releases/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig gcc make
Provides: bundled(gnulib)
%description
A library for authenticating with Microsoft NTLMV1 challenge-response,
derived from Samba sources.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
sed -i 's|$(install_sh) -c|$(install_sh) -pc|g' Makefile
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -delete
%files
%doc AUTHORS ChangeLog COPYING README THANKS
%{_libdir}/%{name}.so.*
%files devel
%doc COPYING
%{_includedir}/ntlm.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.6-1
- package init