1 %include /usr/lib/rpm/macros.perl
3 Summary: Fetchconfig device configuration retrieval software
4 Summary(pl.UTF-8): fetchconfig - program do odczytu konfiguracji urządzeń
9 Group: Applications/System
10 Source0: http://download.savannah.gnu.org/releases/fetchconfig/%{name}-%{version}.tar.gz
11 # Source0-md5: 6b6d666efec9de3e4a29dda18426b34d
12 URL: http://www.nongnu.org/fetchconfig/
13 BuildRequires: rpm-perlprov
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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
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.
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorlib}/fetchconfig/model}
43 install fetchconfig.pl $RPM_BUILD_ROOT%{_bindir}/fetchconfig
44 install fetchconfig/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig
45 install fetchconfig/model/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig/model
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc CHANGES CREDITS README device_table.example
53 %attr(755,root,root) %{_bindir}/fetchconfig
54 %{perl_vendorlib}/fetchconfig