File cdrdao.spec of Package cdrdao

#
# spec file for package cdrdao (Version 1.2.2)
#
# Copyright (c) 2009 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


Name:           cdrdao
%define DISTRIBUTABLE 1
BuildRequires:  gcc-c++ libao-devel libgnomeuimm-devel libvorbis-devel update-desktop-files wodim-devel
%if %DISTRIBUTABLE == 0
BuildRequires:  lame mad-devel
%endif
License:        GPL v2 or later
Group:          Productivity/Multimedia/CD/Record
AutoReqProv:    on
Version:        1.2.2
Release:        309
Summary:        Write CD-Rs in Disk-At-Once Mode
Url:            http://cdrdao.sourceforge.net
Source:         cdrdao-%{version}.tar.bz2
Patch1:         cdrdao-build.patch
Patch2:         cdrdao-%{version}-scan.patch
Patch3:         cdrdao-%{version}-usal.patch
Patch4:         cdrdao-%{version}-include.patch
Patch5:         cdrdao-%{version}-sigc.patch
Patch6:         cdrdao-%{version}-libnsl.patch
Patch7:         cdrdao-fixes.patch
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.



Authors:
--------
    Andreas Mueller <mueller@daneb.ping.de>

%package -n gcdmaster
License:        GPL v2 or later
Requires:       cdrdao
Summary:        Graphical front end to cdrdao for composing audio CDs
Group:          Productivity/Multimedia/CD/Record

%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 
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7

%build
autoreconf -f -i
rm -r scsilib # to be sure the external lib is used
%configure\
	--with-scglib=sys\
	--with-scglib-inc=%{_includedir}/wodim\
	--with-scglib-lib=%{_libdir}
make %{?jobs:-j%jobs}

%install
%makeinstall
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info $RPM_BUILD_ROOT%{_datadir}/application-registry
%suse_update_desktop_file gcdmaster DiscBurning

%clean
rm -rf $RPM_BUILD_ROOT

%post -n gcdmaster
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi

%postun -n gcdmaster
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi

%files
%defattr(-,root,root)
%doc README README.PlexDAE COPYING CREDITS 
%{_bindir}/[ct]*
%{_datadir}/cdrdao
%doc %{_mandir}/*/cdrdao*
%doc %{_mandir}/*/cue2toc*

%files -n gcdmaster
%defattr(-,root,root)
%{_bindir}/gcdmaster
%{_datadir}/applications/*.desktop
%{_datadir}/gcdmaster
%{_datadir}/mime/packages/gcdmaster.xml
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/*/gcdmaster*

%changelog
openSUSE Build Service is sponsored by