Compare commits

...
This repository has been archived on 2026-09-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

1 commit

Author SHA1 Message Date
Tomasz Torcz
6cb9f4995e - new upstream release 2014-10-28 22:15:26 +01:00
3 changed files with 14 additions and 16 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
hdapsd-20090401.tar.gz
/hdapsd-20090401gita64b50c-a64b50c.tar.gz
/hdapsd-20090401.20131204git401ca60-401ca60.tar.gz
/hdapsd-20141024.tar.gz

View file

@ -1,19 +1,15 @@
%global commit 401ca60c75884a3775536eafc36c822e4ae595dd
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: hdapsd
Version: 20090401.20131204git%{shortcommit}
Release: 3%{?dist}
Version: 20141024
Release: 1%{?dist}
Summary: Protects hard drives by parking head when fall is detected
Group: Applications/System
License: GPLv2+
URL: http://hdaps.sourceforge.net/
Source0: https://github.com/evgeni/hdapsd/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Source0: https://github.com/evgeni/hdapsd/archive/%{commit}/%{name}-%{version}.tar.gz
Requires: systemd-units
BuildRequires: systemd-units
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libconfig-devel
%description
@ -24,27 +20,25 @@ parking if a fall or sliding of the laptop is detected.
HDAPS is typically found in ThinkPad laptops and AMS in Apple laptops.
%prep
%setup -qn %{name}-%{commit}
%setup -q
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# remove docs installed by "make install", will be installed in proper dir by %doc
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%make_install
install -m 644 misc/%{name}.service %{buildroot}%{_unitdir}
%files
%defattr(-,root,root,-)
%{_sbindir}/*
%{_udevrulesdir}/%{name}.rules
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}@.service
%{_mandir}/man8/hdapsd.8.gz
%config(noreplace) %{_sysconfdir}/%{name}.conf
%doc AUTHORS
%doc COPYING
%doc ChangeLog
@ -52,6 +46,9 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%changelog
* Tue Oct 28 2014 Tomasz Torcz <ttorcz@fedoraproject.org> - 20141024-1
- new upstream version
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090401.20131204git401ca60-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View file

@ -1 +1 @@
db3ba23db988f7951a6023a6216d6c00 hdapsd-20090401.20131204git401ca60-401ca60.tar.gz
4c08983ddfbe5d4dea56f4d40dd45e9f hdapsd-20141024.tar.gz