File cdrdao.spec of Package cdrdao
#
# spec file for package cdrdao
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#
# norootforbuild
%define DISTRIBUTABLE 1
Name: cdrdao
Version: 1.2.3
Release: 1
License: GPL-2.0+
Summary: Write CD-Rs in Disk-At-Once Mode
Url: http://cdrdao.sourceforge.net/
Group: Productivity/Multimedia/CD/Record
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE cdrdao-build.patch
Patch0: cdrdao-build.patch
# PATCH-FIX-OPENSUSE cdrdao-1.2.2-scan.patch bnc#144861 nadvornik@suse.cz -- Do not scan old ATAPI interface
Patch1: cdrdao-1.2.2-scan.patch
# PATCH-FIX-OPENSUSE cdrdao-fixes.patch bnc#424635 nadvornik@suse.cz -- Fix cdrdao segfault
Patch2: cdrdao-fixes.patch
# PATCH-FIX-OPENSUSE cdrdao-1.2.3-stat.patch asterios.dramis@gmail.com -- Missing includes causes failure build (patch taken from Fedora)
Patch3: cdrdao-1.2.3-stat.patch
# PATCH-FIX-OPENSUSE cdrdao-1.2.2-desktop.patch asterios.dramis@gmail.com -- Make the desktop file XDG compatible, add MimeType entries (patch taken from Fedora)
Patch4: cdrdao-1.2.2-desktop.patch
BuildRequires: gcc-c++
BuildRequires: gtkmm2-devel
BuildRequires: libao-devel
BuildRequires: libgnomeuimm-devel
BuildRequires: libsigc++2-devel
BuildRequires: libvorbis-devel
BuildRequires: pkg-config
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if %DISTRIBUTABLE == 0
BuildRequires: lame
BuildRequires: mad-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CDRDAO creates CD-Rs in disk-at-once (DAO) mode driven by a description
file called a toc file. In DAO mode, it is possible to create
nonstandard track pregaps that have lengths other than 2 seconds and
contain nonzero audio data. This is useful for dividing live recordings
into tracks where 2 second gaps would be irritating.
%package -n gcdmaster
License: GPL-2.0+
Summary: Graphical front end to cdrdao for composing audio CDs
Group: Productivity/Multimedia/CD/Record
Requires: cdrdao
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
%gconf_schemas_requires
%description -n gcdmaster
gcdmaster allows the creation of toc-files for cdrdao and can control
the recording process. Its main application is the composition of audio
CDs from one or more audio files. It supports PQ-channel editing, entry
of meta data like ISRC codes/CD-TEXT and nondestructive cut of the
audio data.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%build
%configure \
--without-scglib
make %{?_smp_mflags} VERBOSE=1
%install
%make_install
# Not needed
rm -rf %{buildroot}%{_datadir}/mime-info %{buildroot}%{_datadir}/application-registry
%if 0%{?suse_version}
%suse_update_desktop_file gcdmaster -r GTK GNOME AudioVideo DiscBurning
%endif
%find_gconf_schemas
%clean
rm -rf %{buildroot}
%pre -n gcdmaster -f %{name}.schemas_pre
%post -n gcdmaster
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%preun -n gcdmaster -f %{name}.schemas_preun
%postun -n gcdmaster
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%posttrans -n gcdmaster -f %{name}.schemas_posttrans
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING CREDITS ChangeLog README README.PlexDAE cdrdao.lsm
%doc contrib/wav2dao/wav2dao.pl
%{_bindir}/cdrdao
%{_bindir}/cue2toc
%{_bindir}/toc2cddb
%{_bindir}/toc2cue
%{_datadir}/cdrdao/
%doc %{_mandir}/man1/cue2toc.1%{ext_man}
%doc %{_mandir}/man1/cdrdao.1%{ext_man}
%doc %{_mandir}/man1/toc2cddb.1%{ext_man}
%doc %{_mandir}/man1/toc2cue.1%{ext_man}
%files -n gcdmaster -f %{name}.schemas_list
%defattr(-,root,root,-)
%{_bindir}/gcdmaster
%{_datadir}/applications/gcdmaster.desktop
%{_datadir}/gcdmaster/
%{_datadir}/mime/packages/gcdmaster.xml
%{_datadir}/pixmaps/gcdmaster.png
%{_datadir}/pixmaps/gcdmaster-doc.png
%doc %{_mandir}/man1/gcdmaster.1%{ext_man}
%changelog