Use $_isa for Requires: to conform to packaging guidelines.
This commit is contained in:
parent
00929679f4
commit
7d1a0d54c6
@ -52,8 +52,8 @@ Requires(preun): chkconfig
|
|||||||
Requires(preun): initscripts
|
Requires(preun): initscripts
|
||||||
# for /bin/rm
|
# for /bin/rm
|
||||||
Requires(preun): coreutils
|
Requires(preun): coreutils
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-agent-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-agent-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
# This is actually needed for the %%triggerun script but Requires(triggerun)
|
# This is actually needed for the %%triggerun script but Requires(triggerun)
|
||||||
# is not valid. We can use %%post because this particular %triggerun script
|
# is not valid. We can use %%post because this particular %triggerun script
|
||||||
# should fire just after this package is installed.
|
# should fire just after this package is installed.
|
||||||
@ -61,7 +61,7 @@ Requires(post): systemd-sysv
|
|||||||
|
|
||||||
BuildRequires: openssl-devel, bzip2-devel, elfutils-devel
|
BuildRequires: openssl-devel, bzip2-devel, elfutils-devel
|
||||||
BuildRequires: libselinux-devel, elfutils-libelf-devel, rpm-devel
|
BuildRequires: libselinux-devel, elfutils-libelf-devel, rpm-devel
|
||||||
BuildRequires: perl-devel, perl(ExtUtils::Embed), gawk, procps
|
BuildRequires: perl-devel, perl(ExtUtils::Embed), procps
|
||||||
BuildRequires: python-devel, python-setuptools
|
BuildRequires: python-devel, python-setuptools
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
@ -93,7 +93,7 @@ which contains NET-SNMP utilities.
|
|||||||
%package utils
|
%package utils
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: Network management utilities using SNMP, from the NET-SNMP project
|
Summary: Network management utilities using SNMP, from the NET-SNMP project
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
The net-snmp-utils package contains various utilities for use with the
|
The net-snmp-utils package contains various utilities for use with the
|
||||||
@ -106,8 +106,8 @@ package.
|
|||||||
%package devel
|
%package devel
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: The development environment for the NET-SNMP project
|
Summary: The development environment for the NET-SNMP project
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-agent-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-agent-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: elfutils-devel, rpm-devel, elfutils-libelf-devel, openssl-devel
|
Requires: elfutils-devel, rpm-devel, elfutils-libelf-devel, openssl-devel
|
||||||
%if %{netsnmp_tcp_wrappers}
|
%if %{netsnmp_tcp_wrappers}
|
||||||
Requires: tcp_wrappers-devel
|
Requires: tcp_wrappers-devel
|
||||||
@ -131,8 +131,8 @@ packages installed.
|
|||||||
%package perl
|
%package perl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: The perl NET-SNMP module and the mib2c tool
|
Summary: The perl NET-SNMP module and the mib2c tool
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}, perl
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}, perl
|
||||||
Requires: %{name}-agent-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-agent-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
|
|
||||||
%description perl
|
%description perl
|
||||||
@ -145,7 +145,7 @@ with perl.
|
|||||||
%package gui
|
%package gui
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: An interactive graphical MIB browser for SNMP
|
Summary: An interactive graphical MIB browser for SNMP
|
||||||
Requires: perl-Tk, net-snmp-perl = %{epoch}:%{version}-%{release}
|
Requires: perl-Tk, net-snmp-perl%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
The net-snmp-gui package contains tkmib utility, which is a graphical user
|
The net-snmp-gui package contains tkmib utility, which is a graphical user
|
||||||
@ -168,7 +168,7 @@ Group: Development/Libraries
|
|||||||
Summary: The NET-SNMP runtime agent libraries
|
Summary: The NET-SNMP runtime agent libraries
|
||||||
# the libs link against libperl.so:
|
# the libs link against libperl.so:
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description agent-libs
|
%description agent-libs
|
||||||
The net-snmp-agent-libs package contains the runtime agent libraries for shared
|
The net-snmp-agent-libs package contains the runtime agent libraries for shared
|
||||||
@ -177,7 +177,7 @@ binaries and applications.
|
|||||||
%package python
|
%package python
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: The Python 'netsnmp' module for the Net-SNMP
|
Summary: The Python 'netsnmp' module for the Net-SNMP
|
||||||
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3,
|
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3,
|
||||||
@ -187,7 +187,7 @@ Net-SNMP toolkit library.
|
|||||||
%package sysvinit
|
%package sysvinit
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: Legacy SysV init scripts for Net-SNMP daemons
|
Summary: Legacy SysV init scripts for Net-SNMP daemons
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description sysvinit
|
%description sysvinit
|
||||||
The net-snmp-sysvinit package provides SysV init scripts for Net-SNMP daemons.
|
The net-snmp-sysvinit package provides SysV init scripts for Net-SNMP daemons.
|
||||||
|
Loading…
Reference in New Issue
Block a user