2.39-1: upgrade, add subpackage i18n, remove user

This commit is contained in:
Karel Zak 2023-05-18 11:36:49 +02:00
parent c87ed81c2c
commit 844dcc152c
3 changed files with 37 additions and 26 deletions

1
.gitignore vendored
View File

@ -90,3 +90,4 @@
/util-linux-2.39-rc1.tar.xz /util-linux-2.39-rc1.tar.xz
/util-linux-2.39-rc2.tar.xz /util-linux-2.39-rc2.tar.xz
/util-linux-2.39-rc3.tar.xz /util-linux-2.39-rc3.tar.xz
/util-linux-2.39.tar.xz

View File

@ -1 +1 @@
SHA512 (util-linux-2.39-rc3.tar.xz) = 8a93d32a5ceb38d50a4b2c8bfa48bcab7ec9b758c89b5a1a4f7fd74558dce37385bd7ea203345148d4389de4ea60ec42058f9d7889a8075d3e616773d085427e SHA512 (util-linux-2.39.tar.xz) = 3d59a0f114c06be19ef7f86fca37ba5b9073823d011b3fc37997ddb00124b4505ea32903b78798a64dffbccf0ba645a692678ee845cc65a5b321824448a82a94

View File

@ -2,12 +2,12 @@
Summary: Collection of basic system utilities Summary: Collection of basic system utilities
Name: util-linux Name: util-linux
Version: 2.39 Version: 2.39
Release: 0.5%{?dist} Release: 1%{?dist}
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
URL: https://en.wikipedia.org/wiki/Util-linux URL: https://en.wikipedia.org/wiki/Util-linux
### Macros ### Macros
%global upstream_version %{version}-rc3 %global upstream_version %{version}
%global upstream_major %(eval echo %{version} | sed -e 's/\([[:digit:]]*\)\.\([[:digit:]]*\)\.[[:digit:]]*$/\1.\2/') %global upstream_major %(eval echo %{version} | sed -e 's/\([[:digit:]]*\)\.\([[:digit:]]*\)\.[[:digit:]]*$/\1.\2/')
%global compldir %{_datadir}/bash-completion/completions/ %global compldir %{_datadir}/bash-completion/completions/
@ -28,20 +28,20 @@ BuildRequires: popt-devel
BuildRequires: libutempter-devel BuildRequires: libutempter-devel
BuildRequires: systemd-devel BuildRequires: systemd-devel
BuildRequires: systemd BuildRequires: systemd
BuildRequires: libuser-devel
BuildRequires: libcap-ng-devel BuildRequires: libcap-ng-devel
BuildRequires: %{pypkg}-devel BuildRequires: %{pypkg}-devel
BuildRequires: gcc BuildRequires: gcc
BuildRequires: rubygem-asciidoctor BuildRequires: rubygem-asciidoctor
BuildRequires: po4a
%ifarch ppc64le %ifarch ppc64le
BuildRequires: librtas-devel BuildRequires: librtas-devel
%endif %endif
# enable if make changes to build-system # enable if make changes to build-system
BuildRequires: autoconf #BuildRequires: autoconf
BuildRequires: automake #BuildRequires: automake
BuildRequires: libtool #BuildRequires: libtool
BuildRequires: bison #BuildRequires: bison
### Sources ### Sources
Source0: https://www.kernel.org/pub/linux/utils/util-linux/v%{upstream_major}/util-linux-%{upstream_version}.tar.xz Source0: https://www.kernel.org/pub/linux/utils/util-linux/v%{upstream_major}/util-linux-%{upstream_version}.tar.xz
@ -272,13 +272,14 @@ supplied by the libmount library to work with mount tables (fstab,
mountinfo, etc) and mount filesystems. mountinfo, etc) and mount filesystems.
%package -n util-linux-user %package -n util-linux-i18n
Summary: util-linux utilities based on libuser Summary: Internationalization pack for util-linux
Requires: util-linux = %{version}-%{release} Requires: util-linux = %{version}-%{release}
License: GPLv2 License: GPLv2
%description -n util-linux-user %description -n util-linux-i18n
chfn and chsh utilities with dependence on libuser. Internationalization pack with translated messages and manual pages for
util-linux commands.
%prep %prep
@ -298,6 +299,7 @@ export DAEMON_CFLAGS="$SUID_CFLAGS"
export DAEMON_LDFLAGS="$SUID_LDFLAGS" export DAEMON_LDFLAGS="$SUID_LDFLAGS"
%configure \ %configure \
--with-systemdsystemunitdir=%{_unitdir} \ --with-systemdsystemunitdir=%{_unitdir} \
--without-user \
--disable-silent-rules \ --disable-silent-rules \
--disable-bfs \ --disable-bfs \
--disable-pg \ --disable-pg \
@ -414,10 +416,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/lib{uuid,blkid,mount,smartcols,fdisk}.a
rm -f $RPM_BUILD_ROOT%{compldir}/{mount,umount} rm -f $RPM_BUILD_ROOT%{compldir}/{mount,umount}
# find MO files # find MO files
%find_lang %name %find_lang %{name} --all-name --with-man
# the files section supports only one -f option... touch %{name}.files
mv %{name}.lang %{name}.files
# create list of setarch(8) symlinks # create list of setarch(8) symlinks
find $RPM_BUILD_ROOT%{_bindir}/ -regextype posix-egrep -type l \ find $RPM_BUILD_ROOT%{_bindir}/ -regextype posix-egrep -type l \
@ -471,12 +472,16 @@ fi
%config(noreplace) %{_sysconfdir}/pam.d/su-l %config(noreplace) %{_sysconfdir}/pam.d/su-l
%config(noreplace) %{_sysconfdir}/pam.d/runuser %config(noreplace) %{_sysconfdir}/pam.d/runuser
%config(noreplace) %{_sysconfdir}/pam.d/runuser-l %config(noreplace) %{_sysconfdir}/pam.d/runuser-l
%config(noreplace) %{_sysconfdir}/pam.d/chfn
%config(noreplace) %{_sysconfdir}/pam.d/chsh
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime
%attr(4755,root,root) %{_bindir}/su %attr(4755,root,root) %{_bindir}/su
%attr(755,root,root) %{_bindir}/login %attr(755,root,root) %{_bindir}/login
%attr(2755,root,tty) %{_bindir}/write %attr(2755,root,tty) %{_bindir}/write
%attr(4711,root,root) %{_bindir}/chfn
%attr(4711,root,root) %{_bindir}/chsh
%{_unitdir}/fstrim.* %{_unitdir}/fstrim.*
@ -530,7 +535,9 @@ fi
%{_bindir}/wdctl %{_bindir}/wdctl
%{_bindir}/whereis %{_bindir}/whereis
%{_mandir}/man1/cal.1* %{_mandir}/man1/cal.1*
%{_mandir}/man1/chfn.1*
%{_mandir}/man1/choom.1* %{_mandir}/man1/choom.1*
%{_mandir}/man1/chsh.1*
%{_mandir}/man1/col.1* %{_mandir}/man1/col.1*
%{_mandir}/man1/colcrt.1* %{_mandir}/man1/colcrt.1*
%{_mandir}/man1/colrm.1* %{_mandir}/man1/colrm.1*
@ -645,7 +652,9 @@ fi
%{compldir}/blkzone %{compldir}/blkzone
%{compldir}/cal %{compldir}/cal
%{compldir}/chcpu %{compldir}/chcpu
%{compldir}/chfn
%{compldir}/chmem %{compldir}/chmem
%{compldir}/chsh
%{compldir}/col %{compldir}/col
%{compldir}/colcrt %{compldir}/colcrt
%{compldir}/colrm %{compldir}/colrm
@ -653,6 +662,7 @@ fi
%{compldir}/ctrlaltdel %{compldir}/ctrlaltdel
%{compldir}/delpart %{compldir}/delpart
%{compldir}/eject %{compldir}/eject
%{compldir}/fadvise
%{compldir}/fallocate %{compldir}/fallocate
%{compldir}/fdisk %{compldir}/fdisk
%{compldir}/fincore %{compldir}/fincore
@ -707,6 +717,7 @@ fi
%{compldir}/uuidgen %{compldir}/uuidgen
%{compldir}/uuidparse %{compldir}/uuidparse
%{compldir}/wall %{compldir}/wall
%{compldir}/waitpid
%{compldir}/wdctl %{compldir}/wdctl
%{compldir}/whereis %{compldir}/whereis
%{compldir}/wipefs %{compldir}/wipefs
@ -828,17 +839,6 @@ fi
/etc/mtab /etc/mtab
%files -n util-linux-user
%config(noreplace) %{_sysconfdir}/pam.d/chfn
%config(noreplace) %{_sysconfdir}/pam.d/chsh
%attr(4711,root,root) %{_bindir}/chfn
%attr(4711,root,root) %{_bindir}/chsh
%{_mandir}/man1/chfn.1*
%{_mandir}/man1/chsh.1*
%{compldir}/chfn
%{compldir}/chsh
%files -n uuidd %files -n uuidd
%license Documentation/licenses/COPYING.GPL-2.0-or-later %license Documentation/licenses/COPYING.GPL-2.0-or-later
%{_mandir}/man8/uuidd.8* %{_mandir}/man8/uuidd.8*
@ -917,7 +917,17 @@ fi
%license Documentation/licenses/COPYING.LGPL-2.1-or-later libmount/COPYING %license Documentation/licenses/COPYING.LGPL-2.1-or-later libmount/COPYING
%{_libdir}/python*/site-packages/libmount/ %{_libdir}/python*/site-packages/libmount/
%files -n util-linux-i18n -f %{name}.lang
%changelog %changelog
* Thu May 18 2023 Karel Zak <kzak@redhat.com> - 2.39-1
- upgrade to v2.39
- remove dependence on libuser
- remove util-linux-user subpackage
- enable translated man pages
- add util-linux-i18n subpackage
* Wed Apr 19 2023 Karel Zak <kzak@redhat.com> - 2.39-0.5 * Wed Apr 19 2023 Karel Zak <kzak@redhat.com> - 2.39-0.5
- upgrade to v2.39-rc3 (fixes XFS and rw/ro issues) - upgrade to v2.39-rc3 (fixes XFS and rw/ro issues)