- Update to upstream 1.4.4 (#1352496)

- Reworked spec file to build libburn1 for RHEL >= 6 (#750009)
This commit is contained in:
Robert Scheck 2016-07-05 12:16:33 +02:00
parent 75f648a733
commit 381cf1c377
2 changed files with 61 additions and 27 deletions

View File

@ -1,13 +1,24 @@
%global pkgname libburn
%if 0%{?rhel} >= 6
%global cdrskin cdrskin1
%else
%global cdrskin cdrskin
%endif
Summary: Library for reading, mastering and writing optical discs
Name: libburn
Version: 1.4.2
Release: 3%{?dist}
Version: 1.4.4
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://libburnia-project.org/
Source0: http://files.libburnia-project.org/releases/%{name}-%{version}.pl01.tar.gz
Source0: http://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz
Patch0: libburn-0.6.16-multilib.patch
BuildRequires: intltool, gettext, doxygen, graphviz
%if 0%{?rhel} >= 6
BuildRequires: autoconf, automake, libtool, pkgconfig
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@ -21,31 +32,44 @@ make available freshly written data. The libburn read function does not
need such a reload. The code of libburn is independent of cdrecord.
%package devel
Summary: Development files for libburn
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
%description devel
The libburn-devel package contains libraries and header files for
developing applications that use libburn.
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n cdrskin
Summary: Limited cdrecord compatibility wrapper to ease migration to libburn
%package -n %{cdrskin}
Summary: Limited cdrecord compatibility wrapper to ease migration to %{name}
Group: Applications/Multimedia
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?rhel} > 5 || 0%{?fedora}
%if 0%{?rhel} >= 6 || 0%{?fedora}
Requires(post): %{_sbindir}/alternatives, coreutils
Requires(preun): %{_sbindir}/alternatives
%endif
%description -n cdrskin
A limited cdrecord compatibility wrapper which allows to use some libburn
%description -n %{cdrskin}
A limited cdrecord compatibility wrapper which allows to use some %{name}
features from the command line.
%prep
%setup -q
%setup -q -n %{pkgname}-%{version}
%patch0 -p1 -b .multilib
# Rename from libburn to libburn1 for RHEL >= 6
%if 0%{?rhel} >= 6
sed -e 's@libburn_libburn@libburn_libburn1@g' \
-e 's@libburn/libburn.la@libburn/libburn1.la@g' \
-e 's@(includedir)/libburn@(includedir)/libburn1@g' \
-e 's@libburn-1.pc@libburn1-1.pc@g' -i Makefile.am
sed -e 's@libburn-1.pc@libburn1-1.pc@g' -i configure.ac
sed -e 's@burn@burn1@g' libburn-1.pc.in > libburn1-1.pc.in
libtoolize --force
autoreconf --force
%endif
%build
%configure --disable-static
make %{?_smp_mflags}
@ -58,9 +82,15 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
# Don't install any libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
# RHEL >= 6 ships a cdrskin package already
%if 0%{?rhel} >= 6
mv -f $RPM_BUILD_ROOT%{_bindir}/{cdrskin,%{cdrskin}}
mv -f $RPM_BUILD_ROOT%{_mandir}/man1/{cdrskin,%{cdrskin}}.1
%endif
# Symlink cdrskin as cdrecord (like in cdrkit)
%if 0%{?rhel} > 5 || 0%{?fedora}
ln -sf cdrskin $RPM_BUILD_ROOT%{_bindir}/cdrecord
%if 0%{?rhel} >= 6 || 0%{?fedora}
ln -sf %{cdrskin} $RPM_BUILD_ROOT%{_bindir}/cdrecord
%endif
%clean
@ -70,19 +100,19 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%if 0%{?rhel} > 5 || 0%{?fedora}
%post -n cdrskin
%if 0%{?rhel} >= 6 || 0%{?fedora}
%post -n %{cdrskin}
link=`readlink %{_bindir}/cdrecord`
if [ "$link" == "cdrskin" ]; then
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
%{_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
%preun -n %{cdrskin}
if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove cdrecord %{_bindir}/cdrskin
%{_sbindir}/alternatives --remove cdrecord %{_bindir}/%{cdrskin}
fi
%endif
@ -100,15 +130,19 @@ fi
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc
%files -n cdrskin
%files -n %{cdrskin}
%defattr(-,root,root,-)
%if 0%{?rhel} > 5 || 0%{?fedora}
%if 0%{?rhel} >= 6 || 0%{?fedora}
%ghost %{_bindir}/cdrecord
%endif
%{_bindir}/cdrskin
%{_mandir}/man1/cdrskin.1*
%{_bindir}/%{cdrskin}
%{_mandir}/man1/%{cdrskin}.1*
%changelog
* Tue Jul 05 2016 Robert Scheck <robert@fedoraproject.org> 1.4.4-1
- Update to upstream 1.4.4 (#1352496)
- Reworked spec file to build libburn1 for RHEL >= 6 (#750009)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

View File

@ -1 +1 @@
0c85fc29b3cc599cd7617d3f9c5207e6 libburn-1.4.2.pl01.tar.gz
80f9429e37ab3521c663a10417934b20 libburn-1.4.4.tar.gz