1.1 --- a/kbiff.spec Mon Mar 21 07:20:19 2011 -0700
1.2 +++ b/kbiff.spec Tue Mar 22 08:36:27 2011 -0700
1.3 @@ -1,17 +1,15 @@
1.4 -# This is the only variables that you need to change
1.5 -Prefix: /usr
1.6 -
1.7 Name: kbiff
1.8 Summary: KBiff -- Mail notification utility
1.9 Version: 4.0
1.10 Release: 1
1.11 -License: GPL
1.12 +License: GPLv2
1.13 Group: Productivity/Networking/Email/Utilities
1.14 -Source: kbiff-%{version}.tar.bz2
1.15 +Source: %{name}-%{version}.tar.bz2
1.16 URL: http://kbiff.org
1.17 Packager: Kurt Granroth <granroth@kde.org>
1.18 -BuildRoot: /tmp/kbiff-%{version}
1.19 -
1.20 +BuildRoot: %{_tmppath}/%{name}-%{version}-build
1.21 +BuildRequires: libkde4-devel
1.22 +
1.23 %description
1.24 An "xbiff"-like mail notification utility. Has multiple
1.25 pixmaps, session management, and GUI configuration. Can
1.26 @@ -20,29 +18,33 @@
1.27 mail arrives. Supports mbox, maildir, mh, POP3, IMAP4,
1.28 and NNTP mailboxes. Has capability to monitor multiple
1.29 mailboxes with one instance. Supports SSL.
1.30 -
1.31 +
1.32 %prep
1.33 %setup
1.34 -
1.35 +
1.36 %build
1.37 -cmake -DCMAKE_INSTALL_PREFIX=%{prefix}
1.38 -make
1.39 -
1.40 +%cmake_kde4 -d build
1.41 +%make_jobs
1.42 +
1.43 %install
1.44 -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
1.45 -make DESTDIR=$RPM_BUILD_ROOT install
1.46 -
1.47 +pushd build
1.48 +%{makeinstall}
1.49 +popd
1.50 +%kde_post_install
1.51 +
1.52 %clean
1.53 -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
1.54 -
1.55 +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
1.56 +
1.57 %files
1.58 %defattr(-,root,root)
1.59 -%{prefix}/bin/kbiff
1.60 -%{prefix}/lib*/*
1.61 -%{prefix}/share/applications/kde4/kbiff.desktop
1.62 -%{prefix}/share/kde4/apps/kbiff/
1.63 -%{prefix}/share/doc/kde/HTML/*/kbiff/
1.64 -%{prefix}/share/icons/*/*/apps/kbiff.png
1.65 -%{prefix}/share/locale/*/LC_MESSAGES/kbiff.mo
1.66 +%{_bindir}/kbiff
1.67 +%{_libdir}/libkdeinit4_kbiff.so
1.68 +%{_datadir}/applications/kde4/kbiff.desktop
1.69 +%{_datadir}/kde4/apps/kbiff/
1.70 +%{_datadir}/doc/kde/HTML/*/kbiff/
1.71 +%{_datadir}/icons/*/*/apps/kbiff.png
1.72 +%{_datadir}/locale/*/LC_MESSAGES/kbiff.mo
1.73 %{_mandir}/*/*
1.74 %doc AUTHORS ChangeLog COPYING INSTALL kbiff.lsm NEWS README
1.75 +
1.76 +%changelog