|
| 1 | +Name: hdapsd |
| 2 | +Version: 20250908 |
| 3 | +Release: 1%{?dist} |
| 4 | +Summary: Protects hard drives by parking head when fall is detected |
| 5 | + |
| 6 | +Group: Applications/System |
| 7 | +License: GPLv2+ |
| 8 | +URL: http://hdaps.sourceforge.net/ |
| 9 | +Source0: https://github.com/linux-thinkpad/hdapsd/releases/download/%{version}/%{name}-%{version}.tar.gz |
| 10 | +BuildRequires: gcc |
| 11 | +%{?systemd_requires} |
| 12 | +BuildRequires: systemd |
| 13 | +BuildRequires: libconfig-devel |
| 14 | + |
| 15 | +%description |
| 16 | + |
| 17 | +This is a disk protection user-space daemon. It monitors the acceleration |
| 18 | +values through the HDAPS/AMS interfaces and automatically initiates disk head |
| 19 | +parking if a fall or sliding of the laptop is detected. |
| 20 | + |
| 21 | +HDAPS is typically found in ThinkPad laptops and AMS in Apple laptops. |
| 22 | + |
| 23 | +%prep |
| 24 | +%setup -q |
| 25 | + |
| 26 | +%build |
| 27 | +%configure |
| 28 | +make %{?_smp_mflags} |
| 29 | + |
| 30 | + |
| 31 | +%install |
| 32 | +%make_install |
| 33 | +install -m 644 misc/%{name}.service %{buildroot}%{_unitdir} |
| 34 | + |
| 35 | +%files |
| 36 | +%{_sbindir}/* |
| 37 | +%{_udevrulesdir}/%{name}.rules |
| 38 | +%{_unitdir}/%{name}.service |
| 39 | +%{_unitdir}/%{name}@.service |
| 40 | +%{_mandir}/man8/hdapsd.8.gz |
| 41 | +%config(noreplace) %{_sysconfdir}/%{name}.conf |
| 42 | +%doc AUTHORS |
| 43 | +%license COPYING |
| 44 | +%doc ChangeLog |
| 45 | +%doc README.md |
| 46 | + |
| 47 | + |
| 48 | +%changelog |
| 49 | +* Wed Oct 22 2025 Evgeni Golov - 20250908-1 |
| 50 | +- New upstream release |
| 51 | + |
| 52 | +* Tue Jul 24 2018 Adam Williamson <[email protected]> - 20141203-10 |
| 53 | +- Rebuild for new libconfig |
| 54 | + |
| 55 | +* Fri Jul 13 2018 Fedora Release Engineering <[email protected]> - 20141203-9 |
| 56 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
| 57 | + |
| 58 | +* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 20141203-8 |
| 59 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
| 60 | + |
| 61 | +* Wed Aug 02 2017 Fedora Release Engineering <[email protected]> - 20141203-7 |
| 62 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
| 63 | + |
| 64 | +* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 20141203-6 |
| 65 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
| 66 | + |
| 67 | +* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 20141203-5 |
| 68 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
| 69 | + |
| 70 | +* Sun Feb 14 2016 Tomasz Torcz <[email protected]> - 20141203-4 |
| 71 | +- fix FTBFS (rhbz#1307612) |
| 72 | + |
| 73 | +* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 20141203-3 |
| 74 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
| 75 | + |
| 76 | +* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 20141203-2 |
| 77 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
| 78 | + |
| 79 | +* Wed May 06 2015 Tomasz Torcz <[email protected]> - 20141203-1 |
| 80 | +- new upstream version |
| 81 | + |
| 82 | +* Tue Oct 28 2014 Tomasz Torcz <[email protected]> - 20141024-1 |
| 83 | +- new upstream version |
| 84 | + |
| 85 | +* Sat Aug 16 2014 Fedora Release Engineering <[email protected]> - 20090401.20131204git401ca60-3 |
| 86 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
| 87 | + |
| 88 | +* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 20090401.20131204git401ca60-2 |
| 89 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
| 90 | + |
| 91 | +* Wed Dec 04 2013 Tomasz Torcz <[email protected]> - 20090401.20131204git401ca60c75-1 |
| 92 | +- latest upstream snapshot, fixes rhbz#1037119 |
| 93 | + |
| 94 | +* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 20090401gita64b50c-2 |
| 95 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
| 96 | + |
| 97 | +* Tue May 28 2013 Tomasz Torcz <[email protected]> - 20090401gita64b50c-1 |
| 98 | +- package upstream snapshot: |
| 99 | + - use upstream systemd units and udev rules |
| 100 | + - drop sysconfig file |
| 101 | + |
| 102 | +* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 20090401-12 |
| 103 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
| 104 | + |
| 105 | +* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 20090401-11 |
| 106 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
| 107 | + |
| 108 | +* Fri Feb 03 2012 Tomasz Torcz <[email protected]> - 20090401-10 |
| 109 | +- spec cleanup: |
| 110 | + - remove BuildRoot define and it's removal from clean |
| 111 | + - use _unitdir macro introduced in the meantime |
| 112 | + - drop upstart event files |
| 113 | +- remove StandardOutput=syslog from unit file |
| 114 | + |
| 115 | +* Fri Jan 13 2012 Fedora Release Engineering <[email protected]> - 20090401-9 |
| 116 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
| 117 | + |
| 118 | +* Wed Feb 09 2011 Fedora Release Engineering <[email protected]> - 20090401-8 |
| 119 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
| 120 | + |
| 121 | +* Sun Jan 9 2011 Tomasz Torcz <[email protected]> 20090401-7 |
| 122 | +- remove bad parentheses in ExecStart= line of systemd unit def |
| 123 | + (thanks Alexandre Silva Lopes, #667073) |
| 124 | + |
| 125 | +* Sat Jul 17 2010 Tomasz Torcz <[email protected]> 20090401-6 |
| 126 | +- provide systemd service definition |
| 127 | +- resurrect udev rule for systemd interaction |
| 128 | + |
| 129 | +* Mon Dec 07 2009 Tomasz Torcz <[email protected]> 20090401-5 |
| 130 | +- port initscript file to upstart 0.6, removing custom udev rule |
| 131 | + |
| 132 | +* Fri Sep 04 2009 Tomasz Torcz <[email protected]> 20090401-4 |
| 133 | +- use version macro in in Source0, as per review suggestion (#505928 #9) |
| 134 | + |
| 135 | +* Sun Jun 21 2009 Tomasz Torcz <[email protected]> 20090401-3 |
| 136 | +- fixes from review: URL source, proper build root macro |
| 137 | +- minor cleanup of event file |
| 138 | + |
| 139 | +* Wed Jun 17 2009 Tomasz Torcz <[email protected]> 20090401-2 |
| 140 | +- mark upstart event file and udev rule as config files |
| 141 | + |
| 142 | +* Sun Jun 14 2009 Tomasz Torcz <[email protected]> 20090401-1 |
| 143 | +- initial version |
0 commit comments