File kamix.spec of Package kamix

#
# spec file for package kamix (Version 0.0.7e)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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 via http://bugs.opensuse.org/
#

# norootforbuild

Name:           kamix
BuildRequires:  kdelibs3-devel
URL:            http://www.suse.de/~mana
License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          Productivity/Multimedia/Sound/Mixers
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        0.0.7e
Release:        247
Summary:        KDE Mixer for ALSA
Source:         qamix-%{version}.tar.bz2
Source1:        multimedia.png
Patch:          kamix.diff
Patch1:         dont_autostart_kamix.diff

%description
KDE Mixer for ALSA

Authors:
--------
    Matthias Nagorni <mana@suse.de>
    Arvin Schnell <arvin@suse.de>

%prep
%setup -q -n qamix-%{version}
%patch
%patch1

%build
make -f make_kamix \
    QT_LIB_DIR=\$\(QT_BASE_DIR\)/%{_lib} \
    X11_LIB_DIR=/usr/X11R6/%{_lib} \
    KDE_LIB_DIR=/opt/kde3/%{_lib}
for f in po/*.po ; do
    f=${f%.po} ; f=${f##*/}
    msgfmt -v -o po/$f.gmo po/$f.po
done

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir -p $RPM_BUILD_ROOT/usr/share/kamix
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/48x48/apps
install -D kamix $RPM_BUILD_ROOT/opt/kde3/bin/kamix
install -D mini-kamix.png $RPM_BUILD_ROOT/opt/kde3/share/apps/kamix/icons/hicolor/22x22/kamix.png
install -D %{SOURCE1} $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/48x48/apps/kamix.png
cp *.xml $RPM_BUILD_ROOT/usr/share/kamix
for f in po/*.gmo ; do
    f=${f%.gmo} ; f=${f##*/}
    install -D po/$f.gmo $RPM_BUILD_ROOT/opt/kde3/share/locale/$f/LC_MESSAGES/kamix.mo
done
install -D kamix.desktop $RPM_BUILD_ROOT/opt/kde3/share/applications/kde/kamix.desktop
install -D kamix.desktop $RPM_BUILD_ROOT/opt/kde3/share/autostart/kamix.desktop
%suse_update_desktop_file %name AudioVideo Mixer
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc README LICENSE THANKS *.ams
/opt/kde3/bin/*
/usr/share/kamix
/opt/kde3/share/applications/kde/*.desktop
/opt/kde3/share/autostart/*.desktop
/opt/kde3/share/apps/kamix
/opt/kde3/share/icons/hicolor/*/*/kamix.*

%changelog
* Fri Mar 09 2007 - stbinner@suse.de
- fix build (new icon location check)
* Mon Jan 30 2006 - dmueller@suse.de
- don't autostart kamix by default anymore, kmix is new default
  (#146690)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Apr 30 2004 - hmacht@suse.de
- added norootforbuild in specfile
* Mon Mar 22 2004 - mana@suse.de
- fixed position of master slider popup window (Bug 34553)
* Tue Feb 17 2004 - adrian@suse.de
- fix Categorie
- install .desktop file in kde/ dir
* Thu Sep 18 2003 - arvin@suse.de
- added Hungarian translation
* Wed Sep 17 2003 - mana@suse.de
- KAMix start by session manager disabled (thanks to Adrian).
* Wed Sep 17 2003 - mana@suse.de
- Now completely fixes bug 31009. KAMix main window is moved
  to the current desktop if second instance of KAMix is started
  from the menu.
- Fix for bug 31090: Size of LED number display does not change
* Tue Sep 16 2003 - mana@suse.de
- Now really fixed menu icon.
* Tue Sep 16 2003 - mana@suse.de
- Fixed menu icon.
* Tue Sep 16 2003 - mana@suse.de
- If second instance of KAMix is started, KAMix shows main
  mixer window. This fixes bug 31009.
* Mon Sep 15 2003 - mana@suse.de
- fixed segfault on systems without any soundcard
- program does not exit when running without ALSA sequencer
* Mon Sep 15 2003 - mana@suse.de
- disabled debug messages.
- click on icon toggles display of "Master" slider window
  (in addition to auto hide on mouse leave).
- updated README to reflect recent fix of ctl-element index bug.
* Fri Sep 12 2003 - mana@suse.de
- "Master" slider window now disappears on mouse leave.
  "hideOnLeave" is activated after TimeOut of 2 sec.
* Thu Sep 11 2003 - mana@suse.de
- Fixed position of "Master" slider window. Position works now
  for all locations of the KDE taskbar.
- Fixed ctl-element index bug.
* Wed Sep 10 2003 - mana@suse.de
- Separated frameless "Master only" window from main mixer window.
- New policy: Left button triggers frameless "Master only",
  main mixer window is called from context menu.
- Several layout improvements.
* Fri Sep 05 2003 - mana@suse.de
- fixed icon name
* Tue Sep 02 2003 - adrian@suse.de
- fix build, use %%find_lang
* Mon Sep 01 2003 - mana@suse.de
- Added de.po. Fixed support for internationalisation.
* Fri Aug 29 2003 - mana@suse.de
- Fixed initial checkmarks in menu
- Fixed MIDI channel
* Fri Aug 29 2003 - mana@suse.de
- Fixed handling of command line args
* Thu Aug 28 2003 - mana@suse.de
- Fixed segfault on devices without mixer elements
* Sat Aug 23 2003 - arvin@suse.de
- added autostart for kde
- updated to version 0.0.7_pre08
* Fri Aug 22 2003 - mana@suse.de
- Fixed naming qamix-->kamix at several places.
* Fri Aug 22 2003 - mana@suse.de
- fixed SocketNotifier handling
- fixed contextmenu
- removed redundant menubar
- fixed startup mode (now "Master only")
* Thu Aug 21 2003 - arvin@suse.de
- added a icon
* Tue Aug 19 2003 - ro@suse.de
- build on lib64 platforms
* Mon Aug 18 2003 - mana@suse.de
- initial package derived from package qamix
openSUSE Build Service is sponsored by