Accepting request 483858 from devel:CaaSP
OBS-URL: https://build.opensuse.org/request/show/483858 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnss_usrfiles?expand=0&rev=1
This commit is contained in:
commit
994cd0854c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libnss_usrfiles2
|
3
libnss_usrfiles-2.25.tar.bz2
Normal file
3
libnss_usrfiles-2.25.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:76ee1fffc0ad468633c534ae640b77dae78ccdfc03800d3f888fb7424ae339b4
|
||||
size 255309
|
26
libnss_usrfiles.changes
Normal file
26
libnss_usrfiles.changes
Normal file
@ -0,0 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 14:37:03 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- RPM group correction
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 27 13:47:08 CEST 2017 - kukuk@suse.de
|
||||
|
||||
- Add docu and /usr/etc as directory
|
||||
- Adjust nsswitch.conf on openSUSE, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 22 15:20:33 CET 2017 - kukuk@suse.de
|
||||
|
||||
- Move Requires to correct sub-package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 13:03:55 CET 2017 - kukuk@suse.de
|
||||
|
||||
- Filter out GLIBC_PRIVATE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 20 10:34:59 UTC 2017 - kukuk@suse.com
|
||||
|
||||
- Initial version
|
||||
|
79
libnss_usrfiles.spec
Normal file
79
libnss_usrfiles.spec
Normal file
@ -0,0 +1,79 @@
|
||||
#
|
||||
# spec file for package libnss_usrfiles
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# We need some private NSS functions
|
||||
%define __filter_GLIBC_PRIVATE 1
|
||||
Name: libnss_usrfiles
|
||||
Version: 2.25
|
||||
Release: 0
|
||||
Summary: NSS usrfiles plugin for glibc
|
||||
License: LGPL-2.1
|
||||
Group: System/Base
|
||||
Url: http://github.com/thkukuk/libnss_usrfiles
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
The NSS usrfiles plugin additionally looks in %{_prefix}%{_sysconfdir} for passwd and
|
||||
group data.
|
||||
|
||||
%package -n libnss_usrfiles2
|
||||
Summary: NSS usrfiles plugin for glibc
|
||||
Group: System/Libraries
|
||||
# we need cp
|
||||
Requires(post): coreutils
|
||||
Requires(post): glibc
|
||||
Requires(post): sed
|
||||
|
||||
%description -n libnss_usrfiles2
|
||||
The NSS usrfiles plugin looks additional in %{_prefix}%{_sysconfdir} for passwd and
|
||||
group data.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_lib}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
rm -v %{buildroot}/%{_lib}/%{name}.{a,la,so}
|
||||
mkdir -p %{buildroot}%{_prefix}/etc
|
||||
|
||||
%post -n libnss_usrfiles2
|
||||
/sbin/ldconfig
|
||||
cp -a %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.nss_usrfiles
|
||||
%if 0%{?suse_version} < 1330
|
||||
sed -i -e 's|^passwd: compat$|passwd: files usrfiles|g' -e 's|^group: compat$|group: files usrfiles|g' %{_sysconfdir}/nsswitch.conf
|
||||
%else
|
||||
sed -i -e 's|^passwd: compat [NOTFOUND=return] files$|passwd: files usrfiles|g' -e 's|^group: compat [NOTFOUND=return] files$|group: files usrfiles|g' %{_sysconfdir}/nsswitch.conf
|
||||
%endif
|
||||
|
||||
%postun -n libnss_usrfiles2 -p /sbin/ldconfig
|
||||
|
||||
%files -n libnss_usrfiles2
|
||||
%defattr(-,root,root)
|
||||
%doc README.md COPYING
|
||||
/%{_lib}/libnss_usrfiles.so.2*
|
||||
%dir %{_prefix}/etc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user