Skip to content

Commit

Permalink
RPM: Exclude python byte compiling scripts from spec file
Browse files Browse the repository at this point in the history
Rather than specifying explicitly the scripts in __os_install_post which deal
with stripping the files, we only exclude the ones related to python. The path
to these scripts can be different depending on the OS.
  • Loading branch information
esindril committed Mar 18, 2015
1 parent 5d4bd9e commit 4b95e2a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packaging/rhel/xrootd.spec.in
Expand Up @@ -15,13 +15,11 @@
%endif
%endif

%global __os_install_post \
/usr/lib/rpm/redhat/brp-compress \
%{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \
/usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
/usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
/usr/lib/rpm/redhat/brp-java-repack-jars \
%{nil}
# Remove default rpm python bytecompiling scripts
%global __os_install_post \
%(echo '%{__os_install_post}' | \
sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g \
s!/usr/lib[^[:space:]]*/brp-python-hardlink[[:space:]].*$!!g')

#-------------------------------------------------------------------------------
# Package definitions
Expand Down

0 comments on commit 4b95e2a

Please sign in to comment.