regina-rexx/regina-rexx.spec

Name: regina-rexx
Summary: Regina Rexx interpreter
Version: 3.3
Release: 1.2
License: LGPL
Group: Development/Languages
URL: http://regina-rexx.sourceforge.net/
Description: Regina is an implementation of a Rexx interpreter, compliant with the ANSI Standard for Rexx (1996). It is also available on several other operating systems.

CentOS 7 x86_64

The build could not start because the following file is missing: Regina-REXX-3.3.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: Regina-REXX-3.3.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Mark Hessling <M,Hessling$qut,edu,au>

### FIXME: Makefiles don't allow -jX (parallel compilation)
# Distcc: 0

%define real_name Regina

Summary: Regina Rexx interpreter
Name: regina-rexx
Version: 3.3
Release: 1.2%{?dist}
License: LGPL
Group: Development/Languages
URL: http://regina-rexx.sourceforge.net/

Source: http://dl.sf.net/regina-rexx/Regina-REXX-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Obsoletes: Regina-REXX
Provides: Regina-REXX

%description
Regina is an implementation of a Rexx interpreter, compliant with the
ANSI Standard for Rexx (1996). It is also available on several other
operating systems.

%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -n %{real_name}-%{version}
%{__perl} -pi.orig -e 's|\@sharedir\@|\@datadir\@|g; \
			s|\$\(sharedir\)|\$(datadir)/regina|g; \
			s|\@STARTUPDIR\@|\@sysconfdir\@/rc.d/init.d|g; \
			s|\$\(STARTUPDIR\)|\$(sysconfdir)/rc.d/init.d|g; \
			s|regina.\$\(OBJ\) \$\(LINKREG\)|regina.\$(OBJ) \$(EXECISER_DEP)|g;' \
	Makefile.in

%{__cat} <<'EOF' >rxstack.sysv
#!/bin/bash
#
# Init file for Regina REXX stack daemon
#
# chkconfig: - 80 20
# description: Regina REXX stack daemon
#
# processname: rxstack
# pidfile: %{_localstatedir}/run/rxstack.pid

# source function library
. %{_initrddir}/functions

[ -x %{_bindir}/rxstack ] || exit 1

RETVAL=0
prog="rxstack"
desc="Regina REXX Stack daemon"

start() {
	echo -n $"Starting $desc: "
	daemon $prog -d
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch %{_localstatedir}/lock/subsys/$prog
	return $RETVAL
}

stop() {
	echo -n $"Shutting down $desc: "
	killproc $prog -2
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f %{_localstatedir}/lock/subsys/$prog
	return $RETVAL
}

restart(){
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -e %{_localstatedir}/lock/subsys/$prog ] && restart
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	RETVAL=1
esac

exit $RETVAL
EOF

%build
%configure \
	--enable-posix-threads
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall
%{__install} -Dp -m0755 rxstack.sysv %{buildroot}%{_initrddir}/rxstack

### FIXME: Fix broken REXX scripts
%{__perl} -pi -e 's|%{buildroot}||g' %{buildroot}%{_datadir}/regina/*.rexx

%post
/sbin/chkconfig --add rxstack
/sbin/ldconfig 2>/dev/null

%preun
if [ $1 -eq 0 ]; then
	/sbin/service rxstack stop &>/dev/null || :
	/sbin/chkconfig --del rxstack
fi

%postun
/sbin/service rxstack condrestart &>/dev/null || :
/sbin/ldconfig 2>/dev/null

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc BUGS COPYING-LIB HACKERS.txt README.Unix README_SAFE TODO trip/
%doc %{_mandir}/man?/*
%config %{_initrddir}/rxstack
%{_bindir}/regina
%{_bindir}/rexx
%{_bindir}/rxqueue
%{_bindir}/rxstack
%{_libdir}/*.so.*
%{_datadir}/regina/

%files devel
%defattr(-, root, root, 0755)
%{_bindir}/regina-config
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/rexxsaa.h
%exclude %{_libdir}/libtest?.so

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 3.3-1.2
- Rebuild for Fedora Core 5.

* Mon Apr 26 2004 Dag Wieers <dag@wieers.com> - 3.3-1
- Updated to release 3.3.

* Sat Mar 06 2004 Dag Wieers <dag@wieers.com> - 3.3-0.rc1
- Updated to release 3.3rc1.

* Thu May 01 2003 Dag Wieers <dag@wieers.com> - 3.2-0
- Updated to release 3.2.
- Added rxstack.sysv script.
- Fixed broken REXX scripts (containing buildroot)

* Mon Apr 07 2003 Dag Wieers <dag@wieers.com> - 3.1-0
- Updated to release 3.1.

* Thu Mar 20 2003 Dag Wieers <dag@wieers.com> - 3.0-0
- Initial package. (using DAR)