libnscd/libnscd.spec

74 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: libnscd
Version: 2.0.2
Release: 2mamba
Summary: An easy interface for normal programs to communicate with the nscd daemon
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/fd00/yacp/tree/master/libnscd
Source: http://ftp.sunet.se/pub/Linux/distributions/suse/people/kukuk/libnscd/libnscd-%{version}.tar.bz2
Patch0: libnscd-2.0.2-glibc-2.33.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
This library provides an easy interface for normal programs to communicate with the nscd daemon from the GNU C Library.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p1
%ifarch aarch64
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%endif
%build
%configure \
--disable-static \
--with-pic
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libnscd.so.*
%doc COPYING COPYING.LIB
%files devel
%defattr(-,root,root)
%{_includedir}/libnscd.h
%{_libdir}/libnscd.la
%{_libdir}/libnscd.so
%{_mandir}/man3/nscd_flush_cache.3*
%doc ChangeLog NEWS README
%changelog
* Sat May 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-2mamba
- rebuilt for aarch64 and with glibc 2.33 patch
* Sun Apr 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1mamba
- package created using the webbuild interface