--- /dev/null
+
+%include /usr/lib/rpm/macros.perl
+
+Summary: Fetchconfig device configuration retrieval software
+Name: fetchconfig
+Version: 0.5
+Release: 0.1
+License: GPL v2
+Group: Applications/System
+Source0: http://download.savannah.gnu.org/releases/fetchconfig/%{name}-%{version}.tar.gz
+# Source0-md5: 6e22d95efafc6a74bc728539f8d8ca89
+URL: http://www.nongnu.org/fetchconfig/
+Requires: perl-base
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+fetchconfig is a Perl script for retrieving the configuration of
+multiple devices. It has been tested under Linux and Windows, and
+currently supports a variety of devices.
+
+With some simple Perl programming, it is easily adaptable to any
+network devices which provides functionality similar to Cisco's "show
+running-config" command.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorlib}/fetchconfig/model}
+
+install fetchconfig.pl $RPM_BUILD_ROOT%{_bindir}/fetchconfig
+install fetchconfig/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig/
+install fetchconfig/model/*.pm $RPM_BUILD_ROOT%{perl_vendorlib}/fetchconfig/model/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES COPYING CREDITS README device_table.example
+%attr(755,root,root) %{_bindir}/fetchconfig
+%{perl_vendorlib}/fetchconfig