1 %include /usr/lib/rpm/macros.perl
2 Summary: An Email-to-SMS formatter
3 Summary(pl): Formatowanie wiadomo¶ci Poczta->SMS
8 Group: Applications/Mail
9 Source0: http://adamspiers.org/computing/%{name}/email2sms.tar.gz
10 URL: http://adamspiers.org/computing/email2sms/
12 BuildRequires: perl-Lingua-EN-Squeeze
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 email2sms is a filter written in Perl which converts an e-mail into a
18 form suitable for sending as an SMS message. Its main advantage over
19 the alternatives is that it uses the CPAN module Lingua::EN::Squeeze
20 to compress the text down to as little as 40% of its original size, so
21 you can get much more of your e-mail into the 160 character limit
22 imposed by SMS. It is fully MIME compatible, and has many configurable
23 options, including removal of quoted text. Ideal for use with
24 procmail. A Perl script for sending the output to a typical e-mail to
25 SMS web gateway is included.
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_bindir}
33 install email2sms $RPM_BUILD_ROOT%{_bindir}
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
40 %doc AUTHORS ChangeLog *.html sample*
41 %attr(755,root,root) %{_bindir}/*