File kde3-filelight.spec of Package kde3-filelight
#
# Copyright 2003-2009 Herbert Graeber
#
# 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
%define _prefix /opt/kde3
Name: kde3-filelight
Version: 1.0
Release: 0
Summary: Graphical disk usage display
License: GPL-2.0
Url: http://www.methylblue.com/filelight/
Group: Productivity/File Utilities
Source0 http://www.methylblue.com/filelight/packages/filelight-1.0.tar.bz2
Source1 http://www.methylblue.com/filelight/packages/filelight-1.0-i18n-20060901.tar.bz2
Patch0: filelight-overflow-fix.diff
Patch1: filelight-desktop-fix.diff
Patch2: filelight-lineend.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: kdelibs3-devel
BuildRequires: fdupes
Provides: filelight = 1.0
Obsoletes: filelight <= 1.0
%description
Filelight creates a complex, but data-rich graphical representation of the files and directories on your computer.
%package lang
Summary: Language pack for package filelight
Group: System/Localization
Provides: filelight-lang = 1.0
Obsoletes: filelight-lang <= 1.0
%description lang
Provides translations to the package filelight
%prep
%setup -q -n filelight-%{version}
%setup -q -D -T -a 1 -n filelight-%{version}
%patch -P 0
%patch -P 1 -p1
%patch -P 2 -p1
. /etc/opt/kde3/common_options
update_admin
pushd filelight-%{version}-i18n-* >/dev/null
update_admin
popd >/dev/null
%build
. /etc/opt/kde3/common_options
./configure --prefix=%{_prefix} \
%ifarch x86_64 amd64 ia32e
--enable-libsuffix=64
%endif
make
pushd filelight-%{version}-i18n-* >/dev/null
%configure --prefix=%{_prefix}
make -C doc
make -C po
popd >/dev/null
%install
. /etc/opt/kde3/common_options
%makeinstall
pushd filelight-%{version}-i18n-* >/dev/null
%makeinstall -C doc
%makeinstall -C po
popd >/dev/null
%fdupes %{_datadir}/locale
kde_post_install
%find_lang filelight
%files
%defattr (-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
%{_bindir}/filelight
%config %{_datadir}/config/filelightrc
%{_datadir}/icons/*/*x*/apps/filelight.png
%{_datadir}/icons/*/*x*/actions/view_filelight.png
%{_datadir}/apps/filelight
%{_datadir}/*/*/filelight.desktop
%{_libdir}/kde3/libfilelight.la
%{_libdir}/kde3/libfilelight.so
%{_datadir}/services/filelight_part.desktop
%if %suse_version > 1130
%dir /opt/kde3/share/locale/br
%dir /opt/kde3/share/locale/br/LC_MESSAGES
%dir /opt/kde3/share/locale/ka
%dir /opt/kde3/share/locale/ka/LC_MESSAGES
%dir /opt/kde3/share/locale/az
%dir /opt/kde3/share/locale/az/LC_MESSAGES
%dir /opt/kde3/share/locale/cy
%dir /opt/kde3/share/locale/cy/LC_MESSAGES
%dir /opt/kde3/share/locale/ga
%dir /opt/kde3/share/locale/ga/LC_MESSAGES
%dir /opt/kde3/share/locale/rw
%dir /opt/kde3/share/locale/rw/LC_MESSAGES
%endif
%files lang -f filelight.lang
%defattr (-,root,root)
%changelog