]> git.pld-linux.org Git - packages/dynagen.git/blob - dynagen.spec
- initial, not tested
[packages/dynagen.git] / dynagen.spec
1 Summary:        Cisco router emulator controller
2 Summary(pl.UTF-8):      Kontroler emulatora routera Cisco
3 Name:           dynagen
4 Version:        0.10.1
5 Release:        0.1
6 License:        GPL v2
7 Group:          Networking/Utilities
8 Source0:        http://dl.sourceforge.net/%name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  4ca26e4b4b8bee61a77f92eace8404d0
10 Patch0:         %{name}-debian.patch
11 URL:            http://dynagen.org/
12 BuildRequires:  python-modules
13 BuildRequires:  sed >= 4.0
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Cisco 7200 Router Emulator Command Line Interface
19 Dynagen is a text-based front end for Dynamips, that uses the
20 Hypervisor mode for communication with Dynamips. Dynagen simplifies
21 building and working with virtual networks:
22   * Uses a simple, easy to understand configuration file for specifying
23     virtual router hardware configurations
24   * Simple syntax for interconnecting routers, bridges, frame-relay and
25     ATM switches. No need to deal with NetIOs
26   * Can work in a client / server mode, with Dynagen running on your
27     workstation communicating to Dynamips running on a back-end server.
28     Dynagen can also control multiple Dynamips servers simultaneously for
29     distributing large virtual networks across several machines.
30   * Provides a management CLI for listing devices, starting, stopping,
31     reloading, suspending, and resuming virtual routers.
32
33 #%description -l pl.UTF-8
34
35 %prep
36 %setup -q
37 %patch0 -p1
38 %{__sed} -i \
39         '1s|#!@PYTHON@|#!%{__python}|;
40          s|\(version = "\)@VERSION@",|\1%{version}",|;' \
41         $RPM_BUILD_DIR/%{name}-%{version}/setup.py
42
43 %build
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__python} setup.py install --root $RPM_BUILD_ROOT
48 %{py_ocomp} $RPM_BUILD_ROOT%{py_sitescriptdir}
49 %{py_postclean}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README* COPYING docs sample_labs
57 %dir %{_sysconfdir}
58 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
59 %attr(755,root,root) %{_bindir}/*
60 %{py_sitescriptdir}/*.py[co]
61 %{_mandir}/man1/*.1*
This page took 0.065852 seconds and 3 git commands to generate.