File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
to_ver () {
4
4
VN=$1
5
- # drop leading 'ndctl- ' out of the version so its a pure number
6
- if [ ${VN: 0: 6 } = " ndctl- " ]; then
7
- VN=${VN: 6 }
5
+ # drop leading 'v ' out of the version so its a pure number
6
+ if [ ${VN: 0: 1 } = " v " ]; then
7
+ VN=${VN: 1 }
8
8
fi
9
9
echo $VN
10
10
}
29
29
if test -f version; then
30
30
VN=$( cat version) || VN=" $DEF_VER "
31
31
elif test -d ${GIT_DIR:- .git} -o -f .git &&
32
- VN=$( git describe --match " ndctl- [0-9]*" --abbrev=7 HEAD 2> /dev/null) &&
32
+ VN=$( git describe --match " v [0-9]*" --abbrev=7 HEAD 2> /dev/null) &&
33
33
case " $VN " in
34
34
* $LF * ) (exit 1) ;;
35
- ndctl- [0-9]* )
35
+ v [0-9]* )
36
36
VN=" $( dirty $VN ) "
37
37
esac ; then
38
38
VN=$( echo " $VN " | sed -e ' s/-/./g' ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
5
5
License: GPLv2
6
6
Group: System Environment/Base
7
7
Url: https://github.com/pmem/ndctl
8
- Source0: https://github.com/pmem/ndctl /archive/ndctl -%{version}.tar.gz
8
+ Source0: https://github.com/pmem/%{name} /archive/v%{version}.tar.gz#/%{name} -%{version}.tar.gz
9
9
10
10
BuildRequires: autoconf
11
11
BuildRequires: asciidoc
You can’t perform that action at this time.
0 commit comments