File kshowmail.spec of Package kshowmail

%define _prefix /opt/kde3

Summary:   POP mail checker for KDE
Name:      kshowmail
Version:   3.3.1
Release:   1
License:   GPL-2.0
Url:       http://www.sourceforge.net/projects/kshowmail

Group:     Productivity/Networking/Email/Utilities
Source:    http://prdownloads.sourceforge.net/kshowmail/%{name}-%{version}.tar.gz
Patch0:     strcompare.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires: qt3-devel >= 3.3, kdelibs3-devel >= 3.4, kdepim3-devel

%description
kShowmail is a KDE tool for watching for email on POP3 servers. 
Headers and complete email messages can be displayed, and email can 
be deleted without downloading. The information can be refreshed via timers, 
and a sound can be played when new email arrives. External programs like 
fetchmail/sendmail can be called via configurable menu entries or if new mail 
arrives. Spam complaints can also be sent via configurable menus.

%prep
%setup
%patch -P 0 -p1

%build
export CXXFLAGS=$RPM_OPT_FLAGS
export CFLAGS=$RPM_OPT_FLAGS
. /etc/opt/kde3/common_options
update_admin --no-unsermake
./configure $configkde
make %{?jobs:-j%{jobs}}

%install
make install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/24x24/apps
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/16x16/apps
cp -f pics/kshowmail.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps/kshowmail.png
cp -f pics/kshowmail24.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/24x24/apps/kshowmail.png
cp -f pics/kshowmail16.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/16x16/apps/kshowmail.png

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.kshowmail
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kshowmail
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kshowmail

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -f ../file.list.kshowmail
%defattr(-,root,root-)
%doc AUTHORS ChangeLog COPYING README ReleaseNotes

%changelog
openSUSE Build Service is sponsored by