mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
* Generate RPM spec file.
This commit is contained in:
parent
0e09cc12c0
commit
9ff3657095
4 changed files with 12 additions and 7 deletions
|
@ -1,6 +1,10 @@
|
||||||
SUBDIRS = externals src scripts corepkgs doc
|
SUBDIRS = externals src scripts corepkgs doc
|
||||||
|
|
||||||
EXTRA_DIST = substitute.mk nix.spec
|
EXTRA_DIST = substitute.mk nix.spec nix.spec.in
|
||||||
|
|
||||||
rpm: dist
|
include ./substitute.mk
|
||||||
|
|
||||||
|
nix.spec: nix.spec.in
|
||||||
|
|
||||||
|
rpm: nix.spec dist
|
||||||
rpm $(EXTRA_RPM_FLAGS) -ta $(distdir).tar.gz
|
rpm $(EXTRA_RPM_FLAGS) -ta $(distdir).tar.gz
|
||||||
|
|
|
@ -5,9 +5,9 @@ AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
# Put the revision number in the version.
|
# Put the revision number in the version.
|
||||||
if REVISION=`test -d $srcdir/.svn && svnversion $srcdir 2> /dev/null`; then
|
if REVISION=`test -d $srcdir/.svn && svnversion $srcdir 2> /dev/null`; then
|
||||||
VERSION="$VERSION-r$REVISION"
|
VERSION="${VERSION}-pre${REVISION}"
|
||||||
elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then
|
elif REVISION=`cat $srcdir/svn-revision 2> /dev/null`; then
|
||||||
VERSION="$VERSION-r$REVISION"
|
VERSION="${VERSION}-pre${REVISION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_PREFIX_DEFAULT(/nix)
|
AC_PREFIX_DEFAULT(/nix)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
Summary: The Nix software deployment system
|
Summary: The Nix software deployment system
|
||||||
Name: nix
|
Name: nix
|
||||||
Version: 0.5
|
Version: @version@
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: WeetNiet
|
Group: WeetNiet
|
||||||
URL: http://www.cs.uu.nl/groups/ST/twiki/bin/view/Trace/NixDeploymentSystem
|
URL: http://www.cs.uu.nl/groups/ST/twiki/bin/view/Trace/NixDeploymentSystem
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-@version@.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||||
%define _prefix /nix
|
%define _prefix /nix
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
|
@ -8,5 +8,6 @@
|
||||||
-e "s^@libexecdir\@^$(libexecdir)^g" \
|
-e "s^@libexecdir\@^$(libexecdir)^g" \
|
||||||
-e "s^@system\@^$(system)^g" \
|
-e "s^@system\@^$(system)^g" \
|
||||||
-e "s^@wget\@^$(wget)^g" \
|
-e "s^@wget\@^$(wget)^g" \
|
||||||
|
-e "s^@version\@^$(VERSION)^g" \
|
||||||
< $< > $@ || rm $@
|
< $< > $@ || rm $@
|
||||||
chmod +x $@
|
if test -x $<; then chmod +x $@; fi
|
||||||
|
|
Loading…
Reference in a new issue