2010-11-15 14:13:48 +01:00
|
|
|
#
|
|
|
|
Name: patch2mail
|
2011-06-19 18:15:31 +02:00
|
|
|
Version: 1.1
|
2010-11-15 14:13:48 +01:00
|
|
|
Release: 1
|
|
|
|
#
|
2010-11-19 18:20:38 +01:00
|
|
|
License: GPLv2+
|
2010-11-15 14:13:48 +01:00
|
|
|
#
|
2011-06-19 18:15:31 +02:00
|
|
|
Summary: Patch and package update notification via mail
|
2010-11-15 14:13:48 +01:00
|
|
|
#BuildRequires: bash
|
|
|
|
#
|
|
|
|
Url: http://blog.cboltz.de/plugin/tag/patch2mail
|
|
|
|
Group: System/Packages
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: /bin/hostname
|
|
|
|
Requires: /bin/rm
|
|
|
|
Requires: /usr/bin/xsltproc
|
|
|
|
Requires: cron
|
|
|
|
Requires: grep
|
|
|
|
Requires: mail
|
|
|
|
Requires: mktemp
|
|
|
|
Requires: zypper
|
|
|
|
# detailed requirements:
|
|
|
|
# zypper # (>= 11.0) zypp-refresh-rapper, zypper
|
|
|
|
# zypper # (<= 10.3) zypp-checkpatches-wrapper
|
|
|
|
# libxslt # xsltproc [NOT autodetected, even if rpmlint thinks so]
|
|
|
|
# coreutils # rm
|
|
|
|
# net-tools # hostname
|
|
|
|
|
|
|
|
%description
|
|
|
|
patch2mail checks for available updates and sends a mail to root
|
2011-06-19 18:15:31 +02:00
|
|
|
if any patches or updated packages (configureable) are available.
|
2010-11-15 14:13:48 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/cron.daily
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
|
|
|
|
|
|
%{__install} -m 0644 patch2mail.xsl %{buildroot}%{_datadir}/%{name}/patch2mail.xsl
|
|
|
|
%if 0%{?suse_version} < 1030
|
|
|
|
%{__install} -m 0644 patch2mail.xsl_10.2 %{buildroot}%{_datadir}/%{name}/patch2mail.xsl
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{__install} -m 0755 patch2mail %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
|
|
|
|
%if 0%{?suse_version} < 1110
|
|
|
|
%{__install} -m 0755 patch2mail_11.0 %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1100
|
|
|
|
%{__install} -m 0755 patch2mail_10.3 %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
|
|
|
|
%endif
|
|
|
|
%{__install} -m 0644 patch2mail.sysconfig %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.patch2mail
|
|
|
|
|
|
|
|
echo ==== Buildroot: %{buildroot} ====
|
|
|
|
find %{buildroot}
|
|
|
|
echo ================================
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -n patch2mail}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/cron.daily/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.patch2mail
|
2010-11-23 21:59:30 +01:00
|
|
|
%doc README COPYING
|
2010-11-15 14:13:48 +01:00
|
|
|
|
|
|
|
%changelog
|