|
@@ -1,19 +1,21 @@
|
|
-Summary: smartmontools - for monitoring S.M.A.R.T. disks and devices
|
|
+Summary: smartmontools - for monitoring S.M.A.R.T. disks and devices
|
|
-Summary(ja): smartmontools - S.M.A.R.T.ディスクとデバイスの監視
|
|
+Summary(ja): smartmontools - S.M.A.R.T.ディスクとデバイスの監視
|
|
-Name: smartmontools
|
|
+Name: smartmontools
|
|
-Version: 5.38
|
|
+Version: 5.42
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
-License: GPL
|
|
+License: GPLv2+
|
|
-Group: Applications/System
|
|
+Group: Applications/System
|
|
-Source0: http://downloads.sourceforge.net/smartmontools/%{name}-%{version}.tar.gz
|
|
+URL: http://smartmontools.sourceforge.net/
|
|
-Patch0: smartmontools-vinerelease.patch
|
|
+Source0: http://downloads.sourceforge.net/smartmontools/%{name}-%{version}.tar.gz
|
|
-URL: http://smartmontools.sourceforge.net/
|
|
+Patch0: smartmontools-5.42-vinerelease.patch
|
|
-Prereq: /sbin/chkconfig
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
+Obsoletes: smartctl
|
|
-Obsoletes: smartctl
|
|
+Obsoletes: smartd
|
|
-Obsoletes: smartd
|
|
+Obsoletes: ucsc-smartsuite
|
|
-Obsoletes: ucsc-smartsuite
|
|
+Obsoletes: smartsuite
|
|
-Obsoletes: smartsuite
|
|
+Requires(post): /sbin/chkconfig
|
|
|
|
+Requires: fileutils chkconfig
|
|
|
|
+BuildRequires: readline-devel ncurses-devel automake util-linux groff gettext
|
|
|
|
|
|
#Packager: Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
|
#Packager: Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
|
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
|
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
|
@@ -65,22 +67,39 @@ Analysis and Reporting Technology (S.M.A.R.T.)システムを用いてストレ
|
|
smartctlおよびman smartdで得られます。最新のバージョン及び追加情報につい
|
|
smartctlおよびman smartdで得られます。最新のバージョン及び追加情報につい
|
|
ての情報は次のURLにあります:http://smartmontools.sourceforge.net/
|
|
ての情報は次のURLにあります:http://smartmontools.sourceforge.net/
|
|
|
|
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch0 -p1
|
|
+%patch0 -p0
|
|
|
|
+
|
|
|
|
+# fix encoding
|
|
|
|
+for fe in AUTHORS CHANGELOG
|
|
|
|
+do
|
|
|
|
+ iconv -f iso-8859-1 -t utf-8 <$fe >$fe.new
|
|
|
|
+ touch -r $fe $fe.new
|
|
|
|
+ mv -f $fe.new $fe
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
- %configure
|
|
+ln -s CHANGELOG ChangeLog
|
|
- make
|
|
+autoreconf -i
|
|
|
|
+%configure --without-selinux
|
|
|
|
+make CXXFLAGS="%{optflags} -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
- rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
- rm -rf %{_buildroot}
|
|
+make DESTDIR=%{buildroot} install
|
|
- %makeinstall
|
|
+
|
|
- rm -f examplescripts/Makefile*
|
|
+rm -f examplescripts/Makefile*
|
|
|
|
+chmod a-x -R examplescripts/*
|
|
|
|
+
|
|
|
|
+rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
|
+
|
|
|
|
|
|
%clean
|
|
%clean
|
|
- rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%pre
|
|
%pre
|
|
if [ ! -f /etc/smartd.conf ]; then
|
|
if [ ! -f /etc/smartd.conf ]; then
|
|
@@ -128,14 +147,15 @@ fi
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%doc AUTHORS CHANGELOG COPYING INSTALL NEWS README
|
|
|
|
+%doc TODO WARNINGS smartd.conf examplescripts
|
|
|
|
+%config(noreplace) %{_sysconfdir}/smartd.conf
|
|
%attr(755,root,root) %{_sbindir}/smartd
|
|
%attr(755,root,root) %{_sbindir}/smartd
|
|
%attr(755,root,root) %{_sbindir}/smartctl
|
|
%attr(755,root,root) %{_sbindir}/smartctl
|
|
|
|
+%attr(755,root,root) %{_sbindir}/update-smart-drivedb
|
|
%attr(755,root,root) /etc/rc.d/init.d/smartd
|
|
%attr(755,root,root) /etc/rc.d/init.d/smartd
|
|
-%attr(644,root,root) %{_mandir}/man8/smartctl.8*
|
|
+%attr(644,root,root) %{_mandir}/man?/*
|
|
-%attr(644,root,root) %{_mandir}/man8/smartd.8*
|
|
+%{_datadir}/%{name}
|
|
-%attr(644,root,root) %{_mandir}/man5/smartd.conf.5*
|
|
|
|
-%doc AUTHORS CHANGELOG COPYING INSTALL NEWS README TODO WARNINGS smartd.conf examplescripts
|
|
|
|
-%config %{_sysconfdir}/smartd.conf
|
|
|
|
|
|
|
|
# Maintainers / Developers Key:
|
|
# Maintainers / Developers Key:
|
|
# [BA] Bruce Allen
|
|
# [BA] Bruce Allen
|
|
@@ -155,6 +175,9 @@ fi
|
|
# [PW] Phil Williams
|
|
# [PW] Phil Williams
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.42-1
|
|
|
|
+- new upstream release; spec revamp
|
|
|
|
+
|
|
* Tue Aug 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.38-2
|
|
* Tue Aug 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.38-2
|
|
- spec in UTF-8
|
|
- spec in UTF-8
|
|
|
|
|