Ludwig Nussel 2021-03-01 15:32:13 +00:00 committed by Git OBS Bridge
parent 101f37580f
commit 5dda0aec6f

View File

@ -1,7 +1,7 @@
#
# spec file for package compat-usrmerge
#
# Copyright (c) 2020 SUSE LLC, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,17 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define nvr %{name}-%{version}-%{release}
Name: compat-usrmerge
Version: 84.87
Release: 0
Summary: Compat file triggers for usrmerge
Summary: UsrMerge related scripts.
License: MIT
Url: https://www.opensuse.org/
URL: https://en.opensuse.org/openSUSE:Usr_merge
Source0: usrmerge.lua
Source1: usrmerge_files.lua
Source2: usrmergecheck.c
@ -34,9 +35,11 @@ BuildRequires: gcc
BuildRequires: pkgconfig(rpm)
%description
Scripts and data files related to UsrMerge
(https://en.opensuse.org/openSUSE:Usr_merge). Normally not needd.
%package tools
Summary: usrmerge tools
Summary: UsrMerge tools
# have to turn requires off this off to avoid pulling in stuff
# before filessytem.
# xmv has very minimal glibc requirements and could probably be
@ -45,12 +48,17 @@ Summary: usrmerge tools
AutoReq: 0
%description tools
Tools related to UsrMerge to check the state of the system and to
convert an existing system to UsrMerge.
%package build
Summary: usrmerge build tools
Summary: UsrMerge build tools.
Requires: lua
%description build
Build tools related to UsrMerge. This is required for rpmbuild to
generate proper provides tags for packages that used to have
binaries in /(s)bin.
%prep
%setup -qcT
@ -147,7 +155,6 @@ while file do
end
io.flush()
%filetriggerpostun -p <lua> -- %{_sbindir} %{_bindir} %{_libdir}
-- the module is already gone if we get called for ourselves
if pcall(require, 'usrmerge') then
@ -162,7 +169,6 @@ if pcall(require, 'usrmerge') then
io.flush()
end
%filetriggerpostun -p <lua> -- /sbin /bin /%{_lib}
-- the module is already gone if we get called for ourselves
if pcall(require, 'usrmerge') then