summaryrefslogtreecommitdiffstats
path: root/kshowmail.spec
blob: f810ee647aff28d457717628b2efe7c9653fb295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# define for SuSE

%if %{_vendor} == redhat
%define suse_version 0
%endif
%if %{_vendor} == Mandriva
%define suse_version 0
%endif

%define su10 0
%if %{suse_version} == 1000 || %{suse_version} == 1010 || %{suse_version} == 1020 || %{suse_version} == 1030
%define su10 1
%endif
%define su11 0
%if %{suse_version} == 1100
%define su11 1
%endif
%define su9 0
%if %{suse_version} == 900 || %{suse_version} == 910 || %{suse_version} == 920 || %{suse_version} == 930
%define su9 1
%endif

%define _prefix /usr
%define configure_opts %nil

Summary:   POP mail checker for KDE
Name:      kshowmail
Version:   3.3.1
Release:   1
License:   GPL
Vendor:    Eggert Ehmke <eggert.ehmke@berlin.de>
Url:       http://www.sourceforge.net/projects/kshowmail

Packager:  D. Scott Barninger <barninger@fairfieldcomputers.com>
Group:     Mail
Source:    http://prdownloads.sourceforge.net/kshowmail/%{name}-%{version}.tar.gz
#Patch:     %{name}-%{version}-patch
BuildRoot: /var/tmp/kshowmail-root

%if %{su10} || %{su11}
Requires: qt3 >= 3.3, kdelibs3 >= 3.4
BuildRequires: qt3-devel >= 3.3, kdelibs3-devel >= 3.4, kdepim3-devel
%else
Requires: qt >= 3.2, kdelibs >= 3.1
BuildRequires: qt-devel >= 3.2, kdelibs-devel >= 3.1, kdepim3-devel
%endif

%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.

# SuSE turns off stripping of binaries by default. In order to get
# stripped packages we must generate debug package. RedHat and Mandriva
# turn debug packages on by default but strip binaries regardless.
%if %{su9} || %{su10}
%debug_package
%endif

%prep
%setup
#%patch -p1

./configure %{configure_opts}

%build

make 

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
make install DESTDIR=$RPM_BUILD_ROOT

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
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_DIR/kshowmail-%{version}
rm -rf ../file.list.kshowmail


%files -f ../file.list.kshowmail
%doc AUTHORS ChangeLog COPYING README ReleaseNotes

%changelog
* Sun Apr 20 2008 D. Scott Barninger <barninger at fairfieldcomputers.com>
- 3.3.0 release, fix if tag for debug package
* Sun Feb 03 2008 D. Scott Barninger <barninger at fairfieldcomputers.com>
- add debug package to strip suse
* Sat Oct 27 2007 <scott at fairfieldcomputers dot com>
- add SuSE 10.3
* Fri Jul 06 2007 <scott at fairfieldcomputers dot com>
- added docs files
* Sat Apr 21 2007 <scott at fairfieldcomputers dot com>
- remove parallel build setup
* Sat Apr 14 2007 <scott at fairfieldcomputers dot com>
- remove all configure options so 64 bit will work
- set prefix to /usr
- move kdepim3-devel to buildrequires
* Fri Mar 30 2007 <scott at fairfieldcomputers dot com>
- add additional 64 bit configure options
* Sun Mar 18 2007 <scott at fairfieldcomputers dot com>
- add suse platform detection
- change make install-strip target to make install
* Sun Feb 25 2007 <scott at fairfieldcomputers dot com>
- add kdepim-devel build requirement
* Sun Dec 17 2006 <scott at fairfieldcomputers dot com>
- add 64 bit support
* Tue Jan 24 2006 <scott at fairfieldcomputers dot com>
- patch showrecordelem.cpp for SuSE 10.0 build
- define SuSE prefix to /opt/kde3
* Sat Sep 13 2003 <scott at fairfieldcomputers dot com>
- initial spec file modified from original by ian geiser <geiseri at msoe dot edu>
- for RedHat