From 3bdb67b32a967accc2aeca52f76c4ceb8e2f7a6522f0dc136d27301e3a14eb2c Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar Date: Mon, 15 Nov 2010 13:13:48 +0000 Subject: [PATCH] Accepting request 53023 from home:cboltz OBS-URL: https://build.opensuse.org/request/show/53023 OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/patch2mail?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + patch2mail-0.9.5.tar.bz2 | 3 ++ patch2mail.changes | 50 +++++++++++++++++++++++++ patch2mail.spec | 79 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 156 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 patch2mail-0.9.5.tar.bz2 create mode 100644 patch2mail.changes create mode 100644 patch2mail.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/patch2mail-0.9.5.tar.bz2 b/patch2mail-0.9.5.tar.bz2 new file mode 100644 index 0000000..561d969 --- /dev/null +++ b/patch2mail-0.9.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24547a97743aab2b39146decb765e58d5503939fdb6b765d897dc2dc37166d8c +size 3885 diff --git a/patch2mail.changes b/patch2mail.changes new file mode 100644 index 0000000..0969880 --- /dev/null +++ b/patch2mail.changes @@ -0,0 +1,50 @@ +------------------------------------------------------------------- +Mon Nov 15 10:45:33 UTC 2010 - opensuse@cboltz.de + +- spec file cleanup (using spec-cleaner) + +------------------------------------------------------------------- +Thu Aug 20 17:18:36 UTC 2009 - opensuse@cboltz.de + +- spec file improvements (better Requires:) (by AdrianS) + +------------------------------------------------------------------- +Sun Apr 12 19:07:00 CET 2009 - opensuse@cboltz.de + +- version 0.9.5 + +------------------------------------------------------------------- +Wed Apr 8 17:28:39 CEST 2009 - anschneider@exsuse.de + +- added support for sysconfig +- use install instead of cp and mkdir + +------------------------------------------------------------------- +Sun Dec 14 16:25:00 CET 2008 - opensuse@cboltz.de +- added %dir for datadir to avoid "file listed twice" warning + +------------------------------------------------------------------- +Tue Dec 09 13:24:00 CET 2008 - opensuse@cboltz.de +- some small output fixes +- enforce LANG=C to avoid charset problems in zypper output +- version 0.9.4 + +------------------------------------------------------------------- +Fri Nov 21 20:45:00 CEST 2008 - opensuse@cboltz.de + +- update for openSUSE 11.1 (zypper needs "lu -t patch" now) +- version 0.9.3 + +------------------------------------------------------------------- +Sun Jul 20 18:20:00 CEST 2008 - opensuse@cboltz.de + +- update for openSUSE 11.0 (scripts for older versions still included) +- require cron to ensure the script is running daily +- version 0.9.2 + +------------------------------------------------------------------- +Mon Feb 18 23:02:26 CEST 2008 - opensuse@cboltz.de + +- Initial SVN commit of patch2mail +- SVN: http://svn.opensuse.org/svn/zypp/trunk/tools/patch2mail +- version 0.9.1 diff --git a/patch2mail.spec b/patch2mail.spec new file mode 100644 index 0000000..2148b54 --- /dev/null +++ b/patch2mail.spec @@ -0,0 +1,79 @@ +# +Name: patch2mail +Version: 0.9.5 +Release: 1 +# +License: GPL +# +Summary: Patch notification via mail +#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 +# bash mktemp mail grep zypper coreutils net-tools cron libxslt +# 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 +if any patches are available + +%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 +%doc README + +%changelog