Merge branch 'augensalat-master' (Updated RPM Spec)

Fixes #87
master
Martin Gondermann 11 years ago
commit 5a09d4abd4
  1. 5
      README.md
  2. 4
      bash-git-prompt.spec

@ -260,10 +260,10 @@ from scratch by following this procedure:
* Run the following command to create a tarball:
````sh
VER1=$(git describe)
VER=$(git describe)
# replace dash with underscore to work around
# rpmbuild does not allow dash in version string
VER=${VER1//\-/_}
VER=${VER//\-/_}
git archive \
--format tar \
--prefix=bash-git-prompt-${VER}/ \
@ -272,6 +272,7 @@ from scratch by following this procedure:
*.py \
*.fish \
README.md \
themes \
> bash-git-prompt-${VER}.tar
mkdir -p /tmp/bash-git-prompt-${VER}
sed "s/Version:.*/Version: ${VER}/" \

@ -34,6 +34,9 @@ install -pm 755 *.sh %{buildroot}%{_datadir}/%{name}
install -pm 755 *.py %{buildroot}%{_datadir}/%{name}
install -pm 755 *.fish %{buildroot}%{_datadir}/%{name}
install -pm 644 README.md %{buildroot}%{_datadir}/%{name}
install -d 755 %{buildroot}%{_datadir}/%{name}/themes
install -pm 644 themes/*.bgptheme %{buildroot}%{_datadir}/%{name}/themes
install -pm 644 themes/*.bgptemplate %{buildroot}%{_datadir}/%{name}/themes
# never include compiled Python program
rm -fr %{buildroot}%{_datadir}/%{name}/*.pyo
@ -57,6 +60,7 @@ if [ -f %{_datadir}/%{name}/gitprompt.sh ]; then
# Set config variables first
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_THEME=Default
source %{_datadir}/%{name}/gitprompt.sh
fi
%{END_TOKEN}

Loading…
Cancel
Save