[hdapsd] - package upstream snapshot: - use upstream systemd units and udev rules - drop sysconfig file - fix
Tomasz Torcz
ttorcz at fedoraproject.org
Tue May 28 19:47:55 UTC 2013
commit 973a14b98a0ab2dd43dcd763040e3f85fe2ffd3a
Author: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Tue May 28 21:47:12 2013 +0200
- package upstream snapshot: - use upstream systemd units and udev rules
- drop sysconfig file
- fix incorrect dates in changelog
.gitignore | 1 +
99-hdapsd.rules.systemd | 1 -
hdapsd.spec | 38 ++++++++++++++++++++------------------
hdapsd at .service | 8 --------
sources | 2 +-
5 files changed, 22 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1f1d6cc..3f83b98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
hdapsd-20090401.tar.gz
+/hdapsd-20090401gita64b50c-a64b50c.tar.gz
diff --git a/hdapsd.spec b/hdapsd.spec
index b226ec5..5dd0962 100644
--- a/hdapsd.spec
+++ b/hdapsd.spec
@@ -1,16 +1,19 @@
+%global commit a64b50c05c5e2b6b7d6ca1165362b4d8e484f4f4
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
Name: hdapsd
-Version: 20090401
-Release: 12%{?dist}
+Version: 20090401git%{shortcommit}
+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: http://downloads.sourceforge.net/hdaps/hdapsd-%{version}.tar.gz
-Source3: 99-hdapsd.rules.systemd
-Source4: hdapsd at .service
+Source0: https://github.com/evgeni/hdapsd/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Requires: systemd-units
BuildRequires: systemd-units
+BuildRequires: autoconf
+BuildRequires: automake
%description
@@ -21,9 +24,10 @@ 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 -q
+%setup -qn %{name}-%{commit}
%build
+./autogen.sh
%configure
make %{?_smp_mflags}
@@ -31,10 +35,6 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
-mkdir -p %{buildroot}%{_unitdir}
-cp -p %SOURCE3 %{buildroot}%{_sysconfdir}/udev/rules.d/99-hdapsd.rules
-cp -p %SOURCE4 %{buildroot}%{_unitdir}
# remove docs installed by "make install", will be installed in proper dir by %doc
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
@@ -42,8 +42,8 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%files
%defattr(-,root,root,-)
%{_sbindir}/*
-%config(noreplace) %{_sysconfdir}/udev/rules.d/99-hdapsd.rules
-%{_unitdir}/hdapsd at .service
+%{_udevrulesdir}/%{name}.rules
+%{_unitdir}/%{name}@.service
%{_mandir}/man8/hdapsd.8.gz
%doc AUTHORS
%doc COPYING
@@ -52,16 +52,18 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%changelog
+* Tue May 28 2013 Tomasz Torcz <ttorcz at fedoraproject.org> - 20090401gita64b50c-1
+- package upstream snapshot:
+ - use upstream systemd units and udev rules
+ - drop sysconfig file
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20090401-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20090401-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-# dropped sysconfig file
-# TODO: proper udev rule location
-
-* Fri Feb 03 2012 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-10
+* Fri Feb 03 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 20090401-10
- spec cleanup:
- remove BuildRoot define and it's removal from clean
- use _unitdir macro introduced in the meantime
@@ -88,11 +90,11 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name}
* Fri Sep 04 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-4
- use version macro in in Source0, as per review suggestion (#505928 #9)
-* Tue Jun 21 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-3
+* Sun Jun 21 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-3
- fixes from review: URL source, proper build root macro
- minor cleanup of event file
-* Sun Jun 17 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-2
+* Wed Jun 17 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-2
- mark upstart event file and udev rule as config files
* Sun Jun 14 2009 Tomasz Torcz <ttorcz at fedoraproject.org> 20090401-1
diff --git a/sources b/sources
index 3a5ad20..4cd52c5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-897cee8b0192febd127470f3e9506aeb hdapsd-20090401.tar.gz
+0a2306be7a2563d59486afcf77e89c30 hdapsd-20090401gita64b50c-a64b50c.tar.gz
More information about the scm-commits
mailing list