blob: b5f6c9b3ad1351b4dd3b8487b96199844883a4bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
Name: vpcs
Version: 0.8.3
Release: 1%{?dist}
Summary: Virtual PC Simulator
License: BSD
URL: https://github.com/GNS3/vpcs
Source0: http://downloads.sourceforge.net/project/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires: make
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 VPCS
%prep
%autosetup -p1
%build
sed -e 's/^CFLAGS=.*$/CFLAGS:=$(CFLAGS) -D$(OSTYPE) -D$(CPUTYPE) $(OPT) $(HVOPT) -Wall -I. -DTAP/' \
-e 's/^LDFLAGS=.*$/LDFLAGS:=$(LDFLAGS) -lpthread -lutil/' \
-i src/Makefile.linux
mv src/Makefile.linux src/Makefile
cd src/
%make_build %{?_smp_mflags} CFLAGS="%{optflags} -DHV -DTAP -DLinux"
%install
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_mandir}/man1/
install -m 755 src/vpcs %{buildroot}/%{_bindir}
install -m 644 man/vpcs.1 %{buildroot}/%{_mandir}/man1/
%files
%license COPYING
%{_bindir}/*
%{_mandir}/man1/*
%doc readme.txt
%changelog
* Thu Dec 01 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 0.8-3
- Fix Source url
* Tue Sep 27 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 0.8.0.20160224svn-2
- Fix version
* Sat Sep 10 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 0.8.0svn126-1
- Update to latest svn rev to fix some bugs
* Sat Sep 10 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 0.8-1
- Initial spec
|