File kde3-krecord.spec of Package kde3-krecord

#
# spec file for package kde3-krecord
#
# Copyright (c) 2012 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:           kde3-krecord
BuildRequires:  kdelibs3-devel
Url:            http://linux.bytesex.org/misc/krecord.html
Summary:        A Sound Recorder
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Version:        1.16
Release:        0
Source:         krecord-%{version}.tar.bz2
Source1:        krecord.png
Patch:          krecord.diff
Patch2:         updated-hu-translation.diff
Patch3:         krecord-ld_fix.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       krecord = %{version}
Obsoletes:      krecord

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

%prep
%setup -q -n krecord-%{version}
%patch
%patch2
%patch3

%build
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
sed -i 's|-Wall|-Wall -Wl,--add-needed|g' mk/Variables.mk
export LDFLAGS="$LDLAGS -Wl,--add-needed"
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/
%suse_update_desktop_file -G "Sound Recorder" krecord AudioVideo Recorder
%find_lang krecord

%files -f krecord.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
openSUSE Build Service is sponsored by