File dvd+rw-tools.spec of Package dvd+rw-tools

# spec file for package dvd+rw-tools
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           dvd+rw-tools
Version:        7.1
Release:        0
Summary:        Collection of Tools for Mastering Blu-ray and DVD+-RW/+-R Media
License:        GPL-2.0+
Group:          Productivity/Multimedia/CD/Record

Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE utf8ize.patch -- Convert some strings to UTF-8
Patch0:         utf8ize.patch
# PATCH-FIX-OPENSUSE growisofs-dvd-dl-undersized.patch bnc#164032 -- Allow users to burn images that would fit on a single-layer DVD to a dual-layer disc
Patch1:         growisofs-dvd-dl-undersized.patch
# NOTE: commented out. PATCH-FIX-OPENSUSE growisofs-genisoimage.patch -- Make the package call genisoimage directly, not via compatibility symlink
#Patch2:         growisofs-genisoimage.patch
# PATCH-FIX-OPENSUSE dvd+rw-tools-gcc43.patch -- Fix build with gcc-4.3
Patch3:         dvd+rw-tools-gcc43.patch
# PATCH-FIX-OPENSUSE dvd+rw-tools-buffer.patch bnc#354838 -- Fix buffer size
Patch4:         dvd+rw-tools-buffer.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  gcc-c++
# According to Linux from scratch dvd+rw-tools needs this to function correctly with wodim
Requires:       /usr/bin/mkisofs
Requires:       libisoburn1

The dvd+rw-tools collection of tools makes it possible to burn images to
Blu-ray and DVD+-RW/+-R media.

%setup -q

export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"

make %{?_smp_mflags} CC="%{__cc}" CXX="%{__cxx}"
make rpl8 btcflash %{?_smp_mflags} CC="%{__cc}" CXX="%{__cxx}"

make prefix=%{buildroot}%{_prefix} manprefix=%{buildroot}%{_mandir} install

# Rename btcflash binary in order to avoid conflict with btcflash from cdrtools
mv %{buildroot}%{_bindir}/btcflash %{buildroot}%{_bindir}/dvd+rw-tools-btcflash

%doc LICENSE index.html
%doc %{_mandir}/man1/growisofs.1%{ext_man}

openSUSE Build Service is sponsored by