File krecord.spec of Package krecord

#
# spec file for package krecord (Version 1.16)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           krecord
BuildRequires:  kdelibs3-devel
Url:            http://linux.bytesex.org/misc/krecord.html
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Utilities
AutoReqProv:    on
Summary:        A Sound Recorder
Version:        1.16
Release:        266
Source:         %{name}-%{version}.tar.bz2
Source1:        krecord.png
Patch:          krecord.diff
Patch2:         updated-hu-translation.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This program records sound from your sound card and saves it to WAV
files.



Authors:
--------
    Gerd Knorr <kraxel@suse.de>

%prep
%setup -q
%patch
%patch2

%build
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
make

%install
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps/
install -m 0644 %SOURCE1 \
        $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps/
%if %suse_version < 1010
%suse_update_desktop_file %name AudioVideo Recorder
%else
%suse_update_desktop_file -G "Sound Recorder" %name AudioVideo Recorder
%endif
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%doc README 
/opt/kde3/bin/krecord
/opt/kde3/share/appl*/*/krecord.desktop
/opt/kde3/share/apps/krecord
/opt/kde3/share/icons/hicolor/32x32/apps/*.png

%changelog
* Tue May 20 2008 schwab@suse.de
- Fix broken configure check.
* Fri Apr 13 2007 stbinner@suse.de
- updated hu translations (#262438)
* Thu Jun 22 2006 dmueller@suse.de
- install icon as hicolor (#186700)
* Wed May 24 2006 adrian@suse.de
- fix build for < 10.1
* Wed Feb 15 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 schwab@suse.de
- Don't strip binaries.
* Wed Nov 23 2005 dmueller@suse.de
- fix crash on close or on using level meter (#132538)
- use KDE file dialog because its bunter
* Thu Mar 10 2005 adrian@suse.de
- package icon pixmap also
* Wed Mar 09 2005 adrian@suse.de
- avoid mime type icon in menu
* Thu Feb 17 2005 adrian@suse.de
- menu entry moved to xdg dir
* Mon Nov 08 2004 kraxel@suse.de
- update to version 1.16
* Tue Feb 17 2004 adrian@suse.de
- fix Categories
* Fri Feb 13 2004 kraxel@suse.de
- update to 1.15.1.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Wed Sep 17 2003 kraxel@suse.de
- updated to latest snapshot (#31160).
* Fri Sep 12 2003 kraxel@suse.de
- build with -fno-strict-aliasing (#30566).
* Mon Sep 08 2003 adrian@suse.de
- define an icon
* Tue Aug 12 2003 adrian@suse.de
- s,krecord.kdelnk,krecord.desktop,
* Tue Aug 12 2003 adrian@suse.de
- add Categories
* Tue Jun 17 2003 coolo@suse.de
- package directories
* Thu Jun 12 2003 coolo@suse.de
- use %%find_lang
* Tue Apr 15 2003 kraxel@suse.de
- updated to version 1.14
* Fri Jan 17 2003 kraxel@suse.de
- updated to version 1.13
* Wed Nov 20 2002 kraxel@suse.de
- updated to version 1.12
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue Jun 18 2002 kraxel@suse.de
- fix build problems.
* Wed Jun 12 2002 coolo@suse.de
- using new $configkde
* Tue Jun 11 2002 ro@suse.de
- fix build on lib64
* Mon Mar 25 2002 adrian@suse.de
- change common_compile_options path
* Sat Feb 16 2002 adrian@suse.de
- use common kde3 compile options
* Mon Feb 04 2002 kraxel@suse.de
- New version 1.11
* Mon Feb 04 2002 ro@suse.de
- fixed to compile
* Mon Jan 28 2002 kraxel@suse.de
- New version 1.10
* Mon May 29 2000 adrian@suse.de
- New version 1.5
* Sat May 27 2000 adrian@suse.de
- Added group tag, suse_update_config and new file list
* Fri May 26 2000 adrian@suse.de
- Spec file created from krecord-1.4.tar.gz by autospec
* Thu Mar 30 2000 adrian@suse.de
- delete the kbase from neededforbuild
* Wed Jan 12 2000 kettner@suse.de
- New version 1.4
* Tue Oct 19 1999 kettner@suse.de
- New version 1.3
* Fri Sep 17 1999 kettner@suse.de
- Reinserted old # Commandline: line.
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Apr 28 1999 kettner@suse.de
- New version 1.1
openSUSE Build Service is sponsored by