Import changes made by BJW when building packages
[u/jw35/ucam-sms-send.git] / build_rpm.sh
... / ...
CommitLineData
1#!/bin/bash
2
3set -e
4
5VERSION=1.00
6
7mkdir -p build
8for d in BUILD RPMS SOURCES SPECS SRPMS; do mkdir -p build/${d}; done
9perl Makefile.PL
10rm Ucam-SMS-Send-${VERSION}.tar.gz
11make dist
12cp Ucam-SMS-Send-${VERSION}.tar.gz build/SOURCES
13cp perl-Ucam-SMS-Send.spec build/SPECS
14rpmbuild --define="_topdir `pwd`/build" -ba build/SPECS/perl-Ucam-SMS-Send.spec
15cp build/RPMS/noarch/perl-Ucam-SMS-Send-${VERSION}-*.noarch.rpm .
16cp build/SRPMS/perl-Ucam-SMS-Send-${VERSION}-*.src.rpm .
17#rm -rf build
18