Hello community, here is the log from the commit of package wol for openSUSE:Factory checked in at 2017-11-16 13:56:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wol (Old) and /work/SRC/openSUSE:Factory/.wol.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wol" Thu Nov 16 13:56:35 2017 rev:19 rq:541247 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/wol/wol.changes 2013-04-05 17:14:42.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.wol.new/wol.changes 2017-11-16 13:56:36.475205144 +0100 @@ -1,0 +2,7 @@ +Mon Nov 13 10:06:34 UTC 2017 - [email protected] + +- Refresh spec-file via spec-cleaner. +- Add package wol-udev-rules for activation wol via magic packet on ethernet devices. +- Separated localization files in a separate lang-package. + +------------------------------------------------------------------- New: ---- wol.rules ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wol.spec ++++++ --- /var/tmp/diff_new_pack.ZOT4Nz/_old 2017-11-16 13:56:37.491168337 +0100 +++ /var/tmp/diff_new_pack.ZOT4Nz/_new 2017-11-16 13:56:37.495168192 +0100 @@ -1,7 +1,7 @@ # # spec file for package wol # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,20 +12,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org # - Name: wol +Version: 0.7.1 +Release: 0 Summary: Wake On Lan client License: GPL-2.0+ Group: Productivity/Networking/Boot/Utilities -Version: 0.7.1 -Release: 0 -Source: http://sourceforge.net/projects/wake-on-lan/files/wol/%{version}/%{name}-%{version}.tar.gz -Url: http://ahh.sourceforge.net/wol/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -PreReq: %install_info_prereq +URL: https://sourceforge.net/projects/wake-on-lan +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.rules +Requires(post): %{install_info_prereq} +Requires(preun):%{install_info_prereq} %description The Wake On Lan client wakes up magic packet compliant machines such as @@ -33,37 +33,46 @@ SecureON which extends wake-on-lan with a password. This feature is also provided by wol. +%package udev-rules +Summary: Udev rules for activate %{name} via a magic packet on ethernet devices +Group: System/Kernel +Requires: ethtool +Requires: udev +BuildArch: noarch +%description udev-rules +This package contains the udev rule file for configuring ethernet devices for activate %{name} via a magic packet. -Authors: --------- - Thomas Krennwallner <[email protected]> +%lang_package %prep %setup -q %build %configure --disable-rpath -make +make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install +%make_install +install -Dm 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/90-%{name}.rules %find_lang %{name} -%clean -rm -rf $RPM_BUILD_ROOT - %post -%install_info --info-dir=%{_infodir} %{_infodir}/wol.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} -%postun -%install_info_delete --info-dir=%{_infodir} %{_infodir}/wol.info.gz +%preun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} -%files -f %{name}.lang -%defattr(-,root,root) +%files +%{_bindir}/%{name}* +%{_infodir}/%{name}.info%{ext_info} +%{_mandir}/man?/%{name}.?%{ext_man} %doc ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README TODO -%{_infodir}/wol.* -%{_mandir}/*/* -%{_bindir}/* + +%files udev-rules +%dir %{_udevrulesdir} +%{_udevrulesdir}/90-%{name}.rules + +%files -f %{name}.lang lang %changelog ++++++ wol.rules ++++++ ACTION=="add", SUBSYSTEM=="net", NAME=="en*", RUN+="/usr/sbin/ethtool -s $name wol g"
