File ntopng.spec of Package ntopng

Summary:    Web-based network traffic monitoring
Name:       ntopng
Version:    3.0.170602
Release:    0
License:    GPL-3.0+
Group:      Networking/Utilities
URL:        http://www.ntop.org/
Source:     ntopng-%{version}.tar.bz2
Source1:    ntopng.conf
#Requires:   pfring 
Requires:   redis >= 2.4.0
Requires:   GeoIP >= 1.4.8
Requires:   rrdtool >= 1.3.8
Requires:   numactl
Requires:   ntopng-data
Requires:   logrotate
Requires:   zeromq-tools
Requires:   openssl
Buildrequires:  rrdtool-devel
BuildRequires:  libpcap-devel
BuildRequires:  libtool
Buildrequires:  libcurl-devel
BuildRequires:  libmysqld-devel
BuildRequires:  sqlite3-devel
BuildRequires:  pkg-config
#Buildrequires:  llvm-clang
Buildrequires:  libGeoIP-devel
Buildrequires:  openldap2-devel
Buildrequires:  libfreetype6
Buildrequires:  git
#Buildrequires:  libnetfilter_queue-devel
Buildrequires:  libxml2-devel, gcc-c++, libndpi1-devel  
# Disable shared libs dependency check (needed by FPGA libs)
#AutoReqProv: no

%description
Web-based network traffic monitoring. New version.

%prep
%setup -q

%build
./autogen.sh
%configure 

make %{?_smp_mflags}

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_sysconfdir}/redis
mkdir -p %{buildroot}%{_mandir}/man8/
mv %{buildroot}/usr/man/man8/* %{buildroot}%{_mandir}/man8/
rm -rf %{buildroot}/usr/man/man8/
cp -vf %{SOURCE1} %{buildroot}%{_sysconfdir}/redis/

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING LICENSE README.md CHANGELOG.md doc/
%doc %{_mandir}/man8/%{name}.*
%attr(0755, root, root) %{_bindir}/%{name}
%attr(0755,root,root) %{_sysconfdir}/redis/
%config(noreplace) %{_sysconfdir}/redis/%{name}.conf
%{_prefix}/share/%{name}


%changelog
openSUSE Build Service is sponsored by