forked from memcached/memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate the memcached.spec along with the version number.
- Loading branch information
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ doc/protocol-binary.txt | |
/testapp | ||
/timedrun | ||
/doc/doxy | ||
/memcached.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Name: memcached | ||
Version: 1.3.2 | ||
Version: @VERSION@ | ||
Release: 1%{?dist} | ||
Summary: High Performance, Distributed Memory Object Cache | ||
|
||
|
@@ -93,6 +93,9 @@ exit 0 | |
|
||
|
||
%changelog | ||
* Sat Aug 29 2009 Dustin Sallings <[email protected]> - 1.4.1-1 | ||
- Autogenerate the version number from tags. | ||
|
||
* Wed Jul 4 2007 Paul Lindner <[email protected]> - 1.2.2-5 | ||
- Use /var/run/memcached/ directory to hold PID file | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if git describe > version.num.tmp | ||
if git describe | sed s/-/_/g > version.num.tmp | ||
then | ||
mv version.num.tmp version.num | ||
echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.num`])" \ | ||
> version.m4 | ||
sed s/@VERSION@/`cat version.num`/ < memcached.spec.in > memcached.spec | ||
else | ||
rm version.num.tmp | ||
fi |