- Update to upstream 1.4.2 (#1287345)

- Add symlink handling via alternatives for cdrecord (#1256240)
This commit is contained in:
Robert Scheck 2015-12-25 00:27:06 +01:00
parent d1eae1d33f
commit 659a54494d
2 changed files with 56 additions and 24 deletions

View File

@ -1,15 +1,14 @@
Summary: Library for reading, mastering and writing optical discs Summary: Library for reading, mastering and writing optical discs
Name: libburn Name: libburn
Version: 1.4.0 Version: 1.4.2
Release: 2%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://libburnia-project.org/ URL: http://libburnia-project.org/
Source0: http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz Source0: http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz
Patch0: libburn-0.6.16-multilib.patch Patch0: libburn-0.6.16-multilib.patch
BuildRequires: intltool, gettext, doxygen, graphviz BuildRequires: intltool, gettext, doxygen, graphviz
BuildRequires: autoconf, automake, libtool, pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description %description
Libburn is a library by which preformatted data get onto optical media: Libburn is a library by which preformatted data get onto optical media:
@ -21,19 +20,23 @@ the block device driver needs reloading of the drive tray in order to
make available freshly written data. The libburn read function does not make available freshly written data. The libburn read function does not
need such a reload. The code of libburn is independent of cdrecord. need such a reload. The code of libburn is independent of cdrecord.
%package devel %package devel
Summary: Development files for libburn Summary: Development files for libburn
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
%description devel %description devel
The libburn-devel package contains libraries and header files for The libburn-devel package contains libraries and header files for
developing applications that use libburn. developing applications that use libburn.
%package -n cdrskin %package -n cdrskin
Summary: Limited cdrecord compatibility wrapper to ease migration to libburn Summary: Limited cdrecord compatibility wrapper to ease migration to libburn
Group: Applications/Multimedia Group: Applications/Multimedia
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?rhel} > 5 || 0%{?fedora}
Requires(post): %{_sbindir}/alternatives, coreutils
Requires(preun): %{_sbindir}/alternatives
%endif
%description -n cdrskin %description -n cdrskin
A limited cdrecord compatibility wrapper which allows to use some libburn A limited cdrecord compatibility wrapper which allows to use some libburn
@ -42,7 +45,6 @@ features from the command line.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .multilib %patch0 -p1 -b .multilib
autoreconf --force --install
%build %build
%configure --disable-static %configure --disable-static
@ -56,6 +58,11 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
# Don't install any libtool .la files # Don't install any libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
# Symlink cdrskin as cdrecord (like in cdrkit)
%if 0%{?rhel} > 5 || 0%{?fedora}
ln -sf cdrskin $RPM_BUILD_ROOT%{_bindir}/cdrecord
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -63,9 +70,27 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%if 0%{?rhel} > 5 || 0%{?fedora}
%post -n cdrskin
link=`readlink %{_bindir}/cdrecord`
if [ "$link" == "cdrskin" ]; then
rm -f %{_bindir}/cdrecord
fi
%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/cdrskin 50 \
--slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman %{_mandir}/man1/cdrskin.1.gz
%preun -n cdrskin
if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove cdrecord %{_bindir}/cdrskin
fi
%endif
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS COPYING COPYRIGHT README %{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS COPYRIGHT README
%{_libdir}/%{name}*.so.* %{_libdir}/%{name}*.so.*
%files devel %files devel
@ -77,10 +102,17 @@ rm -rf $RPM_BUILD_ROOT
%files -n cdrskin %files -n cdrskin
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_mandir}/*/* %if 0%{?rhel} > 5 || 0%{?fedora}
%ghost %{_bindir}/cdrecord
%endif
%{_bindir}/cdrskin %{_bindir}/cdrskin
%{_mandir}/man1/cdrskin.1*
%changelog %changelog
* Thu Dec 24 2015 Robert Scheck <robert@fedoraproject.org> 1.4.2-1
- Update to upstream 1.4.2 (#1287345)
- Add symlink handling via alternatives for cdrecord (#1256240)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -1 +1 @@
82ff94bb04e78eac9b12c7546f005d6f libburn-1.4.0.tar.gz cb1cc7c096bd9a2e059fe1fec994c5b4 libburn-1.4.2.tar.gz