spec cleanup
This commit is contained in:
parent
5ec8254a72
commit
0c4121fef6
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# smartmontools init file for smartd
|
# smartmontools init file for smartd
|
||||||
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
||||||
# $Id: smartd.initd,v 1.10 2009/10/09 18:51:01 mhlavink Exp $
|
# $Id: smartd.initd,v 1.11 2009/11/02 16:54:12 mhlavink Exp $
|
||||||
|
|
||||||
# For RedHat and cousins:
|
# For RedHat and cousins:
|
||||||
# chkconfig: - 99 01
|
# chkconfig: - 99 01
|
||||||
@ -14,6 +14,8 @@
|
|||||||
# Required-Start: $local_fs $network
|
# Required-Start: $local_fs $network
|
||||||
# Required-Stop: $local_fs $network
|
# Required-Stop: $local_fs $network
|
||||||
# Should-Start:
|
# Should-Start:
|
||||||
|
# Default-Start:
|
||||||
|
# Default-Stop: 0 1 2 3 4 5 6
|
||||||
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
|
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
|
||||||
# Description: The smartd daemon monitors SMART status of the local hard drives and
|
# Description: The smartd daemon monitors SMART status of the local hard drives and
|
||||||
# provides advanced warnings of of disk degradation or failures.
|
# provides advanced warnings of of disk degradation or failures.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tools for monitoring SMART capable hard disks
|
Summary: Tools for monitoring SMART capable hard disks
|
||||||
Name: smartmontools
|
Name: smartmontools
|
||||||
Version: 5.38
|
Version: 5.38
|
||||||
Release: 21%{?dist}
|
Release: 22%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -10,15 +10,15 @@ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|||||||
Source1: smartd.initd
|
Source1: smartd.initd
|
||||||
Source2: smartmontools.sysconf
|
Source2: smartmontools.sysconf
|
||||||
Patch1: smartmontools-5.38-cloexec.patch
|
Patch1: smartmontools-5.38-cloexec.patch
|
||||||
Patch2: smartmontools-5.37-addrinfo.patch
|
Patch2: smartmontools-5.37-addrinfo.patch
|
||||||
Patch3: smartmontools-5.38-perc.patch
|
Patch3: smartmontools-5.38-perc.patch
|
||||||
Patch4: smartmontools-5.38-selinux.patch
|
Patch4: smartmontools-5.38-selinux.patch
|
||||||
Patch5: smartmontools-5.38-defaultconf.patch
|
Patch5: smartmontools-5.38-defaultconf.patch
|
||||||
Patch6: smartmontools-5.38-lowcap.patch
|
Patch6: smartmontools-5.38-lowcap.patch
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
Requires: fileutils mailx chkconfig initscripts
|
Requires: fileutils mailx chkconfig initscripts
|
||||||
BuildRequires: readline-devel ncurses-devel /usr/bin/aclocal util-linux groff gettext
|
BuildRequires: readline-devel ncurses-devel /usr/bin/aclocal util-linux groff gettext
|
||||||
BuildRequires: libselinux-devel libcap-ng-devel
|
BuildRequires: libselinux-devel libcap-ng-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The smartmontools package contains two utility programs (smartctl
|
The smartmontools package contains two utility programs (smartctl
|
||||||
@ -37,6 +37,14 @@ failure.
|
|||||||
%patch5 -p1 -b .defaultconf
|
%patch5 -p1 -b .defaultconf
|
||||||
%patch6 -p1 -b .lowcap
|
%patch6 -p1 -b .lowcap
|
||||||
|
|
||||||
|
# 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
|
||||||
ln -s CHANGELOG ChangeLog
|
ln -s CHANGELOG ChangeLog
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
@ -46,12 +54,14 @@ make CXXFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
|||||||
%else
|
%else
|
||||||
make CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
make CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
#rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd.conf
|
#rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd.conf
|
||||||
rm -f examplescripts/Makefile*
|
rm -f examplescripts/Makefile*
|
||||||
|
chmod a-x -R examplescripts/*
|
||||||
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd
|
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/smartd
|
||||||
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools
|
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools
|
||||||
|
|
||||||
@ -73,12 +83,15 @@ fi
|
|||||||
%doc TODO WARNINGS examplescripts smartd.conf
|
%doc TODO WARNINGS examplescripts smartd.conf
|
||||||
%{_sbindir}/smartd
|
%{_sbindir}/smartd
|
||||||
%{_sbindir}/smartctl
|
%{_sbindir}/smartctl
|
||||||
%{_initrddir}/smartd
|
%{_initddir}/smartd
|
||||||
%{_mandir}/man?/smart*.*
|
%{_mandir}/man?/smart*.*
|
||||||
%config(noreplace) %{_sysconfdir}/smartd.conf
|
%config(noreplace) %{_sysconfdir}/smartd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 02 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-22
|
||||||
|
- spec cleanup
|
||||||
|
|
||||||
* Mon Oct 12 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-21
|
* Mon Oct 12 2009 Michal Hlavinka <mhlavink@redhat.com> - 1:5.38-21
|
||||||
- warn about disabled mail only if capabilities are enabled
|
- warn about disabled mail only if capabilities are enabled
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user