%define preversion 20101010git6c0a9e6 Name: k4dirstat Version: 2.7.0 Release: 0.5.%{preversion}%{?dist} Summary: Graphical Directory Statistics for Used Disk Space Group: Applications/System License: GPLv2 and LGPLv2 URL: http://grumpypenguin.org/ Source0: %{name}-%{version}.tar.bz2 #script to get snapshot of k4dirstat Source1: k4dirstat-snapshot.sh BuildRequires: kdebase4-devel Obsoletes: kdirstat < %{version}-%{release} Provides: kdirstat = %{version}-%{release} %{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } %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. K4DirStat is the port to KDE4. %prep %setup -q %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} cd %{buildroot}%{_kde4_bindir} ln -s k4dirstat kdirstat %check desktop-file-validate \ %{buildroot}/%{_datadir}/applications/kde4/k4dirstat.desktop %post touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: %posttrans gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: %postun if [ $1 -eq 0 ] ; then touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: update-desktop-database -q &> /dev/null ||: fi %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING.LIB CREDITS README %{_kde4_bindir}/k4dirstat %{_kde4_bindir}/kdirstat %{_kde4_datadir}/applications/kde4/k4dirstat.desktop %{_kde4_datadir}/config.kcfg/k4dirstat.kcfg %{_kde4_docdir}/HTML/en/k4dirstat/ %{_kde4_iconsdir}/hicolor/*/apps/k4dirstat.png %{_kde4_appsdir}/k4dirstat %changelog * Tue Dec 16 2010 Dmitrij S. Kryzhevich <krege@land.ru> - 2.7.0-0.5.20101010git6c0a9e6 - Add symlink kdirstat -> k4dirstat. * Sat Dec 04 2010 Dmitrij S. Kryzhevich <krege@land.ru> - 2.7.0-0.4.20101010git6c0a9e6 - Cleanup spec. * Mon Oct 11 2010 Dmitrij S. Kryzhevich <krege@land.ru> - 2.7.0-0.3.20101010git6c0a9e6 - Sources update to git 6c0a9e6. - Zlib patch dropped. - Add obsoletes for kdirstat. * Sun Oct 10 2010 Dmitrij S. Kryzhevich <krege@land.ru> - 2.7.0-0.2.20101010gitdd2de8e - Change kdebase-devel to kdebase4-devel for sure. * Sun Oct 10 2010 Dmitrij S. Kryzhevich <krege@land.ru> - 2.7.0-0.1.20101010gitdd2de8e - Sources update. - %%fles clean up. - Add script for getting sources. - Add LGPLv2 to License. - Add kdebase-devel to BR. - Move desktop-file-validate to %%check. - Update zlib patch. * Tue Jun 8 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.6.20100304gitec01dd42 - %%{_kde4_docdir}/HTML/en/k4dirstat/ must be owned. * Tue Jun 8 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.5.20100304gitec01dd42 - Fix the changelog (bad email and bad use of %%{?dist}). * Tue Jun 8 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.4.20100304gitec01dd42 - Patch0 for F-13: link explicitly with zlib. - Add a comment on Source0. * Sat Mar 6 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.3.20100304gitec01dd42 - New upstream version. - New doc files (added upstream). Among them: COPYING, README, AUTHORS. - Patch0 is merged upstream. * Tue Mar 2 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.2.20100223gitd3b530af3 - Use kde4 rpm macros. * Tue Mar 2 2010 <Laurent.Rineau__fedora@normalesup.org> - 0-0.1.20100223gitd3b530af3 - Initial build.