Accepting request 868776 from home:1Antoine1:branches:Base:System

- Package translations in procps-lang.

I don't know why nls was disabled.
osc blame shows that `--disable-nls` is passed to configure script since at least 2012-06-04.
Didn't find a reason in changelog.
So let's try to package them and see what happens.

There are also man pages translations but they doesn't get installed automatically for some reason + it's probably already provided by manpages-l10n (https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/issues/6) so let's keep it that way.

OBS-URL: https://build.opensuse.org/request/show/868776
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=210
This commit is contained in:
Dr. Werner Fink 2021-02-03 07:02:11 +00:00 committed by Git OBS Bridge
parent 1443193fd0
commit 6c9365e023
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 2 21:44:58 UTC 2021 - Antoine Belvire <antoine.belvire@opensuse.org>
- Package translations in procps-lang.
-------------------------------------------------------------------
Fri Oct 16 10:17:57 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package procps
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -24,6 +24,7 @@
%bcond_without bin2usr
%endif
%bcond_without pidof
%bcond_without nls
Name: procps
Version: 3.3.16
Release: 0
@ -88,6 +89,10 @@ Requires(post): %insserv_prereq
Requires(postun): %insserv_prereq
%endif
%if %{with nls}
%lang_package
%endif
%description
The procps package contains a set of system utilities that provide
system information. Procps includes ps, free, skill, snice, tload, top,
@ -167,7 +172,9 @@ export LFS_CFLAGS="$(getconf LFS_CFLAGS)"
%global optflags %{optflags} -D_GNU_SOURCE $LFS_CFLAGS -DCPU_ZEROTICS -DUSE_X_COLHDR -pipe
%configure \
--disable-static \
%if !%{with nls}
--disable-nls \
%endif
--disable-rpath \
--disable-kill \
%if !%{with pidof}
@ -275,6 +282,9 @@ ln -s /bin/pgrep %{buildroot}%{_bindir}/pgrep
ln -s /bin/pkill %{buildroot}%{_bindir}/pkill
ln -s /sbin/sysctl %{buildroot}%{_sbindir}/sysctl
%endif
%if %{with nls}
%find_lang procps-ng
%endif
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
@ -410,4 +420,8 @@ test $error = no || exit 1
%defattr (-,root,root,755)
%{_libdir}/libprocps.so.%{somajor}*
%if %{with nls}
%files lang -f procps-ng.lang
%endif
%changelog