[Rpm-maint] [rpm-software-management/rpm] RFC: Removing unneeded internal macros (such as %__ranlib) (#1211)
Igor Raits
notifications at github.com
Sun May 10 05:42:08 UTC 2020
Basically these macros do not seem to belong to RPM at all:
```diff
--- a/macros.in
+++ b/macros.in
@@ -26,35 +26,18 @@
%__awk @AWK@
%__bzip2 @__BZIP2@
%__cat @__CAT@
-%__chgrp @__CHGRP@
%__chmod @__CHMOD@
-%__chown @__CHOWN@
-%__cp @__CP@
-%__cpio @__CPIO@
-%__file @__FILE@
%__gpg @__GPG@
-%__grep @__GREP@
%__gzip @__GZIP@
-%__id @__ID@
-%__id_u %{__id} -u
%__install @__INSTALL@
-%__ln_s @LN_S@
%__lrzip @__LRZIP@
%__lzip @__LZIP@
-# Deprecated, use %__xz instead.
-%__lzma %__xz --format=lzma
%__xz @__XZ@
%__make @__MAKE@
%__mkdir @__MKDIR@
%__mkdir_p @__MKDIR_P@
-%__mv @__MV@
%__patch @__PATCH@
-%__restorecon @__RESTORECON@
%__rm @__RM@
-%__rsh @__RSH@
-%__sed @__SED@
-%__semodule @__SEMODULE@
-%__ssh @__SSH@
%__tar @__TAR@
%__unzip @__UNZIP@
%__zstd @__ZSTD@
@@ -67,17 +50,7 @@
#==============================================================================
# ---- Build system path macros.
#
-%__ar @AR@
-%__as @AS@
-%__cc @__CC@
-%__cpp @CPP@
-%__cxx @CXX@
-%__ld @__LD@
-%__nm @__NM@
-%__objcopy @__OBJCOPY@
%__objdump @__OBJDUMP@
-%__ranlib @RANLIB@
-%__remsh %{__rsh}
%__strip @__STRIP@
#==============================================================================
@@ -149,9 +122,6 @@
# The interpreter used for build scriptlets.
%_buildshell /bin/sh
-# The path to the bzip2 executable (legacy, use %{__bzip2} instead).
-%_bzip2bin %{__bzip2}
-
# The location of the rpm database file(s).
%_dbpath %{_var}/lib/rpm
@@ -227,9 +197,6 @@ package or when debugging this package.\
%__global_requires_exclude_from %{?_docdir:%{_docdir}}
%__global_provides_exclude_from %{?_docdir:%{_docdir}}
-# The path to the gzip executable (legacy, use %{__gzip} instead).
-%_gzipbin %{__gzip}
-
# The Unix time of the latest kept changelog entry in binary packages.
# Any older entry is not packaged in binary packages.
%_changelog_trimtime 0
@@ -278,9 +245,6 @@ package or when debugging this package.\
# Path to top of build area.
%_topdir %{getenv:HOME}/rpmbuild
-# The path to the unzip executable (legacy, use %{__unzip} instead).
-%_unzipbin %{__unzip}
-
#==============================================================================
# ---- Optional rpmrc macros.
# Macros that are initialized as a side effect of rpmrc and/or spec
@@ -343,16 +307,6 @@ package or when debugging this package.\
#
%_install_langs all
-# The value of CLASSPATH in build scriptlets (iff configured).
-#
-#%_javaclasspath all
-
-# Import packaging conventions from jpackage.org (prefixed with _
-# to avoid name collisions).
-#
-%_javadir %{_datadir}/java
-%_javadocdir %{_datadir}/javadoc
-
# Set ModularityLabel: for packages being build
#
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1211#issuecomment-626277055
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200509/8c799afe/attachment.html>
More information about the Rpm-maint
mailing list