fault/snmp-audittrail/centos/snmp-audittrail.spec
Erich Cordoba ff2800d9fe Standardize makefile in snmp-audittrail.
The target of install_non_bb was changed to install. The variables
were set to default values inside the makefile. All changes were
updated in the specfile as well.

An issue with an empty PATCH variable was fixed and the StarlingX
was updated.

Story: 2004043
Task: 27546

Change-Id: I5f2f8a0d681b106691f2cbf8b0a7a27977452edc
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2018-10-31 08:07:22 -06:00

56 lines
1.4 KiB
RPMSpec

Summary: StarlingX SNMP Audit Trail
Name: snmp-audittrail
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: net-snmp-devel
BuildRequires: fm-common-dev
BuildRequires: uuid-devel
BuildRequires: uuid
BuildRequires: libuuid-devel
Requires: net-snmp
Requires: uuid
%description
StarlingX SNMP Audit Trail provides audit trail support for incoming
SNMP requests.
%package -n snmp-audittrail-devel
Summary: StarlingX SNMP Audit Trail Package - Development files
Group: devel
Requires: snmp-audittrail = %{version}-%{release}
%description -n snmp-audittrail-devel
StarlingX SNMP Audit Trail provides audit trail support for incoming SNMP requests.
This package contains symbolic links, header files, and related items necessary
for software development.
%prep
%setup
%build
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make MAJOR=$MAJOR MINOR=$MINOR PATCH=%{tis_patch_ver} %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make install DESTDIR=$RPM_BUILD_ROOT LIB_DIR=%{_libdir} MAJOR=$MAJOR MINOR=$MINOR PATCH=%{tis_patch_ver}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/*.so.*
%files -n snmp-audittrail-devel
%defattr(-,root,root,-)
%{_libdir}/*.so