diff --git a/.gitignore b/.gitignore index d38d74e..c2a396f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ imapfilter-2.0.11.tar.bz2 /imapfilter-2.5.tar.gz -/imapfilter-makefile-fix-v2.5.5.patch -/imapfilter-2.5.5.tar.gz diff --git a/imapfilter.spec b/imapfilter.spec index d4de037..183ad5e 100644 --- a/imapfilter.spec +++ b/imapfilter.spec @@ -1,17 +1,14 @@ Name: imapfilter -Version: 2.5.5 -Release: 1%{?dist} +Version: 2.5 +Release: 3%{?dist} Summary: A flexible client side mail filtering utility for IMAP servers Group: Applications/Internet License: MIT -URL: https://github.com/lefcha/imapfilter/ -# Thanks to githubs new regime, we're not given any extention on the download - but it is a tar.gz file. -# Source URL https://codeload.github.com/lefcha/imapfilter/tar.gz/v%{version} -# Download it and save it as imapfilter-%{version}.tar.gz -# And yeah, rpmlint will complain. -Source0: imapfilter-%{version}.tar.gz -Patch0: http://people.redhat.com/~dsommers/imapfilter/imapfilter-makefile-fix-v2.5.5.patch +URL: http://imapfilter.hellug.gr/ +Source0: https://github.com/downloads/lefcha/imapfilter/imapfilter-%{version}.tar.gz +Patch0: http://people.redhat.com/~dsommers/imapfilter/imapfilter-makefile-fix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel lua-devel pcre-devel @@ -25,8 +22,8 @@ protocol are supported. %prep -%setup -q -n imapfilter-%{version} -%patch0 -p1 +%setup -q +%patch0 %build # imapfilter does not have any autotools based ./configure - just a plain Makefile @@ -38,7 +35,12 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +%clean +rm -rf $RPM_BUILD_ROOT + + %files +%defattr(-,root,root,-) %doc README LICENSE %{_bindir}/imapfilter %{_datadir}/imapfilter/ @@ -47,10 +49,6 @@ make install DESTDIR=$RPM_BUILD_ROOT %changelog -* Tue Jul 2 2013 David Sommerseth - 2.5.5-1 -- Updated to upstream imapfilter-2.5.5 -- Updated download URL and generally cleaned up spec file - * Thu Feb 14 2013 Fedora Release Engineering - 2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index db473bf..b2543c9 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -28769b186e27cbef2f7d85ecce8e3a13 imapfilter-makefile-fix-v2.5.5.patch -719b7f606948699d5f057e3a62e6c666 imapfilter-2.5.5.tar.gz +93821a52b8906e789c63b639cbf86dac imapfilter-2.5.tar.gz