rebuilt for aarch64 and with glibc 2.33 patch [release 2.0.2-2mamba;Sat May 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 05:12:01 +01:00
parent e6377e0bac
commit f859e9e2c6
2 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,10 @@
--- libnscd-2.0.2/src/libnscd.c.orig 2021-05-01 14:27:00.797366797 +0100
+++ libnscd-2.0.2/src/libnscd.c 2021-05-01 14:27:27.936785018 +0100
@@ -26,6 +26,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
+#include <sys/uio.h>
#include <sys/un.h>
#include "libnscd.h"

View File

@ -1,6 +1,6 @@
Name: libnscd Name: libnscd
Version: 2.0.2 Version: 2.0.2
Release: 1mamba Release: 2mamba
Summary: An easy interface for normal programs to communicate with the nscd daemon Summary: An easy interface for normal programs to communicate with the nscd daemon
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -8,11 +8,11 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/fd00/yacp/tree/master/libnscd 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 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 License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
This library provides an easy interface for normal programs to communicate with the nscd daemon from the GNU C Library. This library provides an easy interface for normal programs to communicate with the nscd daemon from the GNU C Library.
@ -21,8 +21,6 @@ This library provides an easy interface for normal programs to communicate with
Group: Development/Libraries Group: Development/Libraries
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
## note: you can add this requirement if .pc files are provided by this package
#Requires: pkg-config
%description devel %description devel
This package contains libraries and header files for developing applications that use %{name}. This package contains libraries and header files for developing applications that use %{name}.
@ -31,9 +29,17 @@ This package contains libraries and header files for developing applications tha
%prep %prep
%setup -q %setup -q
%patch0 -p1
%ifarch aarch64
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%endif
%build %build
%configure %configure \
--disable-static \
--with-pic
%make %make
%install %install
@ -54,12 +60,14 @@ This package contains libraries and header files for developing applications tha
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/libnscd.h %{_includedir}/libnscd.h
%{_libdir}/libnscd.a
%{_libdir}/libnscd.la %{_libdir}/libnscd.la
%{_libdir}/libnscd.so %{_libdir}/libnscd.so
%{_mandir}/man3/nscd_flush_cache.3* %{_mandir}/man3/nscd_flush_cache.3*
%doc ChangeLog NEWS README %doc ChangeLog NEWS README
%changelog %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 * Sun Apr 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1mamba
- package created using the webbuild interface - package created using the webbuild interface