6 Commits

Author SHA256 Message Date
575f6a6814 Accepting request 1287924 from Archiving
OBS-URL: https://build.opensuse.org/request/show/1287924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpio?expand=0&rev=71
2025-06-24 18:45:13 +00:00
Danilo Spinella
ab9d49db21 - Downgrade cpio-mt and rmt recommends to suggests (boo#1244434)
OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=104
2025-06-23 12:31:01 +00:00
968698e062 Accepting request 1281149 from Archiving
OBS-URL: https://build.opensuse.org/request/show/1281149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpio?expand=0&rev=70
2025-06-01 19:36:03 +00:00
6b8b5820fd - 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.

OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=102
2025-05-29 12:44:39 +00:00
d2c185c1d3 Accepting request 1256007 from Archiving
OBS-URL: https://build.opensuse.org/request/show/1256007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpio?expand=0&rev=69
2025-03-26 20:16:09 +00:00
ad44e760cd - 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.

OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=100
2025-03-25 15:13:57 +00:00
2 changed files with 28 additions and 18 deletions

View File

@@ -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>

View File

@@ -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