File git-flow.spec of Package git-flow
#
# spec file for package git-flow
#
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%define snapshot git201202141310
%define shsnapshot git200905101804
%define shversion 1.0.3
Name: git-flow
Version: 0.4.1_%snapshot
Release: 0
Summary: Git extensions to provide high-level repository operations
Group: Development/Tools/Other
License: BSD-2-Clause
URL: https://github.com/nvie/gitflow
Source0: %name-%{version}.tar.bz2
Source1: shFlags-%{shversion}_%shsnapshot.tar.bz2
Source2: https://github.com/bobthecow/git-flow-completion/raw/master/git-flow-completion.bash
Source3: https://github.com/bobthecow/git-flow-completion/raw/master/git-flow-completion.zsh
Source4: README.markdown
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: git
Requires: bash-completion
%description
Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
%prep
%setup -n %name-%{version}
%setup -D -T -a 1 -c -n %name-%{version}
rmdir shFlags; ln -sf shFlags-%{shversion}_%shsnapshot shFlags
#not needed as we are not using it
# sed -i 's/usr\/local/usr/g' Makefile
cp %{S:2} .
cp %{S:3} .
cp %{S:4} .
%build
%install
EXEC_FILES=git-flow
SCRIPT_FILES="git-flow-init git-flow-feature git-flow-hotfix git-flow-release git-flow-support git-flow-version gitflow-common gitflow-shFlags"
install -v -d -m 0755 %buildroot%_bindir
install -v -d -m 0755 %buildroot/etc/bash_completion.d
for exec_file in $EXEC_FILES ; do
install -v -m 0755 "$exec_file" %buildroot%_bindir
done
for script_file in $SCRIPT_FILES ; do
install -v -m 0644 "$script_file" %buildroot%_bindir
done
install -v -m 0644 %{S:2} %buildroot/etc/bash_completion.d
%files
%defattr(-,root,root)
%{_bindir}/git-flow
%{_bindir}/git-flow-init
%{_bindir}/git-flow-feature
%{_bindir}/git-flow-hotfix
%{_bindir}/git-flow-release
%{_bindir}/git-flow-support
%{_bindir}/git-flow-version
%{_bindir}/gitflow-common
%{_bindir}/gitflow-shFlags
/etc/bash_completion.d/git-flow-completion.bash
%doc LICENSE AUTHORS README.markdown README.mdown Changes.mdown git-flow-completion.zsh
%changelog