File fprobe.spec of Package fprobe

#
# spec file for package fprobe
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugzilla.opensuse.org/
#
#-------------------------------------------------------------------------------
#| Package info |
#----------------
Name:			fprobe
License:		GPL-2.0
Group:			Productivity/Networking/Diagnostic
Version:		1.1
Release:		0
Summary:		NetFlow probe
URL:			http://fprobe.sourceforge.net/
Source0:		%{name}-%{version}.tar.bz2
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	libpcap-devel

%description
libpcap-based tool, that collects network traffic data and emits it as
NetFlow-flows towards the specified collector.

Authors:
--------
    Slava Astashonok <sla@0n.ru>
#-------------------------------------------------------------------------------
#| Prepare |
#-----------
%prep
%setup -n %{name}-%{version}

#-------------------------------------------------------------------------------
#| Build |
#---------
%build
%configure 
%__make %{?_smp_mflags}  
#-------------------------------------------------------------------------------  
  
#-------------------------------------------------------------------------------
#| Install |
#-----------
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%__make \
	DESTDIR=%{buildroot} \
	install
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#| Cleanup |
#-----------
%clean
[ "%{buildroot}" != "/" ] && [ -d %{buildroot} ] && %__rm -rf %{buildroot}
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#| Files |
#---------
%files 
%defattr(-, root, root)
%if ( 0%{?sle_version} > 120200 && !0%{?is_opensuse} ) || ( 0%{?sle_version} > 120200 && 0%{?is_opensuse} ) || 0%{?suse_version} > 1500 || 0%{?rhel_version} > 600 || 0%{?centos_version} > 600 || 0%{?scientificlinux_version} > 600 || 0%{?fedora_version} > 18 || 0%{?mageia} > 4
%doc AUTHORS ChangeLog NEWS README TODO
%license COPYING
%else
%doc AUTHORS ChangeLog NEWS README COPYING TODO
%endif
%{_sbindir}/*
%{_mandir}/man?/*
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#| ChangeLog |
#-------------
%changelog
* Thu Dec 20 2018 - mikhail.kasimov@gmail.com
- updated spec-file, extended support for RPM-distros
* Wed Oct 10 2007 - ornulf.nielsen@vitusapotek.no
- initial version (1.1-1)
#-------------------------------------------------------------------------------
openSUSE Build Service is sponsored by