Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alveus:kodi-next
hd-idle
hd-idle.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hd-idle.spec of Package hd-idle
# # spec file for package hd-idle # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # 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/ # Name: hd-idle Version: 1.21 Release: 0 Summary: Spin down external harddisks License: GPL-3.0+ Group: System/Base Url: https://github.com/adelolmo/hd-idle Source: hd-idle-%{version}.tar.xz Source2: hd-idle.default Source3: hd-idle.service Source4: vendor.tar.xz BuildRequires: golang(API) >= 1.16 BuildRequires: golang-packaging #BuildRequires: golang-github-benmcclelland-sgio BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} %description hd-idle is a utility program for spinning-down external disks after a period of idle time. Since most external IDE disk enclosures don't support setting the IDE idle timer, a program like hd-idle is required to spin down idle disks automatically. %prep %setup -q -n %{name}-%{version} tar xJf %{SOURCE4} mv README.md README mkdir build %build go build -v -x \ -o build \ -mod=vendor \ -buildmode=pie ; %install # Install the binary. install -D -m 0755 build/%{name} %{buildroot}/%{_bindir}/%{name} # Install logrotate config install -D -m 0644 debian/hd-idle.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/hd-idle # Install man pages #install -D -m 0644 debian/hd-idle.8 %{buildroot}%{_mandir}/man8/hd-idle.8 # Install systemd services mkdir -p %{buildroot}%{_sbindir} install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/default/hd-idle install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/hd-idle.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rchd-idle %pre %service_add_pre hd-idle.service %preun %service_del_preun hd-idle.service %post %service_add_post hd-idle.service %postun %service_del_postun hd-idle.service %files %defattr(-,root,root) %doc README LICENSE debian/changelog %{_bindir}/hd-idle %{_sbindir}/rchd-idle %{_sysconfdir}/logrotate.d/hd-idle #%{_mandir}/man8/hd-idle.8* %config(noreplace) %{_sysconfdir}/default/hd-idle %{_unitdir}/hd-idle.service %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor