90 lines
2.1 KiB
RPMSpec
90 lines
2.1 KiB
RPMSpec
%if 0%{?rhel} >= 9
|
|
%bcond_with gconf
|
|
%else
|
|
%bcond_without gconf
|
|
%endif
|
|
|
|
Summary: Writes audio CD-Rs in disk-at-once (DAO) mode
|
|
Name: cdrdao
|
|
Version: 1.2.4
|
|
Release: %autorelease
|
|
License: GPLv2+
|
|
URL: http://cdrdao.sourceforge.net/
|
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc
|
|
BuildRequires: libsigc++20-devel
|
|
BuildRequires: libvorbis-devel >= 1.0
|
|
BuildRequires: libao-devel
|
|
BuildRequires: libmad-devel
|
|
BuildRequires: lame-devel
|
|
#requirements to rebuild autotools
|
|
BuildRequires: autoconf
|
|
%if %{with gconf}
|
|
BuildRequires: GConf2-devel
|
|
%endif
|
|
BuildRequires: make
|
|
|
|
# We have removed gcdmaster sub-package in 1.2.3-10
|
|
Obsoletes: gcdmaster < 1.2.3-10
|
|
|
|
# Only exclude s390
|
|
ExcludeArch: s390 s390x
|
|
|
|
# Missing includes causes failure build
|
|
# Patches 1 to 5 upstreamed, remove in a future release
|
|
#Patch1: cdrdao-1.2.3-stat.patch
|
|
#Patch2: cdrdao-1.2.3-helpmansync.patch
|
|
#Patch3: cdrdao-1.2.3-format_security.patch
|
|
#Patch4: cdrdao-1.2.3-narrowing.patch
|
|
#Patch5: cdrdao-1.2.3-lame-3.100.patch
|
|
# Patches 6 and 7 grabbed from gentoo
|
|
Patch6: cdrdao-1.2.4-wformat-security.patch
|
|
Patch7: cdrdao-1.2.4-ax_pthread.patch
|
|
|
|
%description
|
|
Cdrdao records audio CD-Rs in disk-at-once (DAO) mode, based on a
|
|
textual description of the CD contents. Recording in DAO mode writes
|
|
the complete disc (lead-in, one or more tracks, and lead-out) in a
|
|
single step. DAO allows full control over the length and the contents
|
|
of pre-gaps, the pause areas between tracks.
|
|
|
|
|
|
%prep
|
|
%autosetup -p 1
|
|
|
|
%build
|
|
#run autoreconf to support aarch64
|
|
#not needed when upstream moves to new automake
|
|
autoreconf -v -f -i -I.
|
|
%configure \
|
|
--without-xdao \
|
|
--without-scglib \
|
|
--with-ogg-support \
|
|
--with-mp3-support \
|
|
--with-lame
|
|
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
|
|
%files
|
|
%doc AUTHORS README CREDITS ChangeLog
|
|
%license COPYING
|
|
%{_bindir}/cdrdao
|
|
%{_bindir}/*toc*
|
|
%{_datadir}/cdrdao
|
|
%{_mandir}/*/cdrdao*
|
|
%{_mandir}/*/cue2toc*
|
|
%{_mandir}/*/toc2cue*
|
|
%{_mandir}/*/toc2cddb*
|
|
|
|
%changelog
|
|
%autochangelog
|