Skip to content

Commit

Permalink
Merge branch 'augensalat-master' (Updated RPM Spec)
Browse files Browse the repository at this point in the history
Fixes #87
  • Loading branch information
magicmonty committed Oct 11, 2014
2 parents a4a7902 + ecb1fd9 commit 5a09d4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}/ \
Expand All @@ -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}/" \
Expand Down Expand Up @@ -317,4 +318,4 @@ I accept tips through [Gittip][tip] and [Flattr][flattr].
[license]:https://github.com/magicmonty/bash-git-prompt/tree/master/LICENSE.txt
[flattr]: https://flattr.com/submit/auto?user_id=magicmonty&url=https%3A%2F%2Fgithub.com%2Fmagicmonty%2Fbash-git-prompt
[homebrew]: http://brew.sh/
[upforgrabs]: https://github.com/magicmonty/bash-git-prompt/labels/up-for-grabs
[upforgrabs]: https://github.com/magicmonty/bash-git-prompt/labels/up-for-grabs
4 changes: 4 additions & 0 deletions bash-git-prompt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit 5a09d4a

Please sign in to comment.