Commit 085a4298 authored by David Johnson's avatar David Johnson

Hm, spec files, what could I be doing...

parent ccc861f1
%define name emulab-boss
%define version 2.0
%define elab_url http://www.emulab.net
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A metapackage with dependencies for an Emulab BOSS server.
Group: System Environment/Daemons
License: AGPL
URL: %{elab_url}
#Source0:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
Requires: make, sudo, rsync, nfs-utils, mhash
Requires: mysql, mysql-server, mysql-devel
Requires: perl, perl-BSD-Resource, perl-DBD-MySQL, perl-DBI, perl-XML-Parser, perl-XML-Simple, perl-CGI-Session, perl-GDGraph, perl-HTML-Parser, perl-TimeDate, perl-RPC-XML, perl-IO-Tty, perl-MD5, perl-SNMP-Info, perl-SNMP_Session
Requires: otcl, tcl
Requires: wget, curl
Requires: python, MySQL-python, m2crypto
Requires: httpd, mod_auth_mysql, mod_ssl
Requires: php, php-adodb
Requires: graphviz
Requires: fping, netpbm, vcg
Requires: tftpd
Requires: dhcp
Requires: boost, metis
Requires: swig
Requires: bind, bind-utils
# Emulab-ish stuff
Requires: pubsub, ulsshxmlrpcpp
%description
This is the BOSS "metapackage", which is essentially a big dependency container
of all the packages that need to be installed on an Emulab BOSS server.
%prep
%build
%install
echo "Nothing to install for emulab-boss!"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
%define name emulab-fs
%define version 2.0
%define elab_url http://www.emulab.net
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A metapackage with dependencies for an Emulab FS server.
Group: System Environment/Daemons
License: AGPL
URL: %{elab_url}
#Source0:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
Requires: make, sudo, rsync, samba, nfs-utils
%description
This is the "metapackage", which is essentially a big dependency container
of all the packages that need to be installed on an Emulab FS server.
%prep
%build
%install
echo "Nothing to install for emulab-fs!"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
%define name emulab-ops
%define version 2.0
%define elab_url http://www.emulab.net
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A metapackage with dependencies for an Emulab OPS server.
Group: System Environment/Daemons
License: AGPL
URL: %{elab_url}
#Source0:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
Requires: make, sudo, rsync, samba, nfs-utils, mhash
Requires: mysql, mysql-server, mysql-devel
Requires: perl, perl-BSD-Resource, perl-DBD-MySQL, perl-DBI, perl-XML-Parser, perl-XML-Simple, perl-CGI-Session, perl-GDGraph, perl-HTML-Parser
Requires: otcl, tcl
Requires: wget, curl
Requires: python, MySQL-python, m2crypto
Requires: httpd, mod_auth_mysql, mod_ssl
Requires: php, php-adodb
# Emulab-ish stuff
Requires: pubsub, ulsshxmlrpcpp
%description
This is the OPS "metapackage", which is essentially a big dependency container
of all the packages that need to be installed on an Emulab OPS server.
%prep
%build
%install
echo "Nothing to install for emulab-ops!"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
%define name otcl
%define version 1.13
%define url http://otcl-tclcl.sourceforge.net/otcl/
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
%define debug_package %{nil}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for object-oriented programming.
Group: Language
License: MIT
URL: %{url}
Source: %{name}-src-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: make, autoconf, gcc, tcl, tcl-devel, tk, tk-devel, libXt-devel
Requires: tcl, tk, libX11, glibc, libxcb, libXau, libXdmcp
patch1: otcl-x11-headers.patch
%description
OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for
object-oriented programming. It shouldn't be confused with the IXI
Object Tcl extension by Dean Sheenan. (Sorry, but we both like the
name and have been using it for a while.)
%prep
%setup -n %{name}-%{version}
#pwd
#find .
#cd %{name}-%{version}
%patch1 -p0
#cd ..
%build
%configure --prefix=/usr
make
make libotcl.so
%install
#
# this bit of ugliness is essentially pulled from the Makefile,
# since I don't want to patch it with a DESTDIR and crap
#
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include
install owish $RPM_BUILD_ROOT/usr/bin
install otclsh $RPM_BUILD_ROOT/usr/bin
install libotcl.a $RPM_BUILD_ROOT/usr/lib
ranlib $RPM_BUILD_ROOT/usr/lib/libotcl.a
install libotcl.so $RPM_BUILD_ROOT/usr/lib
install -m 644 otcl.h $RPM_BUILD_ROOT/usr/include
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
/usr/bin/owish
/usr/bin/otclsh
/usr/lib/libotcl.a
/usr/lib/libotcl.so
/usr/include/otcl.h
%post
echo -n "Running ldconfig... "
/sbin/ldconfig
echo "done"
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
%define realname pubsub
%define version 20080916
%define url http://www.emulab.net
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
%define debug_package %{nil}
%define elvincompat %{?_with_elvin: 1} %{?!_with_elvin: 0}
%define elvinstr %{nil}
%if %{?elvincompat}
%define elvinstr -elvincompat
%endif
Name: %{realname}%{elvinstr}
Version: %{version}
Release: %{release}
Summary: The Emulab publish-subscribe event system.
Group: Language
License: MIT
URL: %{url}
Source: %{realname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: make, gcc
Requires: glibc
Provides: pubsub
%description
pusub is a publish-subscribe event system designed for use in
the Emulab network testbed. It is similar to Elvin, a closed-
source event system, and provides a very similar API.
%prep
%setup -n %{realname}
%build
%if %{elvincompat}
rm -f .noelvin
%else
touch .noelvin
%endif
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make INSTALLPREFIX=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
/usr/local/lib/*
/usr/local/include/pubsub/*
/usr/local/libexec/*
/etc/init.d/*
/etc/rc*.d/*
/etc/ld.so.conf.d/pubsub.conf
%post
echo -n "Running ldconfig... "
/sbin/ldconfig
echo "done"
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
%define name ulsshxmlrpcpp
%define version 0.1.2
%define url http://www.emulab.net
%define release_num 1
%define release %{release_num}.emulab%{?date:.%{date}}
%define debug_package %{nil}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: The ulsshxmlrpcpp library provides the classes needed to communicate with any XML-RPC server that uses SSH as a transport.
Group: System
License: GPL
URL: %{url}
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: make, autoconf, gcc
#Requires:
%description
OTcl, short for MIT Object Tcl, is an extension to Tcl/Tk for
object-oriented programming. It shouldn't be confused with the IXI
Object Tcl extension by Dean Sheenan. (Sorry, but we both like the
name and have been using it for a while.)
%prep
%setup -n %{name}-%{version}
%build
%configure --prefix=/usr
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
/usr/bin/*
/usr/include/*
/usr/include/ulxmlrpcpp/*
/usr/lib/*
/usr/share/ulxmlrpcpp/httpd/*
%post
echo -n "Running ldconfig... "
/sbin/ldconfig
echo "done"
%changelog
* Mon Sep 09 2008 David Johnson <johnsond@cs.utah.edu>
- initial version.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment