%define my_vendor fedora
Version: 1.1
Release: 0.fdr.2.1
Name: juk
Epoch: 0
Summary: Jukebox and music manager for KDE.
Group: Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-buildroot
License: GPL
Url: http://www.slackorama.net/cgi-bin/content.pl?juk
Source: http://developer.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
Patch1: juk-1.1-desktop.diff
Patch2: juk-1.1-mp3.diff
BuildRequires: qt-devel >= 1:3.1
BuildRequires: XFree86-devel
BuildRequires: zlib-devel
BuildRequires: libjpeg-devel
BuildRequires: kdelibs-devel >= 6:3.1
BuildRequires: arts-devel >= 6:3.1
BuildRequires: id3lib-devel
BuildRequires: audiofile-devel
BuildRequires: libvorbis-devel
BuildRequires: libart_lgpl-devel
BuildRequires: libpng-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
%description
JuK (pronounced jook) is a jukebox and music manager for the KDE desktop
similar to jukebox software on other platforms such as iTunesĀ® or RealOneĀ®.
Some of JuK's features include:
* Support for Ogg Vorbis format
* Tag editing support
* Multitagging or editing a selection of multiple files at once is also
supported
* Output to the aRts, default KDE sound system, and GStreamer (thanks to
Tim Jansen)
* Managing of your "collection" and multiple playlists
* Import and export to m3u playlists
* Binary caching of audio meta-data and playlist information for faster
load times (starting with the second time you run JuK)
* Integration into KDE that allows drag-and-drop and clipboard usage with
other KDE and X apps
%prep
%setup -q -n %{name}-%{version}
%patch1 -p0 -b .desktop
%patch2 -p0 -b .mp3
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
FLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export KDEDIR=$(kde-config --prefix)
export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS -fno-use-cxa-atexit"
%configure --with-qt-libraries=$QTDIR/lib \
--disable-debug \
--includedir=%{_includedir}/kde \
--disable-rpath
make $SMP_MFLAGS
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_docdir}/HTML/en/juk/common
ln -sf ../common $RPM_BUILD_ROOT/%{_docdir}/HTML/en/juk
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor %{my_vendor} \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--delete-original \
--add-category "Application;AudioVideo;X-Fedora" \
--add-only-show-in KDE \
$RPM_BUILD_ROOT%{_datadir}/applnk/Multimedia/juk.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_docdir}/HTML/en/juk
%{_bindir}/*
%{_datadir}/apps/*
%{_datadir}/icons/hicolor
%{_datadir}/applications/*.desktop
%changelog
* Thu Jan 15 2004 Simon Perreault <nomis80@nomis80.org> - 0:1.1-0.fdr.2
- Integrated spec correctness fixes proposed by Michael Schwendt.
* Wed Jan 14 2004 Simon Perreault <nomis80@nomis80.org> - 0:1.1-0.fdr.1
- Initial RPM release.