rpm-build/scripts/Makefile.am
Arseny Maslennikov 76fa8b1172 Rename find-package to solve misconflict with rpm
It is not that easy to ship find-package as part of rpm-build.
We have to drop find-package from the filelist of rpm as well. For this
change to enter Sisyphus, both rpm-build and rpm have to be changed and
rebuilt in their own base build chroots.

If rpm-build is built to include find-package first, rpm is
uninstallable in the base chroot due to a misconflict, so it cannot be
rebuilt.
If rpm is built to exclude find-package first, it disappears from the
base chroot altogether, making rpm-build break, so no
package can be built as well.
2024-03-04 20:36:26 +03:00

99 lines
3.9 KiB
Makefile

# Makefile for rpm scripts.
AUTOMAKE_OPTIONS = 1.4 foreign
EXTRA_DIST = \
posttrans-filetriggers 0ldconfig.filetrigger \
debuginfo.req debuginfo.req.files debuginfo.prov debuginfo.prov.files \
functions .provides.sh \
find-debuginfo-files process-debuginfo process-lto \
find-scriptlet-requires brp-sign-kmodules \
brp-adjust_libraries brp-alt \
brp-check_contents brp-cleanup brp-compress brp-debuginfo \
brp-fix-perms brp-fixup brp-strip-lto \
brp-verify_elf brp-verify-info \
brp-verify-unit \
compress_files \
cpp.req cpp.req.files \
find-lang \
rpmb-find-package \
fixup-binconfig fixup-pkgconfig fixup-libtool fixup-libraries \
fixup-desktop fixup-desktop.awk \
files.req files.req.files 0common-files.req.list \
is_elf_so_executable \
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
pam.req pam.req.files pam.prov pam.prov.files \
percolate \
pkgconfig.req pkgconfiglib.req pkgconfig.req.files \
provided_symbols \
rpmlib.req rpmlib.req.files \
rpm2cpio.sh \
shebang.req shebang.req.files \
shell.req shell.req.files shell.prov shell.prov.files \
static.req static.req.files \
symlinks.req symlinks.req.files \
systemd-services.req systemd-services.req.files \
tmpdir.sh \
install strip \
verify-elf
installprefix = $(DESTDIR)
all:
configdir = ${prefix}/lib/rpm
libexecdir = ${prefix}/libexec
config_DATA = 0common-files.req.list # .provides.sh
config_SCRIPTS = \
debuginfo.req debuginfo.req.files debuginfo.prov debuginfo.prov.files \
find-debuginfo-files process-debuginfo process-lto \
find-scriptlet-requires \
brp-alt \
compress_files \
cpp.req cpp.req.files \
find-lang \
rpmb-find-package \
fixup-binconfig fixup-pkgconfig fixup-libtool fixup-libraries \
fixup-gnuconfig fixup-desktop fixup-desktop.awk \
files.req files.req.files \
is_elf_so_executable \
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
pam.req pam.req.files pam.prov pam.prov.files \
pkgconfig.req pkgconfiglib.req pkgconfig.req.files \
percolate \
provided_symbols \
rpmlib.req rpmlib.req.files \
rpm2cpio.sh \
shebang.req shebang.req.files \
shell.req shell.req.files shell.prov shell.prov.files \
static.req static.req.files \
symlinks.req symlinks.req.files \
systemd-services.req systemd-services.req.files \
tmpdir.sh \
verify-elf \
rpmb-functions \
# 0ldconfig.filetrigger posttrans-filetriggers
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(configdir)/brp.d
$(mkinstalldirs) $(DESTDIR)$(libexecdir)/rpm-build
$(INSTALL) -m755 brp-cleanup $(DESTDIR)$(configdir)/brp.d/008-cleanup.brp
$(INSTALL) -m755 brp-fix-perms $(DESTDIR)$(configdir)/brp.d/016-fix-perms.brp
$(INSTALL) -m755 brp-fixup $(DESTDIR)$(configdir)/brp.d/024-fixup.brp
$(INSTALL) -m755 brp-check_contents $(DESTDIR)$(configdir)/brp.d/028-check_contents.brp
$(INSTALL) -m755 brp-compress $(DESTDIR)$(configdir)/brp.d/032-compress.brp
$(INSTALL) -m755 brp-verify-info $(DESTDIR)$(configdir)/brp.d/040-verify-info.brp
$(INSTALL) -m755 brp-verify-unit $(DESTDIR)$(configdir)/brp.d/044-verify-unit.brp
$(INSTALL) -m755 brp-adjust_libraries $(DESTDIR)$(configdir)/brp.d/048-adjust_libraries.brp
$(INSTALL) -m755 brp-debuginfo $(DESTDIR)$(configdir)/brp.d/056-debuginfo.brp
$(INSTALL) -m755 brp-sign-kmodules $(DESTDIR)$(configdir)/brp.d/057-brp-sign-kmodules.brp
$(INSTALL) -m755 brp-strip-lto $(DESTDIR)$(configdir)/brp.d/061-brp-strip-lto.brp
$(INSTALL) -m755 process-debuginfo $(DESTDIR)$(configdir)/process-debuginfo
$(INSTALL) -m755 process-lto $(DESTDIR)$(configdir)/process-lto
$(INSTALL) -m755 brp-verify_elf $(DESTDIR)$(configdir)/brp.d/064-verify_elf.brp
$(INSTALL) -m755 install $(DESTDIR)$(libexecdir)/rpm-build/install
$(INSTALL) -m755 strip $(DESTDIR)$(libexecdir)/rpm-build/strip
@LN_S@ pkgconfig.req $(DESTDIR)$(configdir)/pkgconfig.prov
@LN_S@ pkgconfig.req.files $(DESTDIR)$(configdir)/pkgconfig.prov.files
@LN_S@ pkgconfig.req.files $(DESTDIR)$(configdir)/pkgconfiglib.req.files