diff --git a/pmacct.spec b/pmacct.spec index 64ea4bf..f53d11b 100644 --- a/pmacct.spec +++ b/pmacct.spec @@ -12,27 +12,10 @@ Source3: sfacctd.init URL: http://www.pmacct.net/ BuildRoot: %{_tmppath}/%{name}-root Requires: mysql-shared postgresql-libs sqlite + BuildRequires: mysql-devel postgresql-devel -%if %{?suse_version:1}0 -%if %suse_version > 1030 -BuildRequires: sqlite-devel -%endif -%if %suse_version > 1030 +BuildRequires: sqlite-devel >= 3.0.0 BuildRequires: libpcap-devel >= 0.6.0 -%endif -%else -BuildRequires: sqlite-devel -%endif -%if %{?fedora_version:1}0 -BuildRequires: kernel -%endif -%if %{?mandriva_version:1}0 -Requires: libpcap0 >= 0.6.0 -BuildRequires: libpcap0-devel >= 0.6.0 -%else -Requires: libpcap >= 0.6.0 -BuildRequires: libpcap >= 0.6.0 -%endif %description pmacct is a small set of passive network monitoring tools to measure, account, classify and aggregate IPv4 and IPv6 traffic; a pluggable and flexible architecture allows to store the collected traffic data into memory tables or SQL (MySQL, SQLite, PostgreSQL) databases. pmacct supports fully customizable historical data breakdown, flow sampling, filtering and tagging, recovery actions, and triggers. Libpcap, sFlow v2/v4/v5 and NetFlow v1/v5/v7/v8/v9 are supported, both unicast and multicast. Also, a client program makes it easy to export data to tools like RRDtool, GNUPlot, Net-SNMP, MRTG, and Cacti.