home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
contrib
/
rpm.spec
< prev
next >
Wrap
Text File
|
2003-05-13
|
2KB
|
63 lines
# From: Simon Clift <ssclift@math.uwaterloo.ca>
# Date: 13 May 2003 16:26:25 -0400
#
# I've just installed Icon on my Linux box and written
# an RPM specification file for it. This lets the language
# be built as a package installable using RPM, hence also
# easily removed and updated. I've attached the specification
# file, which just needs to sit in a directory with the
# source .tgz file to work.
Name: icon
Version: 9.4.2
Release: 1
Summary: Icon Programming Language
License: Public domain
Group: Development/Languages
URL: http://www.cs.arizona.edu/icon/
Source0: icon.v942src.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Icon is a high-level, general-purpose programming language with a large
repertoire of features for processing data structures and character strings.
Icon is an imperative, procedural language with a syntax reminiscent of C and
Pascal, but with semantics at a much higher level.
%prep
%setup -n icon.v942src
%build
make X-Configure name=linux
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/local
# Fix directories for the makefile
rm -rf $RPM_BUILD_ROOT/usr/local/icon
make Install dest=$RPM_BUILD_ROOT/usr/local/icon
# Clean out docs from RPM area install
rm -rf $RPM_BUILD_ROOT/usr/local/icon/doc
rm $RPM_BUILD_ROOT/usr/local/icon/README
# move the binary files
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mv $RPM_BUILD_ROOT/usr/local/icon/bin/* $RPM_BUILD_ROOT/usr/local/bin
rmdir $RPM_BUILD_ROOT/usr/local/icon/bin
# move the manual pages
mkdir -p $RPM_BUILD_ROOT/usr/local/man
rm -rf $RPM_BUILD_ROOT/usr/local/man/man1
mv $RPM_BUILD_ROOT/usr/local/icon/man/man1 $RPM_BUILD_ROOT/usr/local/man
rmdir $RPM_BUILD_ROOT/usr/local/icon/man
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README doc/*.*
/usr/local/bin/
/usr/local/man/man1/
/usr/local/icon/lib/