kshowmail
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kshowmail.spec 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # define for SuSE
  2. %if %{_vendor} == redhat
  3. %define suse_version 0
  4. %endif
  5. %if %{_vendor} == Mandriva
  6. %define suse_version 0
  7. %endif
  8. %define su10 0
  9. %if %{suse_version} == 1000 || %{suse_version} == 1010 || %{suse_version} == 1020 || %{suse_version} == 1030
  10. %define su10 1
  11. %endif
  12. %define su11 0
  13. %if %{suse_version} == 1100
  14. %define su11 1
  15. %endif
  16. %define su9 0
  17. %if %{suse_version} == 900 || %{suse_version} == 910 || %{suse_version} == 920 || %{suse_version} == 930
  18. %define su9 1
  19. %endif
  20. %define _prefix /usr
  21. %define configure_opts %nil
  22. Summary: POP mail checker for KDE
  23. Name: kshowmail
  24. Version: 3.3.1
  25. Release: 1
  26. License: GPL
  27. Vendor: Eggert Ehmke <eggert.ehmke@berlin.de>
  28. Url: http://www.sourceforge.net/projects/kshowmail
  29. Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
  30. Group: Mail
  31. Source: http://prdownloads.sourceforge.net/kshowmail/%{name}-%{version}.tar.gz
  32. #Patch: %{name}-%{version}-patch
  33. BuildRoot: /var/tmp/kshowmail-root
  34. %if %{su10} || %{su11}
  35. Requires: qt3 >= 3.3, tdelibs3 >= 3.4
  36. BuildRequires: qt3-devel >= 3.3, tdelibs3-devel >= 3.4, tdepim3-devel
  37. %else
  38. Requires: qt >= 3.2, tdelibs >= 3.1
  39. BuildRequires: qt-devel >= 3.2, tdelibs-devel >= 3.1, tdepim3-devel
  40. %endif
  41. %description
  42. kShowmail is a KDE tool for watching for email on POP3 servers.
  43. Headers and complete email messages can be displayed, and email can
  44. be deleted without downloading. The information can be refreshed via timers,
  45. and a sound can be played when new email arrives. External programs like
  46. fetchmail/sendmail can be called via configurable menu entries or if new mail
  47. arrives. Spam complaints can also be sent via configurable menus.
  48. # SuSE turns off stripping of binaries by default. In order to get
  49. # stripped packages we must generate debug package. RedHat and Mandriva
  50. # turn debug packages on by default but strip binaries regardless.
  51. %if %{su9} || %{su10}
  52. %debug_package
  53. %endif
  54. %prep
  55. %setup
  56. #%patch -p1
  57. ./configure %{configure_opts}
  58. %build
  59. make
  60. %install
  61. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
  62. make install DESTDIR=$RPM_BUILD_ROOT
  63. cd $RPM_BUILD_ROOT
  64. find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.kshowmail
  65. find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kshowmail
  66. find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.kshowmail
  67. %clean
  68. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
  69. rm -rf $RPM_BUILD_DIR/kshowmail-%{version}
  70. rm -rf ../file.list.kshowmail
  71. %files -f ../file.list.kshowmail
  72. %doc AUTHORS ChangeLog COPYING README ReleaseNotes
  73. %changelog
  74. * Sun Apr 20 2008 D. Scott Barninger <barninger at fairfieldcomputers.com>
  75. - 3.3.0 release, fix if tag for debug package
  76. * Sun Feb 03 2008 D. Scott Barninger <barninger at fairfieldcomputers.com>
  77. - add debug package to strip suse
  78. * Sat Oct 27 2007 <scott at fairfieldcomputers dot com>
  79. - add SuSE 10.3
  80. * Fri Jul 06 2007 <scott at fairfieldcomputers dot com>
  81. - added docs files
  82. * Sat Apr 21 2007 <scott at fairfieldcomputers dot com>
  83. - remove parallel build setup
  84. * Sat Apr 14 2007 <scott at fairfieldcomputers dot com>
  85. - remove all configure options so 64 bit will work
  86. - set prefix to /usr
  87. - move tdepim3-devel to buildrequires
  88. * Fri Mar 30 2007 <scott at fairfieldcomputers dot com>
  89. - add additional 64 bit configure options
  90. * Sun Mar 18 2007 <scott at fairfieldcomputers dot com>
  91. - add suse platform detection
  92. - change make install-strip target to make install
  93. * Sun Feb 25 2007 <scott at fairfieldcomputers dot com>
  94. - add tdepim-devel build requirement
  95. * Sun Dec 17 2006 <scott at fairfieldcomputers dot com>
  96. - add 64 bit support
  97. * Tue Jan 24 2006 <scott at fairfieldcomputers dot com>
  98. - patch showrecordelem.cpp for SuSE 10.0 build
  99. - define SuSE prefix to /opt/kde3
  100. * Sat Sep 13 2003 <scott at fairfieldcomputers dot com>
  101. - initial spec file modified from original by ian geiser <geiseri at msoe dot edu>
  102. - for RedHat