[spacewalk-pylint] Rebase to spacewalk-pylint-0.12-1.fc20 in rawhide.

Miroslav Suchý msuchy at fedoraproject.org
Tue Mar 4 13:03:10 UTC 2014


commit cb2296a62de3a577c7d45dbf350870e1c99027c1
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Tue Mar 4 14:03:36 2014 +0100

    Rebase to spacewalk-pylint-0.12-1.fc20 in rawhide.

 .gitignore            |    1 +
 sources               |    2 +-
 spacewalk-pylint.spec |   19 ++++++++++++++-----
 3 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1895ada..09a2ad4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /spacewalk-pylint-0.5.tar.gz
 /spacewalk-pylint-0.8.tar.gz
 /spacewalk-pylint-0.11.tar.gz
+/spacewalk-pylint-0.12.tar.gz
diff --git a/sources b/sources
index 10f34dd..d279dce 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-130e3cc478c76121d56e9a98bb22c371  spacewalk-pylint-0.11.tar.gz
+47d350d73fb2dc5143d8d34add2e72fb  spacewalk-pylint-0.12.tar.gz
diff --git a/spacewalk-pylint.spec b/spacewalk-pylint.spec
index 99a4937..08ca96d 100644
--- a/spacewalk-pylint.spec
+++ b/spacewalk-pylint.spec
@@ -1,6 +1,6 @@
 Name:		spacewalk-pylint
-Version:	0.11
-Release:	2%{?dist}
+Version:	0.12
+Release:	1%{?dist}
 Summary:	Pylint configuration for spacewalk python packages
 
 Group:		Development/Debuggers
@@ -10,7 +10,11 @@ Source0:	https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:	noarch
 
-Requires:	pylint
+%if 0%{?fedora} >= 19
+Requires:	pylint > 1.0
+%else
+Requires:	pylint < 1.0
+%endif
 BuildRequires:	asciidoc
 BuildRequires:	libxslt
 %if 0%{?rhel} && 0%{?rhel} < 6
@@ -34,6 +38,11 @@ install -d -m 755 %{buildroot}/%{_bindir}
 install -p -m 755 spacewalk-pylint %{buildroot}/%{_bindir}/
 install -d -m 755 %{buildroot}/%{_sysconfdir}
 install -p -m 644 spacewalk-pylint.rc %{buildroot}/%{_sysconfdir}/
+%if 0%{?fedora} < 19
+# old pylint don't understand new checks
+sed -i '/disable=/ s/\(,C1001\|,W0121\)//g;' \
+        %{buildroot}%{_sysconfdir}/spacewalk-pylint.rc
+%endif
 mkdir -p %{buildroot}/%{_mandir}/man8
 install -m 644 spacewalk-pylint.8 %{buildroot}/%{_mandir}/man8
 
@@ -49,8 +58,8 @@ rm -rf %{buildroot}
 %doc LICENSE
 
 %changelog
-* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.11-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+* Mon Sep 30 2013 Michael Mraka <michael.mraka at redhat.com> 0.12-1
+- ignore old-style-* pylint warnings for pylint-1.0
 
 * Mon Jan 28 2013 Michael Mraka <michael.mraka at redhat.com> 0.11-1
 - Revert "ignore Container implementation related warnings"


More information about the scm-commits mailing list