summaryrefslogtreecommitdiffstats
path: root/build_nss_inside_mock.sh
blob: 5d3c6b104b57a7c919373fcfe207e2d7b2c7cd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Build package inside mock


# Ignore these warnings
#   Installing /builddir/build/RPMS
#   error: not an rpm package
#   error: /builddir/build/RPMS cannot be installed
cd /builddir/build/RPMS/

# build a client package and install all the produced rpm's
default="nss"
pkg=${pkg:-$default}

# build and install the nss packages
rpmbuild --rebuild /tmp/${pkg}-*.src.rpm
cd /builddir/build/RPMS
rpm --force -ihv *.rpm