File kdirstat.spec of Package kdirstat

#
# spec file for package kdirstat (Version 2.4.4)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           kdirstat
BuildRequires:  kdelibs3-devel
Url:            http://kdirstat.sourceforge.net
License:        GPL-2.0+
Group:          Productivity/File utilities
Summary:        Graphical Directory Statistics for Used Disk Space
Version:        2.4.4
Release:        255
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        kdirstat-%{version}.tar.bz2

%description
KDirStat (KDE Directory Statistics) is a utility program that sums up
disk usage for directory trees--very much like the Unix 'du' command.
It can also help you clean up used space.



Authors:
--------
    Stefan Hundhammer <sh@suse.de>

%prep
%setup -q
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%if %suse_version < 1010
%suse_update_desktop_file %name Filesystem
%else
%suse_update_desktop_file -N "KDirStat" -G "Directory Statistics" %name Filesystem
%endif
kde_post_install
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog TODO README
/opt/kde3/bin/kdirstat
/opt/kde3/share/apps/kdirstat
/opt/kde3/share/appl*/*/kdirstat*
/opt/kde3/share/doc/HTML/*/kdirstat/
%dir /opt/kde3/share/icons/hicolor/16x16
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32
%dir /opt/kde3/share/icons/hicolor/32x32/apps
/opt/kde3/share/icons/??color/??x??/*/kdirstat*
%dir /opt/kde3/share/apps/kconf_update
/opt/kde3/share/apps/kconf_update/kdirstat.upd
/opt/kde3/share/apps/kconf_update/fix_move_to_trash_bin.pl

%changelog
* Fri Jun 01 2007 coolo@suse.de
- use kde_post_install
* Mon Sep 18 2006 dmueller@suse.de
- build parallel
* Tue May 30 2006 adrian@suse.de
- fix build for < 10.1
* Wed Feb 15 2006 stbinner@suse.de
- fix Name/GenericName in .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Feb 22 2005 sh@suse.de
- Updated to V 2.4.4 (thorougly tested since 12/2004):
  Support for hard links and sparse files
* Thu Feb 17 2005 adrian@suse.de
- menu entry moved to xdg dir
* Wed Jan 12 2005 coolo@suse.de
- disable unsermake - using GNU make extensions
* Mon Dec 06 2004 sh@suse.de
- Updated to V 2.4.3:
  Added "Open with" cleanup action
* Wed Nov 24 2004 ro@suse.de
- fixed filelist (file listed twice)
* Wed Nov 24 2004 sh@suse.de
  Updated to V 2.4.2:
- Integrated all patches upstream (I am the upstream author)
- Fixed lots of KDE libs "deprecated" warnings
- Now using "trash:/" if running under KDE >= 3.4
- Added config file update file (migration ~/KDesktop/Trash -> %%t)
* Tue Mar 30 2004 sh@suse.de
- Fixed KPacMan animation widget rendering in toolbar
* Mon Mar 01 2004 sh@suse.de
- Updated German translation
* Mon Feb 23 2004 adrian@suse.de
- add %%suse_update_desktop_file
* Tue Jan 13 2004 coolo@suse.de
- fixing Makefile problems
- use %%find_lang
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
- let rpm strip
* Tue Oct 14 2003 sh@suse.de
- Fixed abuild complaints about dirs not owned by package
* Fri Oct 10 2003 sh@suse.de
- Moved Hungarian translation into tarball
- Fixed KDE-3 doc build problems
- Bumped version to 2.4.1
* Mon Sep 15 2003 sh@suse.de
- Added Hungarian translaton contributed by hili@suselinux.hu
* Mon Sep 01 2003 adrian@suse.de
- add Categories
* Sat Aug 30 2003 ro@suse.de
- added directories to filelist
* Fri Aug 29 2003 sh@suse.de
- Updated to 2.4.0 which is little more than 2.3.7 declared "stable"
  plus a bug fix: Fixed crash on program quit while still reading
  directories
- Added German translation
* Mon Jul 28 2003 adrian@suse.de
- add Categories
* Sun Jun 15 2003 coolo@suse.de
- package directories and use %%find_lang
* Mon May 26 2003 sh@suse.de
- update to 2.3.7: Performance boost
* Mon Feb 03 2003 sh@suse.de
- update to 2.3.6: Fixed crash on startup without config file
* Fri Jan 31 2003 sh@suse.de
- update to 2.3.5 (with colored treemaps)
* Fri Nov 22 2002 ro@suse.de
- disable-final
* Mon Jun 03 2002 adrian@suse.de
- update to 2.2.0 final
* Wed May 22 2002 coolo@suse.de
- adding admin tarball and use common_options
* Tue Apr 23 2002 sh@suse.de
- Updated to V 2.1.1-beta:
  Improved support for Asian languages
  New: Translation for Japanese
* Thu Apr 18 2002 sh@suse.de
- Updated to V 2.1.0-beta:
  KDE 3 -port (new admin/ subdirectory)
* Fri Mar 01 2002 sh@suse.de
- Updated to V 2.0.1:
  Support for large files (>2GB)
  The real diff is only one line in configure.in.in
  (AC_SYS_LARGEFILE) and one '#include "config.h"'
  in kdirtree.cpp
  Checked by Andreas Jaeger
* Mon Feb 25 2002 sh@suse.de
- Updated to V 2.0.0:
  - Completed help texts
  - Added "Help" button in settings dialog
  - Added "Help" button in feedback dialog
* Mon Feb 11 2002 sh@suse.de
- Updated to V 1.8.8-rc3:
  - Disable cleanups that would change the tree while it is still
  being read -> prevent core dump
* Mon Feb 11 2002 sh@suse.de
- Updated to V 1.8.7-rc2:
  - Fixed double slashes in URLs when opening with file sel. box
  - Fixed huge numbers overflow in details context popup
  - Fixed huge numbers sorting
  - Added new action "continue reading at mount point".
* Tue Feb 05 2002 sh@suse.de
- Updated to V 1.8.6-rc1:
  - Added online help text (en)
  - Fixed URLs to match new web site
* Mon Jan 28 2002 sh@suse.de
- Updated to V 1.8.5-beta:
  - Fixed update bug upon "refresh branch" and executing cleanups
  - Embed cleanup %%p / %%n parameters in double quotes
  - Added keyboard accelerators for standard cleanups
  - (Partial) fix for PacMan animation display error on some KDE themes
* Mon Jan 21 2002 sh@suse.de
- Updated to V 1.8.4-beta:
  - New: feedback mail
  - Fixed some repaint errors
* Mon Jan 07 2002 sh@suse.de
- Updated to V 1.8.3-beta:
  This version is almost complete, just the help files are missing
- adrian's patch of the auto{make,conf} stuff is now in the
  sources
- Added TODO to file list
* Wed Dec 12 2001 adrian@suse.de
- update to version 1.8.1 beta (KDE 2)
  (/me ignores HuHa's "do not package a beta version" warnings !)
* Fri Aug 24 2001 ro@suse.de
- added old KDEDIR and QTDIR to build with 7.3 environment
* Tue Aug 14 2001 ro@suse.de
- autoconf 2.52 fixes
* Thu May 25 2000 adrian@suse.de
- Added group tag, suse_update_config and new file list
* Thu May 25 2000 adrian@suse.de
- Spec file created from kdirstat-0.86.tgz by autospec
* Thu May 18 2000 adrian@suse.de
- fixed file list
  added suse_config_update
* Thu Mar 30 2000 adrian@suse.de
- delete the kbase from neededforbuild
* Tue Jan 25 2000 sh@suse.de
- Updated to V0.86
* Wed Jan 19 2000 kettner@suse.de
- Spec file created from kdirstat-0.85.tgz by autospec