]>
Commit | Line | Data |
---|---|---|
1a560949 | 1 | |
2 | %include /usr/lib/rpm/macros.perl | |
3 | ||
4 | Summary: Fetchconfig device configuration retrieval software | |
4e276930 | 5 | Summary(pl.UTF-8): fetchconfig - program do odczytu konfiguracji urządzeń |
1a560949 | 6 | Name: fetchconfig |
7 | Version: 0.5 | |
8 | Release: 0.1 | |
9 | License: GPL v2 | |
10 | Group: Applications/System | |
11 | Source0: http://download.savannah.gnu.org/releases/fetchconfig/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 6e22d95efafc6a74bc728539f8d8ca89 | |
13 | URL: http://www.nongnu.org/fetchconfig/ | |
14 | Requires: perl-base | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | fetchconfig is a Perl script for retrieving the configuration of | |
20 | multiple devices. It has been tested under Linux and Windows, and | |
21 | currently supports a variety of devices. | |
22 | ||
23 | With some simple Perl programming, it is easily adaptable to any | |
24 | network devices which provides functionality similar to Cisco's "show | |
25 | running-config" command. | |
26 | ||
4e276930 JB |
27 | %description -l pl.UTF-8 |
28 | fetchconfig to skrypt Perla do odczytu konfiguracji z wielu | |
29 | urządzeń. Był testowany pod Linuksem i Windows, aktualnie obsługuje | |
30 | różne urządzenia. | |
31 | ||
32 | Przy użyciu prostego programowania w Perlu można go łatwo przystosować | |
33 | do dowolnych urządzeń sieciowych udostępniających funkcjonalność | |
34 | podobną do polecenia "show running-config" z Cisco. | |
35 | ||
1a560949 | 36 | %prep |
37 | %setup -q | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
1a560949 | 41 | install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorlib}/fetchconfig/model} |
42 | ||
43 | install fetchconfig.pl $RPM_BUILD_ROOT%{_bindir}/fetchconfig | |
4e276930 JB |
44 | install fetchconfig/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig |
45 | install fetchconfig/model/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig/model | |
1a560949 | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc CHANGES COPYING CREDITS README device_table.example | |
53 | %attr(755,root,root) %{_bindir}/fetchconfig | |
54 | %{perl_vendorlib}/fetchconfig |