File callflow.spec of Package callflow
#
# spec file for package callflow
#
# 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.
#
# norootforbuild
Name: callflow
Summary: A call flow sequence diagram generator
Version: 20190807.01
Release: 1
License: GPL-2.0
Group: Productivity/Networking/Diagnostic
Source0: %name-%version.tar.bz2
Patch1: rpmlint-correction-broadworks.diff
Url: http://callflow.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: awk
Requires: inkscape
Requires: wireshark
%description
Callflow is an application that generates a callflow sequence diagram
from a capture file that can be read by wiireshark or similar programs.
Callflow has been primarily tested with SIP call flows, but should
work for other network traffic as well.
%prep
%setup -q
%patch1 -p1
%build
%__sed -i 's,\(SETUPDIR=\)"/usr/local/callflow",\1"%_datadir/%name",' conf/callflow.conf
%install
%__install -d -m 755 %buildroot%_bindir
%__install -m 755 callflow %buildroot%_bindir
%__install -d -m 755 %buildroot%_datadir/%name/scripts
%__install -m 755 scripts/*.sh %buildroot%_datadir/%name/scripts
%__install -m 644 scripts/*.awk %buildroot%_datadir/%name/scripts
%__install -d -m 755 %buildroot%_datadir/%name/js
%__install -m 755 js/*js %buildroot%_datadir/%name/js
%__install -d -m 755 %buildroot%_datadir/%name/css
%__install -m 644 css/callflow.css %buildroot%_datadir/%name/css
%__install -d -m 755 %buildroot%_datadir/%name/images
%__install -m 644 images/*.png %buildroot%_datadir/%name/images
%__install -m 644 images/index.tpl %buildroot%_datadir/%name/images
%__install -d -m 755 %buildroot%_mandir/man1
%__install -m 644 man/callflow.1 %buildroot%_mandir/man1/callflow.1
%__mkdir -p %buildroot%_sysconfdir/%name
%__install conf/callflow.conf %buildroot%_sysconfdir/%name/callflow.conf
%clean
rm -rf %buildroot
%files
%defattr(644,root,root,755)
%doc LICENSE README AUTHORS
%attr(755,root,root) %_bindir/callflow
%_mandir/man1/callflow.1.gz
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/%name.conf
%dir %_datadir/%name
%dir %_datadir/%name/scripts
%_datadir/%name/scripts/*awk
%attr(755,root,root) %_datadir/%name/scripts/*sh
%dir %_datadir/%name/js
%_datadir/%name/js/*js
%dir %_datadir/%name/css
%_datadir/%name/css/callflow.css
%dir %_datadir/%name/images
%_datadir/%name/images/*.png
%_datadir/%name/images/index.tpl
%changelog