[gitflow] Initial import (#835657)

Ralph Bean ralph at fedoraproject.org
Fri Jul 27 18:06:54 UTC 2012


commit 5d40d9a7bbb0322012954d1e8ccdca0c57a4b051
Author: Ralph Bean <rbean at redhat.com>
Date:   Fri Jul 27 14:06:45 2012 -0400

    Initial import (#835657)

 .gitignore                            |    1 +
 gitflow-Appropriate-GITFLOW_DIR.patch |   27 +++++++++++
 gitflow.spec                          |   81 +++++++++++++++++++++++++++++++++
 sources                               |    1 +
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1823ee3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gitflow-0.4.2.20120723git53e9c76.tar.gz
diff --git a/gitflow-Appropriate-GITFLOW_DIR.patch b/gitflow-Appropriate-GITFLOW_DIR.patch
new file mode 100644
index 0000000..d196d52
--- /dev/null
+++ b/gitflow-Appropriate-GITFLOW_DIR.patch
@@ -0,0 +1,27 @@
+From 5e8a9afc0e83326be48295e5fd20cffe73aa9b1e Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Tue, 26 Jun 2012 13:55:24 -0400
+Subject: [PATCH] Appropriate GITFLOW_DIR.
+
+---
+ git-flow |    4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/git-flow b/git-flow
+index 93e9f0f..7a7d67f 100755
+--- a/git-flow
++++ b/git-flow
+@@ -45,9 +45,7 @@ if [ "$DEBUG" = "yes" ]; then
+ 	set -x
+ fi
+ 
+-# The sed expression here replaces all backslashes by forward slashes.
+-# This helps our Windows users, while not bothering our Unix users.
+-export GITFLOW_DIR=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
++export GITFLOW_DIR="/usr/share/gitflow"
+ 
+ usage() {
+ 	echo "usage: git flow <subcommand>"
+-- 
+1.7.10.4
+
diff --git a/gitflow.spec b/gitflow.spec
new file mode 100644
index 0000000..2edb2a5
--- /dev/null
+++ b/gitflow.spec
@@ -0,0 +1,81 @@
+%global githash 53e9c76
+%global gitdate 20120723
+%global checkout %{gitdate}git%{githash}
+
+Name:       gitflow
+Version:    0.4.2.%{checkout}
+Release:    1%{?dist}
+Summary:    Extensions providing operations for V. Driessen's branching model
+
+Group:      Development/Languages
+License:    BSD
+URL:        https://github.com/nvie/gitflow
+# You can get this tarball by cloning the repository from github and checking
+# out revision %%{githash}
+Source0:    gitflow-0.4.2.%{checkout}.tar.gz
+# There is no upstream ticket for this patch, but instead just hardcodes the
+# directory we're installing to for Fedora.
+Patch0:     gitflow-Appropriate-GITFLOW_DIR.patch
+
+BuildArch:  noarch
+
+Requires:       shflags
+Requires:       git
+
+%description
+A collection of Git extensions to provide high-level repository operations
+for Vincent Driessen's [branching model](http://nvie.com/git-model "original
+blog post").
+
+For the best introduction to get started with `git flow`, please read Jeff
+Kreeftmeijer's blog post:
+
+  http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
+
+Or have a look at one of these screen casts:
+
+* [A short introduction to git-flow]
+  (http://vimeo.com/16018419) (by Mark Derricutt)
+* [On the path with git-flow]
+  (http://codesherpas.com/screencasts/on_the_path_gitflow.mov) (by Dave Bock)
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1 -b .gitflowdir
+
+%build
+# This section is empty because this package ccontains shell scripts
+# to be sourced: there's nothing to build
+
+%install
+mkdir -p %{buildroot}/%{_bindir}
+install -v -m 0755 git-flow %{buildroot}/%{_bindir}
+
+mkdir -p %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-init %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-feature %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-hotfix %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-release %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-support %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 git-flow-version %{buildroot}/%{_datadir}/%{name}
+install -v -m 0644 gitflow-common %{buildroot}/%{_datadir}/%{name}
+
+ln -s %{_datadir}/shflags/shflags %{buildroot}/%{_datadir}/%{name}/gitflow-shFlags
+
+%files
+%doc README.mdown LICENSE AUTHORS Changes.mdown
+%{_bindir}/git-flow*
+%{_datadir}/%{name}
+
+%changelog
+* Mon Jul 23 2012 Ralph Bean <rbean at redhat.com> - 0.4.2.20120723git53e9c76-1
+- New checkout from upstream git for review process.
+
+* Mon Jul 23 2012 Ralph Bean <rbean at redhat.com> - 0.4.2.20120626gitab7fda2-2
+- Changed License field to BSD
+- Dropped requirement on util-linux.
+- Added comments for Source0 and Patch0
+- Using macro for %%{gitdate} as well as %%{githash}
+
+* Tue Jun 26 2012 Ralph Bean <rbean at redhat.com> - 0.4.2.20120626gitab7fda2-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..ddbe0e6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+18327d1d778b7b448601195a441b8675  gitflow-0.4.2.20120723git53e9c76.tar.gz


More information about the scm-commits mailing list