File: make-srpm.sh

package info (click to toggle)
authselect 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,384 kB
  • sloc: ansic: 7,757; sh: 477; makefile: 352; python: 164; xml: 24
file content (18 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Make source RPM.
#

set -x

builddir=`mktemp -d -p .`
outdir=`realpath ${1:-$srcdir}`
trap "rm -fr $builddir" EXIT

autoreconf -if
pushd "$builddir"
../configure --enable-silent-rules
make srpm
mv rpmbuild/SRPMS/* "$outdir"
popd

exit 0