Hello community, here is the log from the commit of package python-rtslib for openSUSE:Factory checked in at 2015-03-01 14:47:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rtslib (Old) and /work/SRC/openSUSE:Factory/.python-rtslib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-rtslib" Changes: -------- --- /work/SRC/openSUSE:Factory/python-rtslib/python-rtslib.changes 2014-08-16 15:38:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-rtslib.new/python-rtslib.changes 2015-03-01 14:47:16.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Feb 27 10:52:10 UTC 2015 - olaf@aepfle.de + +- Use /var/lib/target in SLE11 to pass old FHS checks + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rtslib.spec ++++++ --- /var/tmp/diff_new_pack.a4n1Ql/_old 2015-03-01 14:47:17.000000000 +0100 +++ /var/tmp/diff_new_pack.a4n1Ql/_new 2015-03-01 14:47:17.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-rtslib # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -79,8 +79,12 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%if 0%{?suse_version} > 1130 || 0%{?suse_version} == 0 +%if 0%{?suse_version} < 1130 +# Workaround for FHS check +%define _vardir /var/lib/target +%else %define _vardir /var/target +%endif install -vd -m 755 $RPM_BUILD_ROOT%{_vardir} install -vd -m 755 $RPM_BUILD_ROOT%{_vardir}/pr @@ -89,13 +93,22 @@ install -v -m 644 specs/*.spec $RPM_BUILD_ROOT%{_vardir}/fabric/ install -vd -m 755 $RPM_BUILD_ROOT%{_vardir}/policy install -v -m 644 policy/*.lio $RPM_BUILD_ROOT%{_vardir}/policy/ + +%if 0%{?suse_version} < 1130 +%post +if test ! -e /var/target +then + ln -sfvn lib/target /var/target +fi + +%postun +rm -fv /var/target %endif %files %defattr(-,root,root,-) %doc README.md COPYING %{python_sitelib}/* -%if 0%{?suse_version} > 1130 || 0%{?suse_version} == 0 %dir %{_vardir} %dir %{_vardir}/pr %dir %{_vardir}/alua @@ -103,6 +116,5 @@ %{_vardir}/fabric/* %dir %{_vardir}/policy %{_vardir}/policy/* -%endif %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org