Browse Source

Make spec compatible with CentOS 7

CentOS 7 comes with Python 2.7 by default, which has argparse in standard
library, thus requiring this package is not needed.
Also, CentOS 7 abandoned vconfig in favor of ip.

Blueprint: master-on-centos7

Compatible with CentOS6 master node

Co-Authored-By: Dmitry Teselkin <dteselkin@mirantis.com>

Change-Id: I794518e90a412110222f7ed0c53a9c014060e636
tags/8.0
Dmitry Teselkin 3 years ago
parent
commit
0b1b94a968
1 changed files with 8 additions and 3 deletions
  1. 8
    3
      specs/network-checker.spec

+ 8
- 3
specs/network-checker.spec View File

@@ -2,7 +2,7 @@
2 2
 %{!?version: %define version 8.0.0}
3 3
 
4 4
 Name: %{name}
5
-Summary:   Network checking package for CentOS6.x
5
+Summary:   Network checking package for CentOS
6 6
 Version:   %{version}
7 7
 Release:   1%{?dist}~mos8.0.0
8 8
 Source0: %{name}-%{version}.tar.gz
@@ -10,9 +10,11 @@ License:   GPLv2
10 10
 Obsoletes: nailgun-net-check
11 11
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
12 12
 URL:       http://github.com/Mirantis
13
-Requires:  vconfig
14 13
 Requires:  scapy
15
-Requires:  python-argparse
14
+%if 0%{?rhel} == 6
15
+Requires: python-argparse
16
+Requires: vconfig
17
+%endif
16 18
 Requires:  python-pypcap
17 19
 Requires:  python-cliff-tablib
18 20
 Requires:  python-stevedore
@@ -45,5 +47,8 @@ rm -rf $RPM_BUILD_ROOT
45 47
 %defattr(-,root,root)
46 48
 
47 49
 %changelog
50
+* Thu Nov 19 2015 Aleksandr Mogylchenko <amogylchenko@mirantis.com> 8.0.1-1
51
+- make spec compatible with CentOS 7
52
+
48 53
 * Wed Oct 28 2015 Vladimir Kozhukalov <vkozhukalov@mirantis.com> 8.0.0-1
49 54
 - The RPM spec was extracted from fuel-web/specs/fuel-nailgun.spec

Loading…
Cancel
Save