Add date and git tag (if built from git checkout) to rpm file name
This commit is contained in:
parent
5204d9f184
commit
429be12d46
17
Makefile.am
17
Makefile.am
|
@ -4,9 +4,24 @@ ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
SUBDIRS = api epplets
|
SUBDIRS = api epplets
|
||||||
|
|
||||||
#EXTRA_DIST =
|
EXTRA_DIST = $(PACKAGE).spec.in
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = \
|
MAINTAINERCLEANFILES = \
|
||||||
Makefile.in aclocal.m4 compile config.* configure depcomp \
|
Makefile.in aclocal.m4 compile config.* configure depcomp \
|
||||||
install-sh ltmain.sh missing */Makefile.in
|
install-sh ltmain.sh missing */Makefile.in
|
||||||
|
|
||||||
|
CLEANFILES = $(PACKAGE).spec
|
||||||
|
|
||||||
|
if SRC_IS_GIT
|
||||||
|
RPM_RELEASE=`echo -n "1.%(date '+%y%m%d').git"; git rev-parse --short=8 HEAD`
|
||||||
|
else
|
||||||
|
RPM_RELEASE=`echo -n "1.%(date '+%y%m%d')"`
|
||||||
|
endif
|
||||||
|
|
||||||
|
dist-hook: $(top_builddir)/$(PACKAGE).spec
|
||||||
|
|
||||||
|
$(top_builddir)/$(PACKAGE).spec: FORCE
|
||||||
|
sed "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPM_RELEASE)/" \
|
||||||
|
$(top_srcdir)/$(PACKAGE).spec.in > $@
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
|
@ -7,6 +7,8 @@ AC_INIT([e16-epplets],[pkg_version],[enlightenment-devel@lists.sourceforge.net])
|
||||||
AM_INIT_AUTOMAKE([foreign dist-xz])
|
AM_INIT_AUTOMAKE([foreign dist-xz])
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(SRC_IS_GIT, test -d $srcdir/.git)
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_SUBST(E_RPM_REVISION, [rpm_revision])
|
AC_SUBST(E_RPM_REVISION, [rpm_revision])
|
||||||
|
@ -142,7 +144,6 @@ Makefile
|
||||||
api/Makefile
|
api/Makefile
|
||||||
epplets/Makefile
|
epplets/Makefile
|
||||||
api/epplet.h
|
api/epplet.h
|
||||||
e16-epplets.spec
|
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Summary: Enlightenment Epplets
|
Summary: Enlightenment Epplets
|
||||||
Name: @PACKAGE@
|
Name: @PACKAGE@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: @E_RPM_REVISION@%{?_vendorsuffix:.%{_vendorsuffix}}
|
Release: @RPM_RELEASE@%{?_vendorsuffix:.%{_vendorsuffix}}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
URL: http://www.enlightenment.org/
|
URL: http://www.enlightenment.org/
|
||||||
|
|
Loading…
Reference in New Issue