Packages: fixed changelog generation for rpms.

This commit is contained in:
Andrei Belov
2018-03-01 23:03:03 +03:00
parent 49c58909ad
commit 1f06ccb6d8
9 changed files with 10 additions and 2 deletions

View File

@@ -151,8 +151,8 @@ rpmbuild/SPECS/unit-%.spec: unit.module.spec.in ../../docs/changes.xml | rpmbuil
-e "s#%%MODULE_POST%%#$${post}#g" \
> $@.tmp ; \
}
cd ../../docs && make ../build/unit-$*.rpm-changelog
cat ../../build/unit-$*.rpm-changelog | sed -e \
cd ../../docs && make ../build/unit-$(MODULE_SUFFIX_$*).rpm-changelog
cat ../../build/unit-$(MODULE_SUFFIX_$*).rpm-changelog | sed -e \
"s/> - $(DEFAULT_VERSION)-$(DEFAULT_RELEASE)/> - $(MODULE_VERSION_$*)-$(MODULE_RELEASE_$*)/" \
>> $@.tmp
mv $@.tmp $@