Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 7.0 Release: 1%{?dist} Epoch: 1 License: GPLv2+ URL: http://smartmontools.sourceforge.net/ %scm_source github https://github.com/smartmontools/smartmontools RELEASE_7_0 BuildRequires: gcc readline-devel ncurses-devel automake autoconf libtool groff BuildRequires: gettext gettext-devel os2-rpm os2-rpm-build rpm-build make %description The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self- Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI hard disks. In many cases, these utilities will provide advanced warning of disk degradation and failure. %prep %scm_setup mv smartmontools/* . rm -rf smartmontools %build export LDFLAGS="-Zomf -Zhigh-mem -lintl" CFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS" CXXFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS" autoreconf -fiv %configure --with-selinux=no --with-libcap-ng=no --with-libsystemd=no --sysconfdir=%{_sysconfdir}/ %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall rm -f examplescripts/Makefile* chmod a-x -R examplescripts/* mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smartd_warning.d rm -rf $RPM_BUILD_ROOT/etc/{rc.d,init.d} rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name} #mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} %files %doc AUTHORS ChangeLog INSTALL NEWS README %doc TODO examplescripts smartd.conf %license COPYING %dir %{_sysconfdir}/smartd_warning.d %config(noreplace) %{_sysconfdir}/smartd.conf %config(noreplace) %{_sysconfdir}/smartd_warning.sh %{_sbindir}/smartd.exe %{_sbindir}/update-smart-drivedb %{_sbindir}/smartctl.exe %{_mandir}/man?/smart*.* %{_mandir}/man?/update-smart*.* %{_libexecdir}/%{name} %{_datadir}/%{name} #%{_sharedstatedir}/%{name} %changelog * Thu Oct 17 2019 Valery Sedletski <_valerius@mail.ru> - Initial packaging of smartmontools 7.0.