Correct alternatives handling for cdrecord man page
This commit is contained in:
parent
0a7d60b6aa
commit
2c18e22ee0
21
libburn.spec
21
libburn.spec
@ -3,11 +3,11 @@
|
||||
Summary: Library for reading, mastering and writing optical discs
|
||||
Name: libburn
|
||||
Version: 1.5.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://libburnia-project.org/
|
||||
Source0: http://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz
|
||||
Source1: http://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz.sig
|
||||
URL: https://libburnia-project.org/
|
||||
Source0: https://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz
|
||||
Source1: https://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz.sig
|
||||
Source2: gpgkey-44BC9FD0D688EB007C4DD029E9CBDFC0ABC0A854.gpg
|
||||
Patch0: libburn-0.6.16-multilib.patch
|
||||
BuildRequires: gnupg2
|
||||
@ -95,17 +95,12 @@ mv -f $RPM_BUILD_ROOT%{_bindir}/cdrskin{,%{?variant}}
|
||||
mv -f $RPM_BUILD_ROOT%{_mandir}/man1/cdrskin{,%{?variant}}.1
|
||||
%endif
|
||||
|
||||
# Symlink cdrskin as cdrecord (like in cdrkit)
|
||||
ln -sf cdrskin%{?variant} $RPM_BUILD_ROOT%{_bindir}/cdrecord
|
||||
# Prepare alternatives handling for cdrecord -> cdrskin
|
||||
touch $RPM_BUILD_ROOT{%{_bindir}/cdrecord,%{_mandir}/man1/cdrecord.1.gz}
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%post -n cdrskin%{?variant}
|
||||
link=`readlink %{_bindir}/cdrecord`
|
||||
if [ "$link" == "cdrskin%{?variant}" ]; then
|
||||
rm -f %{_bindir}/cdrecord
|
||||
fi
|
||||
|
||||
%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/cdrskin%{?variant} 50 \
|
||||
--slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman %{_mandir}/man1/cdrskin%{?variant}.1.gz
|
||||
|
||||
@ -132,9 +127,13 @@ fi
|
||||
%files -n cdrskin%{?variant}
|
||||
%ghost %{_bindir}/cdrecord
|
||||
%{_bindir}/cdrskin%{?variant}
|
||||
%ghost %{_mandir}/man1/cdrecord.1*
|
||||
%{_mandir}/man1/cdrskin%{?variant}.1*
|
||||
|
||||
%changelog
|
||||
* Fri Apr 09 2021 Robert Scheck <robert@fedoraproject.org> 1.5.4-2
|
||||
- Correct alternatives handling for cdrecord man page
|
||||
|
||||
* Mon Feb 08 2021 Robert Scheck <robert@fedoraproject.org> 1.5.4-1
|
||||
- Upgrade to 1.5.4 (#1926008)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user