File: gotmail.spec

package info (click to toggle)
gotmail 0.8.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 196 kB
  • ctags: 39
  • sloc: perl: 1,047; makefile: 81; sh: 69
file content (68 lines) | stat: -rw-r--r-- 2,346 bytes parent folder | download
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
%define buildver 0.8.9
%define specrel 1

# CVS versions are pre-releases and must be treated differently than "real"
# releases, because otherwise we end up with a version "xyzCVS", which rpm
# thinks is "newer" than a version "xyz", although in fact it's the other way
# around. The fix for this is to strip off the "CVS" from the version number
# and use it in the "release" field instead.
%define rawversion %(echo "%{buildver}" | %{__sed} -e 's@CVS$@@')
%define cvsrelease %(echo "%{buildver}" | %{__sed} -e 's@^.*CVS$@CVS@')
%define releasever %(if [ "%{cvsrelease}" = "CVS" ]; then echo "0.CVS.%{specrel}"; else echo "%{specrel}"; fi)

Summary:	Fetch mail out of your Hotmail or MSN account
Name:		gotmail
Epoch:		1
Version:	%{rawversion}
Release:	%{releasever}
License:	GPL
Group:		Applications/Internet
URL:		http://sourceforge.net/projects/gotmail/
BuildArch:	noarch
Source:		http://dl.sf.net/gotmail/gotmail-%{buildver}.tar.bz2
Requires:	perl >= 5, curl >= 7.9.8
BuildRoot:	%{_tmppath}/%{name}-%{buildver}-%{release}-root

%description
This is Gotmail, a perl script to fetch mail out of your Hotmail
or MSN account. This is especially useful if you want to move from
Hotmail into one of the other free mail services - one command can
do it all. Gotmail also supports getting any new mail only from your
Hotmail or MSN account - perfect for using a Hotmail account as a
redirect address into another account.

%prep
%setup -q -n gotmail-%{buildver}

%build
%{__make}

%install
[ "%{buildroot}" != "/" -a -n "%{buildroot}" ] && %{__rm} -rf "%{buildroot}"
%{__make} install DESTDIR="%{buildroot}" \
	BINDIR=%{_bindir} \
	MANDIR=%{_mandir} \
	MANCOMPRESS= \
	INSTALL=%{__install}

%clean
[ "%{buildroot}" != "/" -a -n "%{buildroot}" ] && %{__rm} -rf "%{buildroot}"

%files
%defattr(-,root,root,0755)
%doc COPYING ChangeLog README sample.gotmailrc NEWS PRESSRELEASE gotmail4evolution
%{_bindir}/gotmail
%{_mandir}/man1/gotmail.1*

%changelog
* Fri Sep  9 2005 Paul Howarth <paul@city-fan.org> 0.8.7-1
- build from bzipped source
- include PRESSRELEASE

* Thu Aug 11 2005 Paul Howarth <paul@city-fan.org> 0.8.5-1
- add hooks for auto-specfile-editing in "make rpm", including sensible
  handling of CVS versions
- TODO no longer included

* Fri Jun 24 2005 Paul Howarth <paul@city-fan.org> 0.8.4-2
- initial version to bundle with upstream