File Kirocker.spec of Package Kirocker

# norootforbuild

%define _prefix /opt/kde3
%define rversion 4.0
%define rrelease 1.1
%define releasesuffix OS103DSB

Name:		kirocker
Version:	4.0.0
Release:	%{rrelease}%{releasesuffix}
%if %suse_version < 1020
Distribution:	SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution:	openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary:	Make your Kicker rock with your music
Group: 		System/GUI/KDE/Applet
License:	GPL
URL:		http://www.kde-apps.org/content/show.php?content=52869
Packager:	Donnie S Bhayangkara - http://donnie.110mb.com
Source0:	%{name}-%{rversion}.tar.gz
Source1:	Kicker_Right_Translucent_Background.png
Source2:	tranculent_howto
Patch1:		%{name}-themes_subdir_naming.diff
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	automake autoconf libstdc++-devel libtool
BuildRequires:	kdelibs3-devel
Requires:	%{name}-themes

%description
Kirocker is a Kicker applet that displays what you listen to in Amarok.

With this panel applet, you always know what you are listening to, and can watch
its cover and star rating: it is always visible. It allows you to rate your
music with one click: you can quickly change the number of stars of your musics
from anywhere on your desktop. Finally, it let you remotely control Amarok with
one click from anywhere on your desktop: play next or previous track, pause,
play, and seek to another position in the current track.

You also have the possibility to show your currently playing music in a
beautiful full screen mode. Ideal for parties or to listen to music while doing
something else away from the computer.


Authors:
--------
     Sébastien Laoût <slaout@linux62.org>


%package themes
Summary: Kirocker Themes
Group: System/GUI/KDE/Applet
Requires: %{name} = %{version}

%description themes
Default themes for Kirocker.


Authors:
--------
     Sébastien Laoût <slaout@linux62.org>


%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -q -n "%{name}-%{rversion}Beta3"
%patch1
%{?suse_update_config:%{suse_update_config -f}}

%build

%configure --with-qt-libraries=/usr/lib/qt3/%_lib

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

%install
%makeinstall

%__install -d -m 0755 %{buildroot}%{_docdir}/%{name}/transculent_bg

%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_docdir}/%{name}/transculent_bg/Kicker_Right_Translucent_Background.png"
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_docdir}/%{name}/transculent_bg/tranculent_howto"
%__install -D -m 0644 "%{_builddir}/%{name}-%{rversion}Beta3/AUTHORS" "%{buildroot}%{_docdir}/%{name}/AUTHORS"
%__install -D -m 0644 "%{_builddir}/%{name}-%{rversion}Beta3/COPYING" "%{buildroot}%{_docdir}/%{name}/COPYING"

%__rm -rf "%{buildroot}%{_datadir}/apps/amarok/scripts/%{name}/%{name}.spec"
%__rm -rf "%{buildroot}%{_datadir}/apps/amarok/scripts/%{name}/COPYING"
%__rm -rf "%{buildroot}%{_datadir}/apps/amarok/scripts/%{name}/AUTHORS"

