File kyamo.spec of Package kyamo

# Copyright (c) 2007-2009 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

%define _prefix	/opt/kde3

Name:			kyamo
Summary:		K-Yamo - A music-organizer for tagging music files and ripping audio-cds
Version:		0.40a4.2
Release:		1
License:		GPL-2.0
Group:			Productivity/Multimedia/Sound/Utilities
URL:			http://k-yamo.sourceforge.net/
Source0:		%{name}-0.40a4-2.tar.gz
Patch0:			%{name}-returns-random-data.patch
Patch1:                 %{name}-deprecate-update-desktop-files.patch
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	gcc-c++ libtool
BuildRequires:	id3lib-devel
BuildRequires:	kdelibs3-devel
BuildRequires:	taglib
BuildRequires:	taglib-devel
Requires:		lame
Requires:		MPlayer
Requires:		vorbis-tools

%description
K-Yamo is a music-organizer for tagging music files (mp3 and
ogg atm) and ripping audio-cds. It uses the tags, to rename
files, and can generate complete structured music-directories,
out of your musiccollection that way.

It can help you out with tags out of the database it uses
optionally, so you don't need to type everything.
You can tag complete directory-trees at once, and only change
selected values. (for example set the artist of a complete
directory).

Since this version, K-Yamo can guess the tags out of the
filenames, and get missing tags from musicbrainz.

%prep
%setup -q -n %{name}-0.40a4-2
%patch -P 0 -p1
%patch -P 1 -p1
sed -i 1i\ '#include <unistd.h>' src/cdidgenerator.cpp

%__chmod 644 AUTHORS COPYING README TODO

%build
export CXXFLAGS="$CXXFLAGS -Wno-template-body -std=c++11"
%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Utilities/kyamo.desktop %{buildroot}/opt/kde3/share/applications/kde/kyamo.desktop

%find_lang %{name}

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%doc %{_datadir}/doc/HTML/*/%{name}/*
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/kde/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by