Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
cd84dd67a8 | |||
9719ba5b42 |
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 19:52:40 UTC 2025 - Martin Schreiner <martin.schreiner@suse.com>
|
||||
|
||||
- Migrate away from update-alternatives (bsc#1240101).
|
||||
tar-rmt now conflicts with other providers of /usr/bin/rmt.
|
||||
- Upon installation of the newer packages, the tar-rmt alternatives
|
||||
are purged from the system.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 10 20:09:28 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
|
||||
|
||||
|
15
tar.spec
15
tar.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package tar
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -88,8 +88,8 @@ Upstream testsuite for the package
|
||||
Summary: Remote tape drive control server by GNU
|
||||
Group: Productivity/Archiving/Backup
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: rmt
|
||||
Conflicts: rmt
|
||||
|
||||
%description rmt
|
||||
Provides remote access to files and devices for tar, cpio
|
||||
@@ -152,10 +152,6 @@ cp -r tests %{buildroot}%{_localstatedir}/lib/tests/tar
|
||||
rm %{buildroot}%{_localstatedir}/lib/tests/tar/*.{c,h,o}
|
||||
rm %{buildroot}%{_localstatedir}/lib/tests/tar/package.m4
|
||||
rm %{buildroot}%{_localstatedir}/lib/tests/tar/{atconfig,atlocal,Makefile}*
|
||||
# Alternatives system
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
ln -sf %{_sysconfdir}/alternatives/rmt %{buildroot}%{_bindir}/rmt
|
||||
ln -sf %{_sysconfdir}/alternatives/rmt.1%{ext_man} %{buildroot}%{_mandir}/man1/rmt.1%{ext_man}
|
||||
%if 0%{?suse_version} < 1550
|
||||
mkdir -p %{buildroot}/bin
|
||||
ln -s %{_bindir}/%{name} %{buildroot}/bin
|
||||
@@ -163,11 +159,6 @@ ln -s %{_bindir}/%{name} %{buildroot}/bin
|
||||
%find_lang %{name}
|
||||
|
||||
%post rmt
|
||||
%{_sbindir}/update-alternatives --force \
|
||||
--install %{_bindir}/rmt rmt %{_bindir}/gnurmt 10 \
|
||||
--slave %{_mandir}/man1/rmt.1%{ext_man} rmt.1%{ext_man} %{_mandir}/man1/gnurmt.1%{ext_man}
|
||||
|
||||
%postun rmt
|
||||
if [ ! -f %{_bindir}/gnurmt ] ; then
|
||||
"%{_sbindir}/update-alternatives" --remove rmt %{_bindir}/gnurmt
|
||||
fi
|
||||
@@ -191,8 +182,6 @@ fi
|
||||
%{_bindir}/gnurmt
|
||||
%ghost %{_mandir}/man1/rmt.1%{ext_man}
|
||||
%{_mandir}/man1/gnurmt.1%{?ext_man}
|
||||
%ghost %{_sysconfdir}/alternatives/rmt
|
||||
%ghost %{_sysconfdir}/alternatives/rmt.1%{ext_man}
|
||||
|
||||
%files doc
|
||||
%dir %{_docdir}/%{name}
|
||||
|
Reference in New Issue
Block a user