Accepting request 530074 from home:jengelh:branches:Base:System

- Rectify RPM groups and summaries,
  and update old macro/variable constructs.

OBS-URL: https://build.opensuse.org/request/show/530074
OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=61
This commit is contained in:
Dirk Mueller 2017-10-05 15:34:15 +00:00 committed by Git OBS Bridge
parent e5b640e2fe
commit 8aed418e53
2 changed files with 18 additions and 15 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 30 08:59:27 UTC 2017 - jengelh@inai.de
- Rectify RPM groups and summaries,
and update old macro/variable constructs.
-------------------------------------------------------------------
Wed Jul 5 13:22:53 UTC 2017 - schwab@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package libtirpc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -22,7 +22,7 @@ Version: 1.0.1
Release: 0
Summary: Transport Independent RPC Library
License: BSD-4-Clause
Group: System/Libraries
Group: Development/Libraries/C and C++
%if 0%{suse_version} >= 1300
BuildRequires: krb5-mini-devel
%else
@ -60,7 +60,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
The Transport Independent RPC library (TI-RPC) is a replacement for the
standard SunRPC library in glibc which does not support IPv6 addresses.
This implementation allows the support of other transports than UDP and
TCP over IPv4
TCP over IPv4.
%package -n libtirpc3
Summary: Transport Independent RPC Library
@ -71,7 +71,7 @@ Requires: libtirpc-netconfig >= %{version}
The Transport Independent RPC library (TI-RPC) is a replacement for the
standard SunRPC library in glibc which does not support IPv6 addresses.
This implementation allows the support of other transports than UDP and
TCP over IPv4
TCP over IPv4.
%package netconfig
Summary: Netconfig configuration file for TI-RPC Library
@ -84,7 +84,7 @@ the TI-RPC Library.
%package devel
# src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD
# advertising clause
Summary: Transport Independent RPC Library
Summary: Development files for the Transport Independent RPC Library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libtirpc3 = %{version}
@ -93,7 +93,7 @@ Requires: libtirpc3 = %{version}
The Transport Independent RPC library (TI-RPC) is a replacement for the
standard SunRPC library in glibc which does not support IPv6 addresses.
This implementation allows the support of other transports than UDP and
TCP over IPv4
TCP over IPv4.
%prep
%setup -q -n %name-%version
@ -125,22 +125,19 @@ autoreconf -fiv
--disable-gssapi \
%endif
--libdir=/%{_lib}
%{__make} %{?_smp_mflags}
make %{?_smp_mflags}
%install
# Don't strip .symtab to allow debugging
export STRIP_KEEP_SYMTAB=libtirpc*.so*
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
export NO_BRP_CHECK_ROOTFS=true
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
# move devel so link to _libdir
mkdir -p $RPM_BUILD_ROOT%{_libdir}
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
%{__rm} -v %{buildroot}/%{_lib}/%{name}.{la,so}
mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_libdir}
ln -sv /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
rm -v %{buildroot}/%{_lib}/%{name}.{la,so}
mv -v %{buildroot}/%{_lib}/pkgconfig %{buildroot}/%{_libdir}
%post -n libtirpc3 -p /sbin/ldconfig