Peter Nixon
2009-08-11 20:15:12 +00:00
committed by Git OBS Bridge
parent e74cec664e
commit d3928b8379

View File

@@ -14,11 +14,11 @@ BuildRoot: %{_tmppath}/%{name}-root
Requires: mysql-shared postgresql-libs sqlite Requires: mysql-shared postgresql-libs sqlite
BuildRequires: mysql-devel postgresql-devel BuildRequires: mysql-devel postgresql-devel
%if %{?suse_version:1}0 %if %{?suse_version:1}0
%if %suse_version > 920 %if %suse_version > 1030
BuildRequires: sqlite-devel BuildRequires: sqlite-devel
%endif %endif
%if %suse_version > 1020 %if %suse_version > 1030
BuildRequires: libpcap-devel BuildRequires: libpcap-devel >= 0.6.0
%endif %endif
%else %else
BuildRequires: sqlite-devel BuildRequires: sqlite-devel
@@ -27,11 +27,11 @@ BuildRequires: sqlite-devel
BuildRequires: kernel BuildRequires: kernel
%endif %endif
%if %{?mandriva_version:1}0 %if %{?mandriva_version:1}0
Requires: libpcap0 Requires: libpcap0 >= 0.6.0
BuildRequires: libpcap0-devel BuildRequires: libpcap0-devel >= 0.6.0
%else %else
Requires: libpcap Requires: libpcap >= 0.6.0
BuildRequires: libpcap BuildRequires: libpcap >= 0.6.0
%endif %endif
%description %description
@@ -43,8 +43,9 @@ pmacct is a small set of passive network monitoring tools to measure, account, c
#%patch #%patch
%build %build
export CFLAGS="%{optflags}" export CFLAGS="$RPM_OPT_FLAGS"
export AM_CFLAGS="%{optflags}" #export CFLAGS="%{optflags}"
#export AM_CFLAGS="%{optflags}"
PMACCT_BASE_CONFIG=" PMACCT_BASE_CONFIG="
--prefix=%{_prefix} --prefix=%{_prefix}
--bindir=%{_bindir} --bindir=%{_bindir}
@@ -90,14 +91,16 @@ touch %{buildroot}/%{_sysconfdir}/pmacct/sfacctd.conf
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE docs examples sql #%dir %{_docdir}/pmacct
%defattr(-, root, root, 0755) %doc %attr(644,root,root) docs examples sql
%{_bindir}/* %doc %attr(644,root,root) AUTHORS ChangeLog CONFIG-KEYS COPYING EXAMPLES FAQS INSTALL KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
%{_sbindir}/* %attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%{_sysconfdir}/init.d/* %{_sysconfdir}/init.d/*
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/nfacctd.conf %dir /etc/pmacct
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/pmacctd.conf %attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/nfacctd.conf
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/pmacct/sfacctd.conf %attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/pmacctd.conf
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/sfacctd.conf
%changelog %changelog
* Mon Jul 21 2008 Peter Nixon 0.11.5 * Mon Jul 21 2008 Peter Nixon 0.11.5