File kde3-kid3.spec of Package kde3-kid3

#
# spec file for package kde3-kid3 (Version 1.3)
#
# Copyright 2006-2009 Donnie S Bhayangkara <donnie.bhayangkara@opensuse.org>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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.

# norootforbuild

%define _prefix	/opt/kde3
%define rname kid3

Name:		kde3-kid3
Version:	1.3
Release:	1
Summary:	Efficient ID3 Tag Editor
Source0:	%{rname}-%{version}.tar.bz2
URL:		http://kid3.sourceforge.net
Group:		Productivity/Multimedia/Sound/Utilities
License:	GPL-2.0-or-later
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	autoconf automake libtool
BuildRequires:  kdelibs3-devel id3lib-devel flac-devel
BuildRequires:  taglib-devel
BuildRequires:  update-desktop-files perl(File::Spec)
BuildRequires:  libmusicbrainz-devel libvorbis-devel

#renamed package from kid3 to kde3-kid3
Obsoletes:	kid3 < 1.3


%description
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2, Speex,
TrueAudio, WavPack, WMA, WAV and AIFF files (e.g. full albums) without typing the
same information again and again and have control over both ID3v1 and ID3v2 tags,
then Kid3 is the program you are looking for.

%prep
%setup -q -n %{rname}-%{version}

%build
export CXXFLAGS="$CXXFLAGS -Wl,--add-needed -std=c++11"
%configure --with-qt-libraries=/usr/lib/qt3/%_lib --without-musicbrainz

%__make %{?jobs:-j%{jobs}}


%install
for FILE in COPYING ; do
    MD5SUM=$(md5sum $FILE | sed 's/ .*//')
    if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
        ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
    fi
done
%makeinstall
%__rm -rf %{buildroot}/usr
%suse_update_desktop_file -r "%{rname}" KDE AudioVideo AudioVideoEditing

%find_lang %{rname}


%clean
%__rm -rf "%{buildroot}"

%files -f %{rname}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README
%defattr(755,root,root,755)
%_bindir/kid3
%defattr(644,root,root,755)
%_datadir/applications/kde/kid3.desktop
%_datadir/apps/kid3
%_datadir/icons/hicolor/*/apps/kid3.*


%changelog
openSUSE Build Service is sponsored by