commit 8ed3355873c86a1bdd82e764535f891909e364d8 Author: Adrian Schröter Date: Tue Dec 19 14:48:36 2023 +0100 Sync from SUSE:ALP:Source:Standard:1.0 libnscd revision 1dafb390643793e0a05986e41d25f0d7 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..7e5c800 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,3 @@ +libnscd1 + obsoletes "libnscd- <= " + provides "libnscd- = " diff --git a/decls.patch b/decls.patch new file mode 100644 index 0000000..982d51b --- /dev/null +++ b/decls.patch @@ -0,0 +1,12 @@ +Index: libnscd-2.0.2/src/libnscd.c +=================================================================== +--- libnscd-2.0.2.orig/src/libnscd.c ++++ libnscd-2.0.2/src/libnscd.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + #include "libnscd.h" + diff --git a/libnscd-2.0.2.tar.bz2 b/libnscd-2.0.2.tar.bz2 new file mode 100644 index 0000000..75a55c4 --- /dev/null +++ b/libnscd-2.0.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4806273ca84817f90199b577a21d1ad4ab757be01f7b2daa592902e88e7b05b +size 231208 diff --git a/libnscd.changes b/libnscd.changes new file mode 100644 index 0000000..5eb7002 --- /dev/null +++ b/libnscd.changes @@ -0,0 +1,94 @@ +------------------------------------------------------------------- +Mon Nov 6 08:58:06 UTC 2023 - Dominique Leuenberger + +- Fix build with RPM 4.19: unnumbered patches are no longer + supported. + +------------------------------------------------------------------- +Tue Sep 12 18:00:10 UTC 2017 - jengelh@inai.de + +- Drop ineffective --with-pic. Replace old RPM macros by new + constructs. The package summary was updated. + +------------------------------------------------------------------- +Wed Jul 5 14:27:45 UTC 2017 - schwab@suse.de + +- decls.patch: fix missing declarations + +------------------------------------------------------------------- +Mon Aug 18 15:13:54 UTC 2014 - fcrozat@suse.com + +- Fix obsoletes in baselibs.conf + +------------------------------------------------------------------- +Sat Jul 6 16:51:11 UTC 2013 - jengelh@inai.de + +- Implement shlib package naming guidelines +- Remove redundant %clean section + +------------------------------------------------------------------- +Tue Feb 7 05:31:45 UTC 2012 - crrodriguez@opensuse.org + +- put library back into %{_libdir} , /usr merge. + +------------------------------------------------------------------- +Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de + +- Use %_smp_mflags + +------------------------------------------------------------------- +Mon Dec 14 23:50:29 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source + +------------------------------------------------------------------- +Thu May 7 22:57:41 CEST 2009 - crrodriguez@suse.de + +- disable static libraries + +------------------------------------------------------------------- +Wed Jan 7 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Wed Nov 29 17:36:02 CET 2006 - kukuk@suse.de + +- Update to version 2.0.2 (fix memory leak) + +------------------------------------------------------------------- +Thu Oct 5 14:35:11 CEST 2006 - kukuk@suse.de + +- Update to version 2.0.1 (Makefile fixes) + +------------------------------------------------------------------- +Sat Jun 3 20:59:22 CEST 2006 - kukuk@suse.de + +- Update to version 2.0 (manual page, new nscd features) + +------------------------------------------------------------------- +Wed Jan 25 21:30:25 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Feb 22 14:09:53 CET 2005 - kukuk@suse.de + +- libtool is crap + +------------------------------------------------------------------- +Tue Feb 22 13:58:41 CET 2005 - kukuk@suse.de + +- Update to libnscd 1.1 (fix interface to nscd) [#65748] + +------------------------------------------------------------------- +Tue Sep 14 11:01:42 CEST 2004 - kukuk@suse.de + +- Initial release + diff --git a/libnscd.spec b/libnscd.spec new file mode 100644 index 0000000..4daa09f --- /dev/null +++ b/libnscd.spec @@ -0,0 +1,98 @@ +# +# spec file for package libnscd +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libnscd +%define lname libnscd1 +Version: 2.0.2 +Release: 0 +Summary: Library to Allow Applications to Communicate with nscd +License: LGPL-2.1-only +Group: Development/Libraries/C and C++ + +Source: http://ftp.suse.com/pub/people/kukuk/libnscd/libnscd-%version.tar.bz2 +Source2: baselibs.conf +Patch0: decls.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# bug437293 +%ifarch ppc64 +Obsoletes: libnscd-64bit +%endif + +%description +This library provides an interface for applications to NSCD (Name +Service Cache Daemon) and allows those applications, to flush the cache +for special services, if they have the necessary permissions. + +%package -n %lname +Summary: Library to Allow Applications to Communicate with nscd +# O/P added for 13.1 +License: LGPL-2.1-only +Group: System/Libraries +Obsoletes: libnscd < %version-%release +Provides: libnscd = %version-%release + +%description -n %lname +This library provides an interface for applications to NSCD (Name +Service Cache Daemon) and allows those applications, to flush the +cache for special services, if they have the necessary permissions. + +%package devel +Summary: Development files for libnscd +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +Requires: %lname = %version +# bug437293 +%ifarch ppc64 +Obsoletes: libnscd-devel-64bit +%endif +# + +%description devel +This package contains all necessary include files and libraries needed +to develop applications that needs to communicate with a running nscd. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --disable-static +make %{?_smp_mflags} + +%check +make check + +%install +%make_install +rm -fv %{buildroot}%{_libdir}/*.la + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%doc COPYING.LIB README NEWS +%{_libdir}/libnscd.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/libnscd.so +%{_mandir}/man3/nscd_flush_cache.3* + +%changelog