Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 575f6a6814 | |||
|
|
ab9d49db21 | ||
| 968698e062 | |||
| 6b8b5820fd | |||
| d2c185c1d3 | |||
| ad44e760cd |
20
cpio.changes
20
cpio.changes
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 07:36:29 UTC 2025 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- Downgrade cpio-mt and rmt recommends to suggests (boo#1244434)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 05:28:30 UTC 2025 - Martin Schreiner <martin.schreiner@suse.com>
|
||||
|
||||
- Migrate away from update-alternatives (bsc#1240092).
|
||||
cpio-mt now conflicts with other providers of /usr/bin/mt.
|
||||
- Upon installation of the newer packages, the cpio-mt alternatives
|
||||
are purged from the system.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 21 12:15:31 UTC 2025 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Use -std=gnu11 to avoid extra diagnostics when calling an
|
||||
unprototyped function which is no longer possible with C23,
|
||||
the new default with GCC 15.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 5 11:02:45 UTC 2024 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
|
||||
26
cpio.spec
26
cpio.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cpio
|
||||
#
|
||||
# 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
|
||||
@@ -46,8 +46,8 @@ BuildRequires: autoconf >= 2.71
|
||||
BuildRequires: automake
|
||||
#Requires(post): %{xinstall_info_prereq}
|
||||
#Requires(preun): %{xinstall_info_prereq}
|
||||
Recommends: %{name}-mt = %{version}
|
||||
Recommends: rmt
|
||||
Suggests: rmt
|
||||
Suggests: %{name}-mt = %{version}
|
||||
|
||||
%description
|
||||
GNU cpio is a program to manage archives of files. Cpio copies files
|
||||
@@ -61,8 +61,8 @@ Summary: Tape drive control utility
|
||||
Group: Productivity/Archiving/Backup
|
||||
Requires: %{name} = %{version}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: mt
|
||||
Conflicts: mt
|
||||
|
||||
%description mt
|
||||
This package includes the 'mt', a local tape drive control program.
|
||||
@@ -77,7 +77,7 @@ This package includes the 'mt', a local tape drive control program.
|
||||
%build
|
||||
gettextize -f --no-changelog
|
||||
autoreconf -fiv
|
||||
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fcommon"
|
||||
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fcommon -std=gnu11"
|
||||
%configure \
|
||||
--with-rmt="%{_bindir}/rmt" \
|
||||
--enable-mt \
|
||||
@@ -88,9 +88,6 @@ make %{?_smp_mflags}
|
||||
%install
|
||||
mkdir -p %{buildroot}/{usr/bin,bin}
|
||||
%make_install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
ln -sf %{_sysconfdir}/alternatives/mt %{buildroot}%{_bindir}/mt
|
||||
ln -sf %{_sysconfdir}/alternatives/mt.1%{ext_man} %{buildroot}%{_mandir}/man1/mt.1%{ext_man}
|
||||
%if 0%{?suse_version} < 1550
|
||||
ln -sf %{_bindir}/cpio %{buildroot}/bin
|
||||
%endif
|
||||
@@ -101,9 +98,9 @@ ln -sf %{_bindir}/cpio %{buildroot}/bin
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
%post mt
|
||||
%{_sbindir}/update-alternatives --force \
|
||||
--install %{_bindir}/mt mt %{_bindir}/gnumt 10 \
|
||||
--slave %{_mandir}/man1/mt.1%{ext_man} mt.1%{ext_man} %{_mandir}/man1/gnumt.1%{ext_man}
|
||||
if [ ! -f %{_bindir}/gnumt ] ; then
|
||||
"%{_sbindir}/update-alternatives" --remove mt %{_bindir}/gnumt
|
||||
fi
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||
@@ -111,11 +108,6 @@ make %{?_smp_mflags} check
|
||||
%preun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||
|
||||
%postun mt
|
||||
if [ ! -f %{_bindir}/gnumt ] ; then
|
||||
"%{_sbindir}/update-alternatives" --remove mt %{_bindir}/gnumt
|
||||
fi
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc NEWS ChangeLog
|
||||
@@ -131,8 +123,6 @@ fi
|
||||
%{_bindir}/gnumt
|
||||
%ghost %{_mandir}/man1/mt.1%{ext_man}
|
||||
%{_mandir}/man1/gnumt.1%{?ext_man}
|
||||
%ghost %{_sysconfdir}/alternatives/mt
|
||||
%ghost %{_sysconfdir}/alternatives/mt.1%{ext_man}
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
|
||||
Reference in New Issue
Block a user