File xfburn.spec of Package xfburn

#
# spec file for package xfburn
#
# Copyright (c) 2012 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/
#


Name:           xfburn
Version:        0.4.3
Release:        0
Summary:        Simple CD/DVD Burning Application
License:        GPL-2.0+
Group:          Productivity/Multimedia/CD/Record
Url:            http://goodies.xfce.org/projects/applications/xfburn
Source:         http://archive.xfce.org/src/apps/xfburn/0.4/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM xfburn-fix-missing-include.patch gber@opensuse.org -- Includes a missing header
Patch0:         xfburn-fix-missing-include.patch
BuildRequires:  ed
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-pbutils-0.10)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libburn-1)
BuildRequires:  pkgconfig(libisofs-1)
BuildRequires:  pkgconfig(libxfcegui4-1.0)
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xfburn is a simple CD/DVD burning application based on the libburnia libraries.
It can blank CD-RWs, burn and create iso images, as well as burn personal
compositions of data to either CD or DVD.

%lang_package

%prep
%setup -q
%patch0 -p1

ed -s xfburn.desktop.in 2>/dev/null <<'EOF'
,s/^Icon=media-cdrom/Icon=stock_xfburn-burn-cd/
,s/^MimeType=.*$/MimeType=application\/x-cd-image;/
,s/^_Comment=/_GenericName=/
,s/^Categories=.*/Categories=X-XFCE;GTK;AudioVideo;DiscBurning;/
/^_GenericName=/i
_Comment=Burn CDs and DVDs
.
w
EOF

ed -s desktop-integration/thunar-sendto-xfburn.desktop.in 2>/dev/null <<'EOF'
,s/^Icon=media-cdrom/Icon=stock_xfburn-burn-cd/
w
EOF

%build
%configure
make # %{?_smp_mflags}

%install
%make_install

%suse_update_desktop_file %{name}

rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}

%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc README ChangeLog COPYING AUTHORS NEWS TODO
%{_bindir}/xfburn
%{_datadir}/applications/xfburn.desktop
%{_mandir}/man1/xfburn.1*
%{_datadir}/xfburn
%{_datadir}/icons/hicolor/*/*/*/*xfburn*
%dir %{_datadir}/Thunar
%dir %{_datadir}/Thunar/sendto
%{_datadir}/Thunar/sendto/thunar-sendto-xfburn.desktop

%files lang -f %{name}.lang

%changelog