source: spec/trunk/SPECS/smartmontools.spec@ 1690

Last change on this file since 1690 was 1675, checked in by valerius, 6 years ago

Add smartmontools (OS/2 version is maintained by Alex Samorukov) .spec

File size: 2.0 KB
Line 
1Summary: Tools for monitoring SMART capable hard disks
2Name: smartmontools
3Version: 7.0
4Release: 1%{?dist}
5Epoch: 1
6License: GPLv2+
7URL: http://smartmontools.sourceforge.net/
8%scm_source github https://github.com/smartmontools/smartmontools RELEASE_7_0
9
10BuildRequires: gcc readline-devel ncurses-devel automake autoconf libtool groff
11BuildRequires: gettext gettext-devel os2-rpm os2-rpm-build rpm-build make
12
13%description
14The smartmontools package contains two utility programs (smartctl
15and smartd) to control and monitor storage systems using the Self-
16Monitoring, Analysis and Reporting Technology System (SMART) built
17into most modern ATA and SCSI hard disks. In many cases, these
18utilities will provide advanced warning of disk degradation and
19failure.
20
21%prep
22%scm_setup
23mv smartmontools/* .
24rm -rf smartmontools
25
26%build
27export LDFLAGS="-Zomf -Zhigh-mem -lintl" CFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS" CXXFLAGS="-DHAVE_LIBINTL_H -DENABLE_NLS"
28autoreconf -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
36rm -f examplescripts/Makefile*
37chmod a-x -R examplescripts/*
38mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smartd_warning.d
39rm -rf $RPM_BUILD_ROOT/etc/{rc.d,init.d}
40rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
41mkdir -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.
Note: See TracBrowser for help on using the repository browser.