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