cdrdao/cdrdao.spec
2023-07-30 23:48:00 -03:00

78 lines
1.7 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.5
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
%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