Package vpcs: Specfile

Name: vpcs
Version: 0.8
Release: alt1.20160225

Summary: Virtual PC Simulator
License: BSD
Group: Networking/Other
Url: https://github.com/GNS3/vpcs

Packager: Anton Midyukov <antohami@altlinux.org>

Source: %name-%version.tar
Patch0: %name-0.8-no-static.patch

BuildRequires: gcc

%description
The VPCS can simulate up to 9 PCs. You can ping/traceroute them, or ping/traceroute
the other hosts/routers from the virtual PCs when you study the Cisco routers in
the Dynamips. VPCS is not the traditional PC, it is just a program running on the
Linux or Windows, and only few network commands can be used in it. But VPCS can
give you a big hand when you study the Cisco devices in the Dynamips. VPCS can
replace the routers or VMware boxes which are used as PCs in the Dynamips network.

Try VPCS, it can save your CPU/Memory. It is very small.

Now, VPCS can be run in udp or ether mode. In the udp mode, VPCS sends or receives
the packets via udp. In the ether mode, via /dev/tap, not support on the Windows. 

%prep
%setup
%patch0 -p1

%build
pushd src
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make -f Makefile.linux CPUTYPE=%_target_cpu
popd

mkdir -p %buildroot/%_bindir
mkdir -p %buildroot/%_mandir/man1
install -m0755 src/vpcs %buildroot/%_bindir/%name
xz man/vpcs.1
cp man/vpcs.1.xz %buildroot/%_mandir/man1/

%files
%doc readme.txt COPYING
%_bindir/%name
%_mandir/man1/*

%changelog
* Mon Aug 08 2016 Anton Midyukov <antohami@altlinux.org> 0.8-alt1.20160225
- Initial build for ALT Linux Sisyphus.