import CS libburn-1.5.4-5.el9

This commit is contained in:
eabdullin 2025-03-11 07:36:51 +00:00
parent d1932950c1
commit ae1b9e43fd
4 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
SOURCES/gpgkey-44BC9FD0D688EB007C4DD029E9CBDFC0ABC0A854.gpg
SOURCES/libburn-1.5.4.tar.gz
SOURCES/libburn-1.5.4.tar.gz.sig

View File

@ -1,2 +1,3 @@
896ddcb0c8d6e8b60a82642331350d7fde7ab737 SOURCES/gpgkey-44BC9FD0D688EB007C4DD029E9CBDFC0ABC0A854.gpg
f1f6b91c18bcf0df1c38a0665657b10f1a76de58 SOURCES/libburn-1.5.4.tar.gz
cdcc16b4041b3796428bbde7883d54f1d915b41c SOURCES/libburn-1.5.4.tar.gz.sig

Binary file not shown.

View File

@ -3,7 +3,7 @@
Summary: Library for reading, mastering and writing optical discs
Name: libburn
Version: 1.5.4
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2+
URL: https://libburnia-project.org/
Source0: https://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz
@ -51,6 +51,7 @@ for developing applications that use %{name}.
%package -n cdrskin%{?variant}
Summary: Limited cdrecord compatibility wrapper to ease migration to %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires(pre): %{_sbindir}/alternatives, coreutils
Requires(post): %{_sbindir}/alternatives, coreutils
Requires(preun): %{_sbindir}/alternatives
Provides: cdrecord
@ -106,6 +107,16 @@ touch $RPM_BUILD_ROOT{%{_bindir}/wodim,%{_mandir}/man1/wodim.1.gz}
%ldconfig_scriptlets
%pre -n cdrskin%{?variant}
# remove alternativized files if they are not symlinks
# otherwise upgrades from non-alternativized versions do not work
# the list of files should be kept in sync with the "alternatives"
# commands in %%post
for f in cdrecord wodim ; do
[ -L %{_bindir}/$f ] || %{__rm} -f %{_bindir}/$f || :
[ -L %{_mandir}/man1/$f.1.gz ] || %{__rm} -f %{_mandir}/man1/$f.1.gz || :
done
%post -n cdrskin%{?variant}
%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/cdrskin%{?variant} 60 \
--slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman %{_mandir}/man1/cdrskin%{?variant}.1.gz \
@ -141,6 +152,9 @@ fi
%{_mandir}/man1/cdrskin%{?variant}.1*
%changelog
* Wed Jan 15 2025 Pavel Cahyna <pcahyna@redhat.com> - 1.5.4-5
- Fix upgrades from non-alternativized versions/packages
* Tue Feb 08 2022 Jiri Kucera <jkucera@redhat.com> - 1.5.4-4
- Fix cdrecord & wodim alternatives
Related: #2015861