[packages/nfs-utils] - fix libnfsidmap packaging - rel 2
baggins
baggins at pld-linux.org
Thu Jan 31 00:05:59 CET 2019
commit 1b873794c0f4b1565f58f25554f2626557b36907
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Jan 31 00:05:40 2019 +0100
- fix libnfsidmap packaging
- rel 2
libnfsidmap-pluginpath.patch | 10 ++++++++++
nfs-utils.spec | 31 +++++++++++++++++++------------
2 files changed, 29 insertions(+), 12 deletions(-)
---
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 35517b7..2165b9f 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -11,7 +11,7 @@ Summary(ru.UTF-8): Утилиты для NFS и демоны поддержки
Summary(uk.UTF-8): Утиліти для NFS та демони підтримки для NFS-сервера ядра
Name: nfs-utils
Version: 2.3.3
-Release: 1
+Release: 2
License: GPL v2
Group: Networking/Daemons
Source0: https://www.kernel.org/pub/linux/utils/nfs-utils/%{version}/%{name}-%{version}.tar.xz
@@ -48,6 +48,7 @@ Patch2: %{name}-subsys.patch
Patch3: %{name}-union-mount.patch
Patch4: %{name}-heimdal.patch
Patch5: %{name}-x32.patch
+Patch6: libnfsidmap-pluginpath.patch
URL: http://linux-nfs.org/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
@@ -227,6 +228,7 @@ Statyczna biblioteka libnfsidmap.
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
%{__libtoolize}
@@ -258,7 +260,7 @@ Statyczna biblioteka libnfsidmap.
--with-systemd=%{systemdunitdir} \
--with-tcp-wrappers
-%{__make}
+%{__make} pkgplugindir=/%{_lib}/libnfsidmap
# all
%install
@@ -269,12 +271,17 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,exports.d,modprobe.d} \
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
+ pkgplugindir=/%{_lib}/libnfsidmap \
generator_dir=/lib/systemd/system-generators
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfsidmap.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfsidmap/*.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfsidmap/*.a
+%{__rm} $RPM_BUILD_ROOT/%{_lib}/libnfsidmap/*.{a,la}
+mv -f $RPM_BUILD_ROOT%{_libdir}/libnfsidmap.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libnfsidmap.so.*.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/libnfsidmap.so
+
+install -p support/nfsidmap/idmapd.conf $RPM_BUILD_ROOT%{_sysconfdir}
install -p utils/mount/nfsmount.conf $RPM_BUILD_ROOT/etc
%{__rm} $RPM_BUILD_ROOT%{_sbindir}/start-statd
@@ -582,16 +589,16 @@ fi
%files -n libnfsidmap
%defattr(644,root,root,755)
-#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
-%attr(755,root,root) %{_libdir}/libnfsidmap.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libnfsidmap.so.1
-%dir %{_libdir}/libnfsidmap
-%attr(755,root,root) %{_libdir}/libnfsidmap/nsswitch.so
-%attr(755,root,root) %{_libdir}/libnfsidmap/static.so
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
+%attr(755,root,root) /%{_lib}/libnfsidmap.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libnfsidmap.so.1
+%dir /%{_lib}/libnfsidmap
+%attr(755,root,root) /%{_lib}/libnfsidmap/nsswitch.so
+%attr(755,root,root) /%{_lib}/libnfsidmap/static.so
# -plugin-ldap subpackage?
-%attr(755,root,root) %{_libdir}/libnfsidmap/umich_ldap.so
+%attr(755,root,root) /%{_lib}/libnfsidmap/umich_ldap.so
# -plugin-gums subpackage (BR: some datagrid software - VOMS?)
-#%attr(755,root,root) %{_libdir}/libnfsidmap/gums.so
+#%attr(755,root,root) /%{_lib}/libnfsidmap/gums.so
%{_mandir}/man5/idmapd.conf.5*
%files -n libnfsidmap-devel
diff --git a/libnfsidmap-pluginpath.patch b/libnfsidmap-pluginpath.patch
new file mode 100644
index 0000000..6d9e04b
--- /dev/null
+++ b/libnfsidmap-pluginpath.patch
@@ -0,0 +1,10 @@
+--- nfs-utils-2.3.3/support/nfsidmap/Makefile.am.orig 2018-09-06 20:09:08.000000000 +0200
++++ nfs-utils-2.3.3/support/nfsidmap/Makefile.am 2019-01-30 23:56:24.697893513 +0100
+@@ -25,6 +25,7 @@
+ # <age> The number of previous additional interfaces supported
+ # by this library.
+
++libnfsidmap_la_CFLAGS = -DPATH_PLUGINS=\"$(pkgplugindir)\"
+ libnfsidmap_la_SOURCES = libnfsidmap.c nfsidmap_common.c
+ libnfsidmap_la_LDFLAGS = -version-info 1:0:0
+ libnfsidmap_la_LIBADD = -ldl ../../support/nfs/libnfsconf.la
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nfs-utils.git/commitdiff/1b873794c0f4b1565f58f25554f2626557b36907
More information about the pld-cvs-commit
mailing list