File pemu.spec of Package pemu

#
# spec file for package pemu
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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://bugs.opensuse.org/
#

# The 32bit package (pemu-32bit) can be obtained using the following command:
#  osc build --baselibs --disable-debuginfo openSUSE_Tumbleweed i586

Name:           pemu
Version:        0.0.0_2008_03_03
Release:        0
Summary:        Cisco PIX emulator
License:        BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
Group:          Productivity/Networking/Other
URL:            https://sourceforge.net/projects/gns-3/files/Pemu/
Source:         https://sourceforge.net/projects/gns-3/files/Pemu/2008-03-03/pemu_2008-03-03_src.tar.bz2
Patch0:         0001-Fix-build-with-glibc-2.26.patch
Patch1:         pemu-fix-makefile.patch
# needs gcc 3.x
BuildRequires:  gcc33
BuildRequires:  libpcap-devel
BuildRequires:  zlib-devel
ExclusiveArch:  %{ix86}

%description
Pemu emulates the hardware of Cisco PIX firewalls.

Note: You need original Cisco PIX images to sucessfully
      emulate Cisco PIX devices.

%prep
%setup -q -n pemu_2008-03-03_src
%patch0 -p1
%patch1 -p1

%build
%make_build

%install
install -D -m0755 pemu %{buildroot}%{_bindir}/pemu

%files
%doc Changes README
%doc pemu.ini
%{_bindir}/pemu

%changelog
openSUSE Build Service is sponsored by