Packaging fixes for RHEL/SLES
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/nfacct?expand=0&rev=8
This commit is contained in:
26
nfacct.spec
26
nfacct.spec
@@ -22,41 +22,37 @@ Release: 0
|
||||
Summary: Netfilter Extended Accounting utility
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Networking/Security
|
||||
Url: http://netfilter.org/
|
||||
|
||||
#Git-Web: http://git.netfilter.org/
|
||||
#Git-Clone: git://git.netfilter.org/nfacct
|
||||
Source: %name-%version.tar.bz2
|
||||
Source2: %name-%version.tar.bz2.sig
|
||||
Url: http://netfilter.org/
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake >= 1.6
|
||||
BuildRequires: libtool
|
||||
#git#BuildRequires: autoconf, automake >= 1.6, libtool
|
||||
BuildRequires: pkgconfig >= 0.21
|
||||
BuildRequires: pkgconfig(libmnl) >= 1
|
||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
||||
BuildRequires: pkgconfig(libmnl) >= 1.0.0
|
||||
BuildRequires: pkgconfig(libnetfilter_acct) >= 1.0.0
|
||||
%else
|
||||
BuildRequires: libmnl-devel >= 1.0.0
|
||||
BuildRequires: libnetfilter_acct-devel >= 1.0.0
|
||||
%endif
|
||||
|
||||
%description
|
||||
This utility allows you to manipulate the extended accounting
|
||||
infrastructure.
|
||||
|
||||
%prep
|
||||
%if 0%{?__xz:1}
|
||||
%setup -q
|
||||
%else
|
||||
tar -xf "%{S:0}" --use=bzip2;
|
||||
%setup -DTq
|
||||
%endif
|
||||
|
||||
%build
|
||||
if [ ! -e configure ]; then
|
||||
autoreconf -fi;
|
||||
fi;
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags};
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
make install DESTDIR="%buildroot";
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user