%define prefix /usr
%define majorversion 0.98
Name: xcdroast
Version: %{majorversion}alpha16
Release: 1 
Summary: A userfriendly GUI for copying and creating Audio- and Data-CDs
Copyright: GPL 
Vendor: Thomas Niederreiter
Group: Applications/Multimedia
Source: http://www.xcdroast.org/download/xcdroast-%{version}.tar.gz
Url: http://www.xcdroast.org
BuildRoot: /tmp/%{name}-%{version}-root
Requires: cdrtools-cdrecord, cdrtools-mkisofs, cdrtools-cdda2wav
BuildRequires: gtk2-devel >= 2.0.6
 
%description
X-CD-Roast is a program-package dedicated to easy CD creation
under most Unix-platforms. It combines command line tools like "cdrecord",
"cdda2wav", and "mkisofs" into a nice graphical user interface.

%prep
%setup -n xcdroast-%{version}

%build
CC="gcc $RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{prefix}/share/man --sysconfdir /etc --enable-gtk2
make
 
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT 

mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Applications
cp -f extra/xcdroast.desktop $RPM_BUILD_ROOT/etc/X11/applnk/Applications/
strip -R .comment $RPM_BUILD_ROOT%{prefix}/bin/xcdroast


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/*
%{prefix}/bin/xcdroast
%{prefix}/share/man/man1/xcdroast.1*
%{prefix}/lib/xcdroast-%{majorversion}/*
%{prefix}/share/locale/*
/etc/X11/applnk/Applications/xcdroast.desktop

