Commit aa2708f0 authored by Michal Privoznik's avatar Michal Privoznik

spec: Modernize the spec file

There are two macros ("BuildRoot" and "defattr") that were
required in RHEL-5 world. Things are different now and we do not
need to specify those anymore.
Signed-off-by: 's avatarMichal Privoznik <mprivozn@redhat.com>
parent 7e6e3620
......@@ -7,7 +7,6 @@ Group: Development/Libraries
License: GPLv2+
URL: http://libvirt.org
Source0: http://www.libvirt.org/sources/snmp/libvirt-snmp-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: net-snmp-perl
BuildRequires: net-snmp
......@@ -23,18 +22,14 @@ Provides a way to control libvirt through SNMP protocol.
%prep
%autosetup -S git_am
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/libvirtMib_subagent
%{_datadir}/snmp/mibs/LIBVIRT-MIB.txt
%doc README NEWS ChangeLog AUTHORS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment