autofoo: Add git tag to rpm file name (if built from git checkout)
Same as e16 and imlib2. And a couple of spec file cleanups.
This commit is contained in:
parent
cbfdd0872b
commit
b8f6fce97d
24
Makefile.am
24
Makefile.am
|
@ -6,9 +6,9 @@ MAINTAINERCLEANFILES = aclocal.m4 config.* compile configure depcomp \
|
|||
install-sh missing \
|
||||
Makefile.in
|
||||
|
||||
CLEANFILES = e16-keyedit.desktop
|
||||
CLEANFILES = $(PACKAGE).spec e16-keyedit.desktop
|
||||
|
||||
EXTRA_DIST = e16-keyedit.desktop.in
|
||||
EXTRA_DIST = $(PACKAGE).spec.in e16-keyedit.desktop.in
|
||||
|
||||
bin_PROGRAMS = e16keyedit
|
||||
|
||||
|
@ -25,3 +25,23 @@ e16-keyedit.desktop: $(srcdir)/e16-keyedit.desktop.in Makefile
|
|||
|
||||
e16-keyedit.desktop:
|
||||
sed -e "s=@e16datadir@=${datadir}=" $(srcdir)/$@.in > $@
|
||||
|
||||
dist-hook: $(top_builddir)/$(PACKAGE).spec
|
||||
|
||||
RPR_DEV = `echo -n "1.%(date '+%y%m%d').git"; git rev-parse --short=8 HEAD`
|
||||
RPR_REL = 1
|
||||
SED_DEV = "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPR_DEV)/"
|
||||
SED_REL = "s/\@PACKAGE\@/@PACKAGE@/;s/\@VERSION\@/@VERSION@/;s/\@RPM_RELEASE\@/$(RPR_REL)/"
|
||||
|
||||
$(top_builddir)/$(PACKAGE).spec: FORCE
|
||||
@if [ -f $(top_srcdir)/.git-src -a -z "$(release)" ]; then \
|
||||
sed $(SED_DEV) $(top_srcdir)/$(PACKAGE).spec.in > $@; \
|
||||
else \
|
||||
sed $(SED_REL) $(top_srcdir)/$(PACKAGE).spec.in > $@; \
|
||||
fi
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
$(MAKE) dist release=y
|
||||
|
||||
FORCE:
|
||||
|
|
|
@ -44,5 +44,5 @@ AC_PATH_X
|
|||
EC_C_WARNINGS()
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_FILES(Makefile e16-keyedit.spec)
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
Summary: GUI Tool for Editing Enlightenment e16 Keybindings
|
||||
Name: @PACKAGE@
|
||||
Version: @VERSION@
|
||||
Release: @E_RPM_REVISION@%{?_vendorsuffix:.%{_vendorsuffix}}
|
||||
License: BSD-like
|
||||
Release: @RPM_RELEASE@%{?_vendorsuffix:.%{_vendorsuffix}}
|
||||
License: BSD
|
||||
Group: User Interface/Desktops
|
||||
URL: http://www.enlightenment.org/
|
||||
Source: http://prdownloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.gz
|
||||
Vendor: The Enlightenment Project (http://www.enlightenment.org/)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Requires: e16 >= 1.0.1
|
||||
Obsoletes: e16keyedit
|
||||
Obsoletes: e16keyedit <= 0.8
|
||||
|
||||
%description
|
||||
e16-keyedit provides a graphical interface for managing keybindings in
|
||||
|
|
Loading…
Reference in New Issue