[getmail/epel7] spec file clean ups

Markus Mayer lotharlutz at fedoraproject.org
Sat Mar 15 20:35:20 UTC 2014


commit 6442603e2fb680f09a00d0da3b5ecea71aa74868
Author: Markus Mayer <lotharlutz at gmx.de>
Date:   Sat Mar 15 21:34:25 2014 +0100

    spec file clean ups

 getmail.spec |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/getmail.spec b/getmail.spec
index 923f7e8..4b1166a 100644
--- a/getmail.spec
+++ b/getmail.spec
@@ -1,13 +1,12 @@
 Summary: POP3, IMAP4 and SDPS mail retriever with Maildir delivery
 Name: getmail
 Version: 4.43.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2
 Group: Applications/Internet
 URL: http://pyropus.ca/software/getmail/
 
 Source0: http://pyropus.ca/software/getmail/old-versions/getmail-%{version}.tar.gz
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 BuildRequires: python2-devel
 
@@ -24,19 +23,15 @@ Getmail is written entirely in python.
 %build
 
 %install
-rm -rf %{buildroot}
 python setup.py install --root="%{buildroot}"
 rm docs/*.1
-%if 0%{?fedora} >= 20
-mv %{buildroot}/%{_docdir}/%{name}-%{version} %{buildroot}/%{_pkgdocdir}
-%endif
-
-%clean
-rm -rf %{buildroot}
+rm -rf %{buildroot}/%{_docdir}/%{name}-%{version}
 
 %files
-%defattr(-, root, root, 0755)
-%doc docs/*
+%doc docs/BUGS docs/CHANGELOG docs/COPYING docs/THANKS docs/TODO
+%doc docs/configuration.html docs/documentation.html
+%doc docs/faq.html docs/getmaildocs.css
+%doc docs/getmailrc-examples docs/troubleshooting.html
 %{_mandir}/man1/getmail.1*
 %{_mandir}/man1/getmail_fetch.1*
 %{_mandir}/man1/getmail_maildir.1*
@@ -49,6 +44,9 @@ rm -rf %{buildroot}
 %{python_sitelib}/getmailcore/
 
 %changelog
+* Sat Mar 15 2014 Markus Mayer <lotharlutz at gmx.de> - 4.43.0-2
+- spec file cleanups
+
 * Sat Sep 07 2013 Markus Mayer <lotharlutz at gmx.de> - 4.43.0-1
 - Upstream 4.43.0 release.
 


More information about the scm-commits mailing list