|
@@ -1,24 +1,22 @@
|
|
Summary: Collection of performance monitoring tools for Linux
|
|
Summary: Collection of performance monitoring tools for Linux
|
|
Summary(ja): Linux 用パフォーマンス計測ツール集
|
|
Summary(ja): Linux 用パフォーマンス計測ツール集
|
|
Name: sysstat
|
|
Name: sysstat
|
|
-Version: 10.2.1
|
|
+Version: 11.1.3
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
Group: Applications/System
|
|
Group: Applications/System
|
|
URL: http://sebastien.godard.pagesperso-orange.fr/
|
|
URL: http://sebastien.godard.pagesperso-orange.fr/
|
|
-Source: http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.bz2
|
|
+Source: http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
|
|
|
|
|
|
-Requires: vixie-cron, fileutils, grep, sh-utils, textutils
|
|
+BuildRoot:: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: gettext, lm-sensors-devel
|
|
|
|
+Requires: cronie, findutils, xz
|
|
Requires(post): /sbin/chkconfig
|
|
Requires(post): /sbin/chkconfig
|
|
Requires(preun): /sbin/chkconfig
|
|
Requires(preun): /sbin/chkconfig
|
|
-Requires(postun): /sbin/chkconfig
|
|
|
|
-
|
|
|
|
-BuildRequires: kernel-headers, gettext, lm-sensors-devel, perl
|
|
|
|
-
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-Packager: shaolin
|
|
|
|
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: shaolin
|
|
|
|
|
|
%description
|
|
%description
|
|
The sysstat package contains sar, sadf, mpstat, iostat, pidstat, nfsiostat,
|
|
The sysstat package contains sar, sadf, mpstat, iostat, pidstat, nfsiostat,
|
|
@@ -45,15 +43,16 @@ mv CREDITS.aux CREDITS
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure sa_lib_dir=%{_libdir}/sa history=28 compressafter=31 \
|
|
+%configure \
|
|
- --disable-man-group --disable-stripping
|
|
+ --enable-install-cron --enable-copy-only --disable-file-attr \
|
|
-%{__sed} -i 's/SADC_OPTIONS=""/SADC_OPTIONS="-S DISK"/' sysstat.sysconfig
|
|
+ --disable-stripping --docdir=%{_docdir}/%{name}-%{version} \
|
|
-export CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\""
|
|
+ sadc_options='-S DISK' \
|
|
-#make %{?_smp_mflags} # doesn't work in 10.1.6
|
|
+ history=28 compressafter=31
|
|
-make
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
|
+rm -rf %{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
# Install cron file
|
|
# Install cron file
|
|
@@ -66,17 +65,18 @@ install -m 0755 sysstat %{buildroot}%{_initdir}/
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
+%clean
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%post
|
|
%post
|
|
/sbin/chkconfig --add sysstat
|
|
/sbin/chkconfig --add sysstat
|
|
|
|
|
|
-
|
|
|
|
%preun
|
|
%preun
|
|
if [[ $1 -eq 0 ]]; then
|
|
if [[ $1 -eq 0 ]]; then
|
|
- # Remove sa logs if removing sysstat completely
|
|
+ # Remove sa logs if removing sysstat completely
|
|
- rm -f %{_localstatedir}/log/sa/*
|
|
+ rm -f %{_localstatedir}/log/sa/*
|
|
- # Remove service
|
|
+ # Remove service
|
|
- /sbin/chkconfig --del sysstat
|
|
+ /sbin/chkconfig --del sysstat
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
@@ -94,8 +94,11 @@ fi
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man8/*
|
|
%{_localstatedir}/log/sa
|
|
%{_localstatedir}/log/sa
|
|
|
|
|
|
-
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Mar 11 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 11.1.3-1
|
|
|
|
+- updated to 11.1.3
|
|
|
|
+- changed Requires: cronie instead of vixie-cron
|
|
|
|
+
|
|
* Tue May 13 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 10.2.1-1
|
|
* Tue May 13 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 10.2.1-1
|
|
- new upstream (stable) release
|
|
- new upstream (stable) release
|
|
- spec file was in Shift-JIS somehow - fixed
|
|
- spec file was in Shift-JIS somehow - fixed
|