Fixed spec-file and update-script to use the checkout-date and not the build-date in the rpm-revision.

merge-requests/218/head
Jens Lody 9 years ago
parent ff60010f59
commit 0f6ae2fe12
  1. 3
      gnome-shell-extension-openweather.spec
  2. 9
      update_revision.sh

@ -2,11 +2,12 @@
%global uuid openweather-extension@jenslody.de
%global github jenslody-gnome-shell-extension-openweather
%global checkout git%{git}
%global checkout_date 20150917
Name: gnome-shell-extension-openweather
Version: 1
Release: 0.0.%(date +%Y%m%d)%{checkout}%{?dist}
Release: 0.0.%{checkout_date}%{checkout}%{?dist}
Summary: Display weather information from many locations in the world
Group: User Interface/Desktops

@ -66,8 +66,13 @@ COMMIT=`git log -1 --pretty=format:"%h"`
echo "Found revision: '${COMMIT}'"
mv ${SPEC_FILE} ${SPEC_FILE}.tmp
sed "1 s/%global git .*/%global git $COMMIT/" < ${SPEC_FILE}.tmp > ${SPEC_FILE}
DATE=`date +%Y%m%d`
echo "Use checkout-date: '${DATE}'"
cp ${SPEC_FILE} ${SPEC_FILE}.tmp
sed -i "s/%global git .*/%global git $COMMIT/" ${SPEC_FILE}
sed -i "s/%global checkout_date .*/%global checkout_date $DATE/" ${SPEC_FILE}
rpmdev-bumpspec --comment="Fresh git checkout." --userstring="Jens Lody <fedora@jenslody.de>" ${SPEC_FILE}

Loading…
Cancel
Save