| 1 | Summary: Tools for monitoring SMART capable hard disks
|
|---|
| 2 | Name: smartmontools
|
|---|
| 3 | Version: 7.0
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | Epoch: 1
|
|---|
| 6 | License: GPLv2+
|
|---|
| 7 | URL: http://smartmontools.sourceforge.net/
|
|---|
| 8 | %scm_source github https://github.com/smartmontools/smartmontools RELEASE_7_0
|
|---|
| 9 |
|
|---|
| 10 | BuildRequires: gcc readline-devel ncurses-devel automake autoconf libtool groff
|
|---|
| 11 | BuildRequires: gettext gettext-devel os2-rpm os2-rpm-build rpm-build make
|
|---|
| 12 |
|
|---|
| 13 | %description
|
|---|
| 14 | The smartmontools package contains two utility programs (smartctl
|
|---|
| 15 | and smartd) to control and monitor storage systems using the Self-
|
|---|
| 16 | Monitoring, Analysis and Reporting Technology System (SMART) built
|
|---|
| 17 | into most modern ATA and SCSI hard disks. In many cases, these
|
|---|
| 18 | utilities will provide advanced warning of disk degradation and
|
|---|
| 19 | failure.
|
|---|
| 20 |
|
|---|
| 21 | %prep
|
|---|
| 22 | %scm_setup
|
|---|
| 23 | mv smartmontools/* .
|
|---|
| 24 | rm -rf smartmontools
|
|---|
| 25 |
|
|---|
| 26 | %build
|
|---|
| 27 | export LDFLAGS="-Zomf -Zhigh-mem -lintl" CFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS" CXXFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS"
|
|---|
| 28 | autoreconf -fiv
|
|---|
| 29 | %configure --with-selinux=no --with-libcap-ng=no --with-libsystemd=no --sysconfdir=%{_sysconfdir}/
|
|---|
| 30 | %{__make} %{?_smp_mflags}
|
|---|
| 31 |
|
|---|
| 32 | %install
|
|---|
| 33 | %{__rm} -rf %{buildroot}
|
|---|
| 34 | %makeinstall
|
|---|
| 35 |
|
|---|
| 36 | rm -f examplescripts/Makefile*
|
|---|
| 37 | chmod a-x -R examplescripts/*
|
|---|
| 38 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smartd_warning.d
|
|---|
| 39 | rm -rf $RPM_BUILD_ROOT/etc/{rc.d,init.d}
|
|---|
| 40 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|---|
| 41 | mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}
|
|---|
| 42 | #mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
|
|---|
| 43 |
|
|---|
| 44 | %files
|
|---|
| 45 | %doc AUTHORS ChangeLog INSTALL NEWS README
|
|---|
| 46 | %doc TODO examplescripts smartd.conf
|
|---|
| 47 | %license COPYING
|
|---|
| 48 | %dir %{_sysconfdir}/smartd_warning.d
|
|---|
| 49 | %config(noreplace) %{_sysconfdir}/smartd.conf
|
|---|
| 50 | %config(noreplace) %{_sysconfdir}/smartd_warning.sh
|
|---|
| 51 | %{_sbindir}/smartd.exe
|
|---|
| 52 | %{_sbindir}/update-smart-drivedb
|
|---|
| 53 | %{_sbindir}/smartctl.exe
|
|---|
| 54 | %{_mandir}/man?/smart*.*
|
|---|
| 55 | %{_mandir}/man?/update-smart*.*
|
|---|
| 56 | %{_libexecdir}/%{name}
|
|---|
| 57 | %{_datadir}/%{name}
|
|---|
| 58 | #%{_sharedstatedir}/%{name}
|
|---|
| 59 |
|
|---|
| 60 | %changelog
|
|---|
| 61 | * Thu Oct 17 2019 Valery Sedletski <_valerius@mail.ru>
|
|---|
| 62 | - Initial packaging of smartmontools 7.0.
|
|---|