diff --git a/README.md b/README.md index f72a0d4..6b3121e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # wakeonlan +Wakeonlan is a Perl script that sends 'magic packets' to wake-on-LAN enabled ethernet adapters and motherboards, in order to switch on remote computers. + diff --git a/wakeonlan.spec b/wakeonlan.spec new file mode 100644 index 0000000..af96aac --- /dev/null +++ b/wakeonlan.spec @@ -0,0 +1,55 @@ +Name: wakeonlan +Version: 0.41 +Release: 1mamba +Summary: A command that sends 'magic packets' to wake-on-LAN enabled ethernet adapters and motherboards +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://gsd.di.uminho.pt/jpo/software/wakeonlan/ +Source: http://gsd.di.uminho.pt/jpo/software/wakeonlan/downloads/wakeonlan-%{version}.tar.gz +License: Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: libperl +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Wakeonlan is a Perl script that sends 'magic packets' to wake-on-LAN enabled ethernet adapters and motherboards, in order to switch on remote computers. + +%debug_package + +%prep +%setup -q + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist |\ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" |\ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Mon May 12 2014 Silvan Calarco 0.41-1mamba +- package created using the webbuild interface