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 # 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 # 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
@ -12,17 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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} %define nvr %{name}-%{version}-%{release}
Name: compat-usrmerge Name: compat-usrmerge
Version: 84.87 Version: 84.87
Release: 0 Release: 0
Summary: Compat file triggers for usrmerge Summary: UsrMerge related scripts.
License: MIT License: MIT
Url: https://www.opensuse.org/ URL: https://en.opensuse.org/openSUSE:Usr_merge
Source0: usrmerge.lua Source0: usrmerge.lua
Source1: usrmerge_files.lua Source1: usrmerge_files.lua
Source2: usrmergecheck.c Source2: usrmergecheck.c
@ -34,9 +35,11 @@ BuildRequires: gcc
BuildRequires: pkgconfig(rpm) BuildRequires: pkgconfig(rpm)
%description %description
Scripts and data files related to UsrMerge
(https://en.opensuse.org/openSUSE:Usr_merge). Normally not needd.
%package tools %package tools
Summary: usrmerge tools Summary: UsrMerge tools
# have to turn requires off this off to avoid pulling in stuff # have to turn requires off this off to avoid pulling in stuff
# before filessytem. # before filessytem.
# xmv has very minimal glibc requirements and could probably be # xmv has very minimal glibc requirements and could probably be
@ -45,12 +48,17 @@ Summary: usrmerge tools
AutoReq: 0 AutoReq: 0
%description tools %description tools
Tools related to UsrMerge to check the state of the system and to
convert an existing system to UsrMerge.
%package build %package build
Summary: usrmerge build tools Summary: UsrMerge build tools.
Requires: lua Requires: lua
%description build %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 %prep
%setup -qcT %setup -qcT
@ -147,7 +155,6 @@ while file do
end end
io.flush() io.flush()
%filetriggerpostun -p <lua> -- %{_sbindir} %{_bindir} %{_libdir} %filetriggerpostun -p <lua> -- %{_sbindir} %{_bindir} %{_libdir}
-- the module is already gone if we get called for ourselves -- the module is already gone if we get called for ourselves
if pcall(require, 'usrmerge') then if pcall(require, 'usrmerge') then
@ -162,7 +169,6 @@ if pcall(require, 'usrmerge') then
io.flush() io.flush()
end end
%filetriggerpostun -p <lua> -- /sbin /bin /%{_lib} %filetriggerpostun -p <lua> -- /sbin /bin /%{_lib}
-- the module is already gone if we get called for ourselves -- the module is already gone if we get called for ourselves
if pcall(require, 'usrmerge') then if pcall(require, 'usrmerge') then