Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
md5toc
Commits
8ba6217d
Commit
8ba6217d
authored
Jun 01, 2017
by
Anders Blomdell
Browse files
Corrected rpm building verion numering
parent
d3250ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8ba6217d
TARGET
=
md5toc
MD5TOC_VERSION
=
$(
shell
git describe |
sed
-e
's/^v//'
)
MD5TOC_VERSION
=
$(
shell
git describe |
sed
-e
's/^v//
;s/-/_/g
'
)
SOURCES
=
Makefile md5toc.c md5toc.spec config.h md5.c md5.h
CFLAGS
=
-Wall
-Werror
-I
.
-DMD5TOC_VERSION
=
'"
$(MD5TOC_VERSION)
"'
...
...
@@ -15,7 +15,8 @@ md5toc.tar: $(SOURCES)
tar
-cvf
$@
--transform
's|.*|md5toc/&|'
$^
md5toc.spec
:
md5toc.spec.template Makefile
sed
-e
's/__MD5TOC_VERSION__/
$(MD5TOC_VERSION)
/;s/-/_/g'
$<
>
$@
sed
-e
's/__MD5TOC_VERSION__/
$(MD5TOC_VERSION)
/'
$<
>
$@
echo
$
(
MD5TOC_VERSION:%-
=
%-
)
srpm
:
md5toc.spec md5toc.tar Makefile
rpmbuild
--define
"_topdir
$
$(pwd)
"
\
...
...
md5toc.spec.template
View file @
8ba6217d
...
...
@@ -5,7 +5,7 @@ Summary: A simple utility to create a TOC of a directory
License: GPLv3
Source0: http://control.lth.se/md5toc.tar
BuildRequires: libattr-devel
#
BuildRequires: libattr-devel
%description
A simple utility to create a TOC of a directory
...
...
@@ -14,7 +14,7 @@ A simple utility to create a TOC of a directory
%setup -q -n %{name}
%build
make
-D
MD5TOC_VERSION=
'"
__MD5TOC_VERSION__
"'
make MD5TOC_VERSION=__MD5TOC_VERSION__
file md5toc
%install
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment