%global debug_package %{nil}

Name:           nam
Version:        1.15
Release:        4%{?dist}
Summary:        Nam is a Tcl/TK based animation tool for viewing network simulation traces and real world packet traces

License:        GPLv3+
URL:            https://sourceforge.net/projects/nsnam/
Source0:        https://sourceforge.net/projects/nsnam/files/nam-1/%{version}/%{name}-src-%{version}.tar.gz
Patch0:		https://gitlab.com/ThanosApostolou/fedora-specs/raw/master/SOURCES/nam-1.15-gcc61.patch
Patch1:		https://gitlab.com/ThanosApostolou/fedora-specs/raw/master/SOURCES/nam-1.15-tcl86.patch

Requires:	libX11
Requires:	libXt
Requires:	libXmu
Requires:	tcl
Requires:	tk
Requires:	otcl
Requires:	tclcl
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	libX11-devel
BuildRequires:	libXmu-devel
BuildRequires:	libXt-devel
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	otcl
BuildRequires:	tclcl

%description 
Nam is a Tcl/TK based animation tool for viewing network simulation traces and real world packet traces. It supports topology layout, packet level animation, and various data inspection tools. Nam began at LBL. It has evolved substantially over the past few years. The nam development effort was an ongoing collaboration with the VINT project. Currently, it is being developed as an open source project hosted at Sourceforge. 

%prep
%setup
%patch0 -p1
%patch1 -p1

%build
./configure --prefix=/usr
make -j1

%install
install -Dm755 nam %{buildroot}/%{_bindir}/nam

%files
%{_bindir}/nam

%changelog
* Sat Jun 03 2017 - 1.15-3
- Rebuild

* Fri May 05 2017 - 1.15-2
- Initial version of the package