SHA256
3
0
forked from pool/which

Accepting request 400449 from home:scarabeus_iv:branches:Base:System

- Move installinfo scriptlet to preun so it won't fail

OBS-URL: https://build.opensuse.org/request/show/400449
OBS-URL: https://build.opensuse.org/package/show/Base:System/which?expand=0&rev=7
This commit is contained in:
Marcus Meissner 2016-06-08 11:58:17 +00:00 committed by Git OBS Bridge
parent c61f3d6f46
commit 204fed047c
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 7 12:16:07 UTC 2016 - tchvatal@suse.com
- Move installinfo scriptlet to preun so it won't fail
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 9 12:31:06 UTC 2015 - mpluskal@suse.com Wed Sep 9 12:31:06 UTC 2015 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package which # spec file for package which
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -24,7 +24,7 @@ License: GPL-3.0+
Group: System/Base Group: System/Base
Url: https://savannah.gnu.org/projects/which/ Url: https://savannah.gnu.org/projects/which/
Source0: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz Source0: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
Requires(post): %{install_info_prereq} Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq} Requires(preun): %{install_info_prereq}
Provides: util-linux:%{_bindir}/which Provides: util-linux:%{_bindir}/which
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -41,12 +41,12 @@ the specified program is in your PATH.
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} make %{?_smp_mflags} DESTDIR=%{buildroot} install
%post %post
%install_info --info-dir="%{_infodir}" "%{_infodir}/which.info.gz" %install_info --info-dir="%{_infodir}" "%{_infodir}/which.info.gz"
%postun %preun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/which.info.gz" %install_info_delete --info-dir="%{_infodir}" "%{_infodir}/which.info.gz"
%files %files