SHA256
1
0
forked from pool/glibc
glibc/pre_checkin.sh
Andreas Schwab 840aeb3750 Accepting request 434696 from home:Andreas_Schwab:Factory
- cpuid-assertion.patch: Don't assert on older Intel CPUs (BZ #20647)

- glibc-2.3.3-nscd-db-path.diff: Move persistent nscd databases to
  /var/lib/nscd
- glibc-2.3.90-langpackdir.diff: simplify

OBS-URL: https://build.opensuse.org/request/show/434696
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=447
2016-10-13 09:25:07 +00:00

30 lines
883 B
Bash

#!/bin/bash
# This script is called automatically during autobuild checkin.
sed -e 's/^Name:.*glibc/&-testsuite/' glibc.spec > glibc-testsuite.spec
cp glibc.changes glibc-testsuite.changes
awk '/^Name:/{ $0 = $0 "-utils" }
/UTILS-SUMMARY-BEGIN/ {
ignore = 1
print "\
Summary: Development utilities from GNU C library\n\
License: LGPL-2.1+\n\
Group: Development/Languages/C and C++"
}
/^BuildRequires/ { ignore = 0 }
/^%description$/ {
ignore = 1
print "\
%description\n\
The glibc-utils package contains mtrace, a memory leak tracer and\n\
xtrace, a function call tracer which can be helpful during program\n\
debugging.\n\
\n\
If you are unsure if you need this, don'\''t install this package.\n"
}
/^%package/ { ignore = 0}
!ignore { print }' glibc.spec > glibc-utils.spec
cp glibc.changes glibc-utils.changes
osc service localrun format_spec_file