]> git.pld-linux.org Git - packages/msmtp.git/blobdiff - msmtp.spec
- fixed home_etc patch by Jan Kanty Palus <atler@o2.pl>
[packages/msmtp.git] / msmtp.spec
index cf8862853d7d49bd9030824324b701a49ec58ada..c80f2a38d82adf3a0fcdb4746da335db941f204a 100644 (file)
@@ -1,14 +1,17 @@
 Summary:       SMTP "plugin" for MUAs
 Summary(pl):   "Wtyczka" SMTP dla klientów pocztowych (MUA)
 Name:          msmtp
-Version:       0.6.1
-Release:       1
+Version:       1.3.1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 9cbe03c8f63d793fae9c3d79a20a4a25
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Source0-md5: 267ac3d8198afc70a80db5feafcd0c96
+Patch0:                %{name}-home_etc.patch
 URL:           http://msmtp.sourceforge.net/
-BuildRequires: openssl-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: openssl-devel >= 0.9.7d
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,24 +49,33 @@ konfiguracyjnym).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__make} \
-        CC="%{__cc}" \
-        CFLAGS="%{rpmcflags}"
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+# could use gnutls instead (but is not ready for current libgcrypt)
+# disable gsasl for now (see README.gsasl)
+%configure \
+       --with-ssl=openssl \
+       --disable-gsasl
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
-install msmtp $RPM_BUILD_ROOT%{_bindir}/msmtp
-install msmtp.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} \
+       install\
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README THANKS
+%doc AUTHORS ChangeLog README THANKS doc/msmtprc.example
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/msmtp*
This page took 0.083942 seconds and 4 git commands to generate.