- Don't install into nsl subdirectories
OBS-URL: https://build.opensuse.org/package/show/network:NIS/libnsl?expand=0&rev=17
This commit is contained in:
parent
2d5fa9d1a1
commit
f0189cf37c
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 30 13:35:01 CEST 2017 - kukuk@suse.de
|
||||
|
||||
- Don't install into nsl subdirectories
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 18 19:53:51 UTC 2017 - kukuk@suse.com
|
||||
|
||||
|
21
libnsl.spec
21
libnsl.spec
@ -66,20 +66,18 @@ The NIS+ API is deprecated and only there "as is".
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_libdir}/nsl --includedir=%{_includedir}/nsl
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
# Don't strip .symtab to allow debugging
|
||||
export STRIP_KEEP_SYMTAB=libnsl*.so*
|
||||
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
|
||||
export NO_BRP_CHECK_ROOTFS=true
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
mv -v %{buildroot}/%{_libdir}/nsl/%{name}.so.2* %{buildroot}%{_libdir}/
|
||||
# Adjust devel so link
|
||||
rm -v %{buildroot}/%{_libdir}/nsl/%{name}.{a,la,so}
|
||||
ln -s -v %{_libdir}/%{name}.so.2 %{buildroot}%{_libdir}/nsl/%{name}.so
|
||||
mv -v %{buildroot}/%{_libdir}/nsl/pkgconfig %{buildroot}/%{_libdir}
|
||||
# Remove .la file
|
||||
rm %{buildroot}%{_libdir}/%{name}.la
|
||||
|
||||
# temporary remove header file conflicting with sunrpc
|
||||
rm %{buildroot}%{_includedir}/rpcsvc/yppasswd.h
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
@ -94,10 +92,9 @@ make %{?_smp_mflags} check
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/nsl/
|
||||
%{_libdir}/nsl/libnsl.so
|
||||
%dir %{_includedir}/nsl/
|
||||
%{_includedir}/nsl/*
|
||||
%{_libdir}/libnsl.so
|
||||
%{_libdir}/libnsl.a
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user