A first step towards building RPM distributions for ROTD releases.

Estimated hours taken: 1
Branches: main

A first step towards building RPM distributions for ROTD releases.

Mmakefile:
.mercury-compiler.spec.in:
	Handle dashes in the version name when creating mercury-compiler.spec.
	List the ftp location as being from the beta-releases subdirectory
	if the version is rotd-* or *beta*.
This commit is contained in:
Fergus Henderson
2002-10-16 17:09:48 +00:00
parent a740290171
commit 331732edb7
2 changed files with 15 additions and 5 deletions

View File

@@ -2,14 +2,14 @@
# RPM (Red Hat Package Manager) spec file
# for the Mercury implementation.
#
# Copyright (c) 1999 The University of Melbourne
# Copyright (c) 1999, 2001, 2002 The University of Melbourne
#
# Please send bugfixes or comments to <mercury-bugs@cs.mu.oz.au>.
#
Summary: The logic/functional programming language Mercury
Name: mercury-compiler
Version: @VERSION@
Version: @VERSION_WITH_UNDERSCORES@
Release: 1
Packager: The Mercury Group <mercury@cs.mu.oz.au>
Vendor: The Mercury Group <mercury@cs.mu.oz.au>
@@ -17,7 +17,7 @@ Copyright: GPL and LGPL
Group: Development/Languages
Provides: mercury
Requires: gcc make
Source: ftp.mercury.cs.mu.oz.au:/pub/mercury/mercury-compiler-@VERSION@.tar.gz
Source: ftp.mercury.cs.mu.oz.au:/pub/mercury/@MAYBE_BETA@mercury-compiler-@VERSION@.tar.gz
URL: http://www.cs.mu.oz.au/mercury/
%description
@@ -35,6 +35,10 @@ It does NOT include the "extras" distribution; that is available
from <http://www.cs.mu.oz.au/mercury/download/release.html>.
%changelog
* Thu Oct 16 2002 Fergus Henderson <fjh@cs.mu.oz.au>
- Modify the way the spec file is generated to support building
RPMS for ROTD releases.
* Wed Apr 04 2001 Fergus Henderson <fjh@cs.mu.oz.au>
- Delete the "Red Hat Contrib Net" stuff, since RHCN seems to have disappeared
from the face of the earth.

View File

@@ -244,8 +244,14 @@ INSTALL: .INSTALL.in VERSION
sed 's/@VERSION@/$(VERSION)/g' .INSTALL.in > INSTALL
mercury-compiler.spec: .mercury-compiler.spec.in VERSION
sed 's/@VERSION@/$(VERSION)/g' .mercury-compiler.spec.in \
> mercury-compiler.spec
version_with_underscores=`echo $(VERSION) | sed 's/-/_/g'`; \
maybe_beta=`case $(VERSION) in rotd*|*beta*) \
echo "beta-releases/" ;; \
esac`; \
sed -e "s/@VERSION@/$(VERSION)/g" \
-e "s/@VERSION_WITH_UNDERSCORES@/$$version_with_underscores/g" \
-e "s^@MAYBE_BETA@^$$maybe_beta^g" \
.mercury-compiler.spec.in > mercury-compiler.spec
#-----------------------------------------------------------------------------#