From 719ed3f2035a8f290899cf7b2d85b3c9e5fedb9e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 23 Jan 2017 11:15:53 +0100 Subject: phinx: 0.6.6 --- makesrc.sh | 28 ++++++++++++++++++++++++++++ phinx.spec | 12 ++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) create mode 100755 makesrc.sh diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..87d223d --- /dev/null +++ b/makesrc.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +NAME=$(basename $PWD) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) +PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec) +VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) +COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) +SHORT=${COMMIT:0:7} + +echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" + +echo "Cloning..." +rm -rf $PROJECT-$COMMIT +git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + +echo "Getting commit..." +pushd $PROJECT-$COMMIT +git checkout $COMMIT +cp composer.json ../composer.json +popd + +echo "Archiving..." +tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT + +echo "Cleaning..." +rm -rf $PROJECT-$COMMIT + +echo "Done." diff --git a/phinx.spec b/phinx.spec index 078086b..b8f85dc 100644 --- a/phinx.spec +++ b/phinx.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 6943cb4bb78bf9d3964967a032220b7c793b97b7 +%global gh_commit cc97b79f62c2180caba0be1d3744a335a296a678 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner robmorgan #global gh_date 20150820 @@ -20,16 +20,16 @@ %endif Name: %{gh_project} -Version: 0.6.5 +Version: 0.6.6 Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist} Summary: Manage the database migrations for your PHP app Group: Development/Libraries License: MIT URL: https://phinx.org -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{?gh_short}.tar.gz - +Source0: %{name}-%{version}-%{?gh_short}.tgz Source1: %{name}-autoload.php +Source2: makesrc.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -167,6 +167,10 @@ rm -rf %{buildroot} %changelog +* Mon Jan 23 2017 Remi Collet - 0.6.6-1 +- update to 0.6.6 +- use a git snashop to retrieve test suite + * Thu Oct 27 2016 Remi Collet - 0.6.5-1 - update to 0.6.5 - switch from symfony/class-loader to fedora/autoloader -- cgit