Blob Blame History Raw
Name:           kid3
Version:        0.6
Release:        2%{?dist}
Summary:        Efficient ID3 tag editor

Group:          Applications/Multimedia
License:        GPL
URL:            http://kid3.sourceforge.net/
Source0:        http://download.sourceforge.net/kid3/%{name}-%{version}.tar.gz
Patch0:         http://ftp.debian.org/debian/pool/main/k/kid3/kid3_0.6-2.diff.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  kdelibs-devel
BuildRequires:  id3lib-devel
BuildRequires:  flac-devel
BuildRequires:  desktop-file-utils

%description
If you want to easily tag multiple MP3, Ogg/Vorbis or FLAC 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
%patch0 -p1
sed -i -e 's/\r//' LICENSE


%build
unset QTDIR ; . %{_sysconfdir}/profile.d/qt.sh
# TODO: musicbrainz support needs libtunepimp-devel < 0.4.0 as of 0.6
%configure --disable-rpath --disable-dependency-tracking --without-musicbrainz
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -Dpm 644 debian/kid3.1 $RPM_BUILD_ROOT%{_mandir}/man1/kid3.1
desktop-file-install \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --mode 644 \
  --vendor fedora \
  --add-category X-Fedora \
  $RPM_BUILD_ROOT%{_datadir}/applnk/Multimedia/kid3.desktop
rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%post
gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2>/dev/null || :

%postun
gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2>/dev/null || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING LICENSE README
%lang(en) %{_docdir}/HTML/en/kid3/
%lang(de) %{_docdir}/HTML/de/
%{_bindir}/kid3
%{_datadir}/applications/*kid3.desktop
%{_datadir}/apps/kid3/
%{_datadir}/icons/hicolor/*/apps/kid3.png
%{_mandir}/man1/kid3.1*


%changelog
* Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.6-2
- Explicitly disable musicbrainz support for now, needs older libtunepimp
  than what's available in FE.
- Apply Debian's 0.6-2 patch, includes ogg tagging fix.
- Install man page.

* Mon Oct 31 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.6-1
- 0.6, patches applied upstream.
- Clean up build dependencies.
- Improve summary and description.

* Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.5-4
- Update GTK icon cache at (un)install time.

* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.5-3
- rebuilt

* Sun Dec 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.5-2
- Apply patch for better non-latin1 filename support.
- Build with dependency tracking disabled.
- Trim dir ownership for FC3.

* Sat Jul 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.5-0.fdr.1
- Update to 0.5.

* Mon Feb  9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4-0.fdr.1
- Update to 0.4.

* Sat Nov  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3-0.fdr.1
- First build.