diff options
author | Ira Cooper <ira@redhat.com> | 2016-07-22 11:19:40 -0400 |
---|---|---|
committer | Ira Cooper <ira@samba.org> | 2016-08-23 15:11:47 -0400 |
commit | d073076dfefda90143d710b5b3df07c07fdb8e84 (patch) | |
tree | 6301e2b3569f64f50ce222e1eb4f8481c67ede22 /make-dist | |
parent | d8a02b9f9ad63acfc89e88c4d49800c296d0f3a8 (diff) | |
download | ceph-d073076dfefda90143d710b5b3df07c07fdb8e84.tar.gz |
make-dist/ceph.spec.in: Fix srpm build breakage.
This allows the make-dist script to create a .spec file that
can actually use the tarball created to build srpms.
Tested on Fedora 24, using mock.
Signed-off-by: Ira Cooper <ira@redhat.com>
Diffstat (limited to 'make-dist')
-rwxr-xr-x | make-dist | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/make-dist b/make-dist index a70e2ce90ff..5e86eb7d069 100755 --- a/make-dist +++ b/make-dist @@ -37,10 +37,11 @@ src/make_version -g src/.git_version -c src/ceph_ver.h rpm_version=`echo $version | cut -d - -f 1-1` rpm_release=`echo $version | cut -d - -f 2- | sed 's/-/./'` + cat ceph.spec.in | \ sed "s/@VERSION@/$rpm_version/g" | \ - sed "s/@RPM_RELEASE@/$rpm_release/g" > ceph.spec - + sed "s/@RPM_RELEASE@/$rpm_release/g" | + sed "s/@TARBALL_BASENAME@/ceph-$version/g" > ceph.spec ln -s . $outfile tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/src/ceph_ver.h $outfile/ceph.spec tar --concatenate -f $outfile.both.tar $outfile.version.tar |