%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif

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

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_libdir}/kde3/%{name}_panelapplet.*
%{_datadir}/applnk/Multimedia/%{name}.desktop
%{_datadir}/apps/amarok/scripts/%{name}/*
%{_datadir}/apps/kicker/applets/%{name}-applet.desktop
%{_datadir}/apps/%{name}/*
%exclude %{_datadir}/apps/%{name}/themes
%{_datadir}/config.kcfg/%{name}.kcfg
%{_datadir}/doc/HTML/*
%{_datadir}/icons/crystalsvg/*
%{_defaultdocdir}/%{name}/*

%files themes
%defattr(-,root,root)
%{_datadir}/apps/%{name}/themes
%{_datadir}/mimelnk/application/x-%{name}-theme.desktop


%changelog
* Tue Dec 4 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 4.0
- new upstream version:
  * Theme support with wonderful ones provided by default and a graphical editor
    that is both powerful and surprisingly easy to use
  * Have fun karaokees with automatically-scrolling lyrics
  * Added a better no-cover image, from Oxygen (sorry guys, but it's the only
    beautiful and scalable image I found)
  * Now using the "Track, Artist, Album" order (instead of "Artist, Album,
    Track") to be more complient with other displays, such as iPod, Last.fm, and
    even Amarok.
  * Changed the application icon to a better one, using an Oxygen composition.
    Also show the icon back in the panel big tooltip, as it cannot be confused
    with an empty cover image anymore
  * Removed a lot of bugs
  * Enhanced performances

* Sat Dec 1 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 4.0Beta3
- new upstream version:
  * Create/edit/delete/export/import themes entirely graphically with
    ease (only frame creation is still missing from the GUI)
  * Theme authors can use lightning overlays on the cover image, with some
    overlays provided by default
  * New available frames: Plasma frame and cover drop shadow
  * Lyrics can have HTML (for eg. italic for texts like "[Chorus]")
  * No more poor performances for some themes using big frames
  * Removed the bug of "transition keeps animating" when listening to some
    internet stream (podcast, web radio...)
  * Correctly hide the cursor the very first time the full-screen display is
    shown
  * Sometimes, parts or all of the star shadows were disappearing after a window
    obscured them
  * Lyrics frame is now on top of everything else (cover&text frame, Next
    Playing text...)
  * Keyboard focus on first full-screen-show problem should be solved
* Tue Oct 9 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 4.0Beta2
- new upstream version:
  * Have fun karaokees with automatically-scrolling lyrics
  * Themes can have text-shadow and customizable frames. 27 frames already come
    packaged with this version.
  * Added a better no-cover image, from Oxygen (sorry guys, but it's the only
    beautiful and scalable image I found)
  * Now using the "Track, Artist, Album" order (instead of "Artist, Album, Track")
    to be more complient with other displays, such as iPod, Last.fm, and even Amarok.
  * Changed the application icon to a better one, using an Oxygen composition. Also
    show the icon back in the panel big tooltip, as it cannot be confused with an
    empty cover image anymore

* Mon Aug 20 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.4.1
- new upstream version:
  * Fixed issue with very large playlists where Kirocker Music Display were
    acting bad, or not responding
  * Fixed the long-standing crash that I finally was able to reproduce. Kirocker
    Music Display should be rock solid now!

* Sat Aug 4 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.4
- new upstream version:
  New features:
  * Show blinking taskbar entries in full screen mode, so you will not miss any
    MSN or Jabber discussions when coming back near your computer
  * Show "Next Playing" tracks in full screen mode (except when using random
    playing or Last.fm radio)
  * Make the displayed times in full screen to flicker when paused
  * Now supports radio-streams track-title changes
  * Use less horizontal margin (more space for text) for 4/3 screens (not wide
    screens)
  * Removed the icon in the panel "big tooltip", because it leaded to confusion
    as it looked like a no-cover image, and it was conveing no useful
    information
  Fixed bugs:
  * Last.fm cover image is now shown for everybody
  * Full screen album cover is displayed at full size even if the artist of
    album name contains a single-quote/apostroph (')
  * Do not turn off screen in full screen mode (disable energy economy during
    full screen)
  * Screen saver is not re-enabled after full screen if it was disabled before
    the full screen
  * Amarok OSD is not re-enabled after full screen if it was disabled before the
    full screen
  * Libraries are now stored in KDE's lib path
  * Moved "Kicker Right Translucent Background.png" in the root folder of the
    archive, a more expectable place, and this let packagers work without problem

* Sun Jun 17 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.2
- new upstream version:
  * Display date & hour in full screen (to listen to music without being late at
    work)
  * Supports Last.fm radio (all informations, the cover image, stop button
    instead of pause, no seek allowed)
  * Now available in standalone full screen mode, available in the KMenu,
    without needing to use the applet
  * The full screen mode is also available in the playlist context menu of
    Amarok by using an Amarok script (relaunch Amarok after installation to see
    the script and be able to enable it)
  * Added a DCOP call to show full screen mode from the applet. Use KHotKeys and
    this command to associate a global keyboard shortcut: "dcop kicker Kirocker
    showFullScreen" (or more simplier, add a shortcut to the KMenu entry)
  Fixed bugs:
  * The cover was sometimes pixelised in full screen mode
  * Full Screen mode now resizes itself when screen size changed
  * Do not show the progressbar for tracks that can't be seeked and that do not
    have a total duration available (like for Magnatune preview tracks)

* Tue Mar 13 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.0.0
- new upstream version:
  * Crossfade animations for buttons appearing/disappearing
  * Horizontal sliding animations for song switching (like iPod menus)
  * Allow half-first-star like recent versions of Amarok now allow
  * Better and more keyboard shortcuts (with an information dialog):
    - Space or Enter: Play/pause
    - PageUp/PageDown or P/N: Change track
    - Left/Right: Seek in track
    - Up/Down: Change volume
    - F1/F2/F3/F4/F5: Change star rating
    - Escape or Q: Close full screen
  * KDE 3.5 users will not be annoyed anymore by the applet tooltip. For them,
    the tooltip is replaced by the animated big tip, like on the KMenu or the
    clock. This tip displays the time spend and left in live.
  * Slicker features:
    - If displaying text on two lines (small horizontal panel) and artist and/or
      album are not there, do not put the "-"
    - If no track information, display the file name (like in Amarok)
    - Adapts to dynamic changes of the standard font size
  * Fixed bugs:
    - Work well with Xinerama or mergedFB dual-screen
    - No more flicker when showing the full screen mode
    - No cover/progressbar/stars in full screen when stopped
    - Close full screen with mouse on FullScreen-button: hand cursor is back
  * Additionnal changes compared to 3.0 Beta 2:
    - Animate progressbar too
    - Invert slide animation if moving to the previous track (or resuming)
    - Animate in full screen when going/coming from stopped
    - Buttons were sometimes fading out when showing the full screen

* Wed Mar 7 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.0Beta2
- new upstream version
  * Horizontal sliding animations for song switching (like iPod menus)

* Tue Mar 6 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 3.0Beta1
- new upstream version
  * Crossfade animations for buttons appearing/disappearing
  * Slicker: if displaying text on two lines (small horizontal panel) and artist
    and/or album is not ther, do not put the "-"
  * Work well with Xinerama or mergedFB dual-screen. NEED TESTERS to tell me if
    it is really the case.

* Sat Mar 3 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 2.2.0
- initial release
  * More modern look:
    - Crystal-looking progressbar in full screen, and with bigger inner
      light-border
    - Oxygen "full screen" icon (also scale better for big panels)
  * Smarter behaviors for better and bigger looking applet, making configuration
    less needed:
    - Extend width for horizontal panel to let display long texts
    - Automatically change text color and add text shadow to be always visible
      on the panel, even with dark background color
    - Remove reflexion if there is not much place (unoticable anyway)
    - Move the progressbar on top of the text for horizontal panel if there is
      enough place there (making the album cover bigger)
    - Move stars bellow the text information when there is more space there in
      the horizontal Kicker layout
    - Two lines of text instead of 3 if there isn't enough place: "Artist -
      Album (Year)" and "Track: Title"
  * Solved bugs (most were hardly noticable bugs but held up the fit & finish
    touch):
    - Scroll wheel work when scrolling fast (it was a pain to use, before)! It
      is so natural and fast now...
    - When quitting Amarok, the applet still tought it was playing
    - Do not draw the star reflection on top of the text
    - When mouse was hidden over a button, moving it a little did not restored
      the hand cursor
    - Always hide the mouse cursor 3 seconds after a mouse release (not before,
      and not never)
    - Solve a graphics glitch on the cover reflection when the cover has
      transparency (eg. "nocover.png") or (sometimes) higher than wide.
    - Stars where not shown when moving the mouse cursor over the very borders
      of the applet
    - No anymore need to do "make -f Makefile.cvs" in order to compile & install
      the applet
openSUSE Build Service is sponsored by