Skip to content

Commit 24a476b

Browse files
Stew Benedictmwichmann
authored andcommitted
set %_unpackaged_files_terminate_build 1 in rpmmacros
look for and delete .pyc/.pyo files in RPM_BUILD_ROOT if generated (bug 2509)
1 parent 947c2b0 commit 24a476b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

scripts/package/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# XXX a specfile from this info, but not yet: for now keep in sync
33
PACKAGE=lsb-appchk-python
44
VERSION=4.0.0
5-
RELEASE=3
5+
RELEASE=4
66
# default version we will test against - change as needed
77
LSB_VERSION=4.0
88

scripts/package/lsb-appchk-python.spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ done
6464
install -d ${RPM_BUILD_ROOT}%{basedir}/man/man1
6565
cp doc/lsbappchk.py.1 ${RPM_BUILD_ROOT}%{basedir}/man/man1
6666

67+
# bug 2509 - unpackaged .pyc/.pyo files on some build platforms
68+
find ${RPM_BUILD_ROOT}%{basedir} -name '*.pyc' | xargs rm -f
69+
find ${RPM_BUILD_ROOT}%{basedir} -name '*.pyo' | xargs rm -f
70+
6771
#==================================================
6872
%clean
6973
if [ ! -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]; then

scripts/package/rpmmacros

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Should unpackaged files in a build root terminate a build?
44
#
55
# 0 for legacy compatibility.
6-
%_unpackaged_files_terminate_build 0
6+
%_unpackaged_files_terminate_build 1
77

88
# Should missing %doc files in the build directory terminate a build?
99
#

0 commit comments

Comments
 (0)