]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- fix libnfsidmap packaging auto/th/nfs-utils-2.3.3-2
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 30 Jan 2019 23:05:40 +0000 (00:05 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 30 Jan 2019 23:05:40 +0000 (00:05 +0100)
- rel 2

libnfsidmap-pluginpath.patch [new file with mode: 0644]
nfs-utils.spec

diff --git a/libnfsidmap-pluginpath.patch b/libnfsidmap-pluginpath.patch
new file mode 100644 (file)
index 0000000..6d9e04b
--- /dev/null
@@ -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
index 35517b70ac5e666744afe2b8768194eb2b2f28db..2165b9f6eb5eda6dd8b7677eed6ab66c9163a5e8 100644 (file)
@@ -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
This page took 0.042198 seconds and 4 git commands to generate.