smartmontools/smartmontools.spec

82 lines
2.6 KiB
RPMSpec
Raw Normal View History

2015-01-12 20:58:56 +10:00
Summary: For monitoring S.M.A.R.T. disks and devices
Name: smartmontools
2022-05-07 18:01:44 +03:00
Version: 7.3
Release: 1
2015-01-12 20:58:56 +10:00
License: GPLv2+
Group: System/Kernel and hardware
2023-07-04 21:35:54 +00:00
URL: https://www.smartmontools.org
2016-04-13 12:18:05 +03:00
Source0: https://sourceforge.net/projects/smartmontools/files/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: https://sourceforge.net/projects/smartmontools/files/%{name}/%{version}/%{name}-%{version}.tar.gz.asc
Source2: smartd.conf
2015-01-12 20:58:56 +10:00
Source3: smartd.sysconfig
Source4: smartd.service
BuildRequires: systemd-units
2020-03-18 04:41:28 +00:00
BuildRequires: pkgconfig(libcap-ng)
BuildRequires: pkgconfig(libselinux)
2023-07-04 21:47:37 +00:00
BuildRequires: pkgconfig(systemd)
2023-07-04 21:35:54 +00:00
#Requires(post,preun): rpm-helper
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
2015-01-12 20:58:56 +10:00
Provides: smartsuite = %{EVRD}
2012-02-01 14:18:33 +04:00
2015-01-12 20:58:56 +10:00
%description
2012-02-01 14:18:33 +04:00
SMARTmontools controls and monitors storage devices using the Self-Monitoring,
Analysis and Reporting Technology System (S.M.A.R.T.) built into ATA and SCSI
Hard Drives. This is used to check the reliability of the hard drive and
predict drive failures. The suite contains two utilities. The first, smartctl,
is a command-line utility designed to perform simple S.M.A.R.T. tasks. The
second, smartd, is a daemon that periodically monitors smart status and
reports errors to syslog. The package is compatible with the ATA/ATAPI-5
specification. Future releases will be compatible with the ATA/ATAPI-6 and
ATA/ATAPI-7 specifications. The package is intended to incorporate as much
"vendor specific" and "reserved" information as possible about disk drives.
man smartctl and man smartd will provide more information.
2015-01-12 20:58:56 +10:00
%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/smartd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/smartd_warning.sh
2023-07-04 21:35:54 +00:00
#attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/smartd
2015-01-12 20:58:56 +10:00
%attr(0644,root,root) %{_unitdir}/smartd.service
%{_sbindir}/*
%{_mandir}/man?/*
%{_docdir}/%{name}
%{_datadir}/%{name}/drivedb.h
%post
2023-07-04 21:35:54 +00:00
#_post_service smartd
%systemd_post smartd.service
2015-01-12 20:58:56 +10:00
%preun
2023-07-04 21:35:54 +00:00
#_preun_service smartd
%systemd_preun smartd.service
%postun
%systemd_postun_with_restart smartd.service
2015-01-12 20:58:56 +10:00
#----------------------------------------------------------------------------
2012-02-01 14:18:33 +04:00
2015-01-12 20:58:56 +10:00
%prep
2023-07-04 21:35:54 +00:00
%setup -q
2015-01-12 20:58:56 +10:00
2012-02-01 14:18:33 +04:00
%build
2020-01-04 07:10:28 +03:00
%configure \
2015-01-12 20:58:56 +10:00
--with-libcap-ng=yes \
2016-09-01 23:05:00 +03:00
--with-drivedb \
2023-07-04 21:35:54 +00:00
--with-selinux=yes \
--with-update-smart-drivedb=yes \
--with-libsystemd=yes \
--with-gnupg=yes
2012-02-01 14:18:33 +04:00
2021-01-04 20:19:32 +00:00
%make_build
2012-02-01 14:18:33 +04:00
%install
2023-07-04 21:35:54 +00:00
#install -d %{buildroot}%{_sysconfdir}/sysconfig
2012-02-01 14:18:33 +04:00
2021-01-04 20:19:32 +00:00
%make_install
2012-02-01 14:18:33 +04:00
2023-07-04 21:35:54 +00:00
#install %{SOURCE2} %{buildroot}%{_sysconfdir}/
#install %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/smartd
#install -D -p -m 644 %{SOURCE4} %{buildroot}/lib/systemd/system/smartd.service
#rm -f %{buildroot}%{_initrddir}/smartd