File kde3-kdar.spec of Package kde3-kdar

#
# spec file for package kde3-kdar (Version 2.1.0)
#
# Copyright (c) 2009, 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%define _prefix /opt/kde3

Name:           kde3-kdar
Version:        2.1.0
Release:        0
License:        GPL-2.0
Summary:        Disk Archiver for KDE3
URL:            http://kdar.sourceforge.net
Group:          Productivity/Archiving/Backup
Source:         %{name}-%{version}.tar.bz2
Source1:        kdar.desktop
BuildRequires:  kdelibs3-devel
BuildRequires:  libdar-devel < 2.4.0
Provides:       kdar = %{version}
Obsoletes:      kdar < 2.1.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KDar is the KDE Disk Archiver. It is a convenient graphical interface to Denis
Corbin's libdar archiving and backup C++ library.
You can safely backup (with compression if you like), view and restore files
using KDar, along with a few easy UNIX commands for mounting and burning CD-R's,
Zip and Jazz drives, DVD-R's, floppies, or any other disk-based storage media.

%prep
%setup -q -n kdar-%{version}
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
export SUSE_ASNEEDED=0
. /etc/opt/kde3/common_options
sed -i 's|if test "x$build_mode" = "x"; then|if test "z" = "x"; then|' configure
export LDFLAGS="$LDFLAGS -ldar"
export LIBS="$LIBS -ldar"
export CXXFLAGS_EXTRA=""
./configure $configkde --disable-final
%{__make} %{?_smp_mflags}

%install
. /etc/opt/kde3/common_options
%{makeinstall}
%{__rm} $RPM_BUILD_ROOT/opt/kde3/share/applnk/Utilities/kdar.desktop
%{__mkdir} -p $RPM_BUILD_ROOT/opt/kde3/share/applications/kde
%{__cp} %SOURCE1 $RPM_BUILD_ROOT/opt/kde3/share/applications/kde
kde_post_install
%find_lang kdar

%files -f kdar.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README TODO THANKS USAGE
%{_bindir}/kdar
%{_datadir}/applications/kde/kdar.desktop
%{_datadir}/apps/kdar/
%{_datadir}/icons/*/*/*/kdar*.png

%changelog

openSUSE Build Service is sponsored by