Timothy St. Clair 44dc910
%define tarball_version 7.7.1
Matthew Farrellee 7659d4d
f870f91
# Things for F15 or later
f870f91
%if 0%{?fedora} >= 15
f870f91
%define deltacloud 1
f870f91
%define aviary 1
f870f91
%define systemd 1
f870f91
%define cgroups 1
Timothy St. Clair ae44ff2
%define qmf 1
f870f91
%else
f870f91
%define deltacloud 0
f870f91
%define aviary 0
f870f91
%define systemd 0
f870f91
%define cgroups 0
Timothy St. Clair ae44ff2
%define qmf 0
f870f91
%endif
f870f91
f870f91
# Things not turned on, or don't have Fedora packages yet
f870f91
%define blahp 0
f870f91
c3f22a8
# These flags are meant for developers; it allows one to build Condor
c3f22a8
# based upon a git-derived tarball, instead of an upstream release tarball
c3f22a8
%define git_build 0
c50f72f
# If building with git tarball, Fedora requests us to record the rev.  Use:
c50f72f
# git log -1 --pretty=format:'%h'
c50f72f
%define git_rev 8b70570
c3f22a8
e23d21b
# Special patches must be applied only to RHEL5
e23d21b
%if 0%{?el5}
e23d21b
%define rhel5 1
e23d21b
%else
e23d21b
%define rhel5 0
e23d21b
%endif
e23d21b
e052536
Summary: Condor: High Throughput Computing
e052536
Name: condor
Timothy St. Clair 44dc910
Version: 7.7.1
Timothy St. Clair ae44ff2
%define condor_base_release 0.1
c50f72f
%if %git_build
Timothy St. Clair ae44ff2
	%define condor_release %condor_base_release.%{git_rev}git
c50f72f
%else
Timothy St. Clair ae44ff2
	%define condor_release %condor_base_release
c50f72f
%endif
c50f72f
Release: %condor_release%{?dist}
e052536
License: ASL 2.0
e052536
Group: Applications/System
e052536
URL: http://www.cs.wisc.edu/condor/
c3f22a8
c3f22a8
# This allows developers to test the RPM with a non-release, git tarball
c3f22a8
%if %git_build
Timothy St. Clair ae44ff2
c3f22a8
# git clone http://condor-git.cs.wisc.edu/repos/condor.git
c3f22a8
# cd condor
c3f22a8
# git-archive master | gzip -7 > ~/rpmbuild/SOURCES/condor.tar.gz
c3f22a8
Source0: condor.tar.gz
c3f22a8
c3f22a8
%else
Timothy St. Clair ae44ff2
e052536
# The upstream Condor source tarball contains some source that cannot
e052536
# be shipped as well as extraneous copies of packages the source
e052536
# depends on. Additionally, the upstream Condor source requires a
e052536
# click-through license. Once you have downloaded the source from:
e052536
#   http://parrot.cs.wisc.edu/v7.0.license.html
e052536
# you should process it with generate-tarball.sh:
e8dbbab
#   ./generate-tarball.sh 7.0.4
e052536
# MD5Sum of upstream source:
e052536
#   06eec3ae274b66d233ad050a047f3c91  condor_src-7.0.0-all-all.tar.gz
e8dbbab
#   b08743cfa2e87adbcda042896e8ef537  condor_src-7.0.2-all-all.tar.gz
e8dbbab
#   5f326ad522b63eacf34c6c563cf46910  condor_src-7.0.4-all-all.tar.gz
671b3f3
#   73323100c5b2259f3b9c042fa05451e0  condor_src-7.0.5-all-all.tar.gz
3e1318f
#   a2dd96ea537b2c6d105b6c8dad563ddc  condor_src-7.2.0-all-all.tar.gz
a43d2c6
#   edbac8267130ac0a0e016d0f113b4616  condor_src-7.2.1-all-all.tar.gz
1455b29
#   6d9b0ef74d575623af11e396fa274174  condor_src-7.2.4-all-all.tar.gz
5c1920c
#   ee72b65fad02d21af0dc8f1aa5872110  condor_src-7.4.0-all-all.tar.gz
5c1920c
#   d4deeabbbce65980c085d8bea4c1018a  condor_src-7.4.1-all-all.tar.gz
5c1920c
#   4714086f58942b78cf03fef9ccb1117c  condor_src-7.4.2-all-all.tar.gz
Matthew Farrellee d35d9f3
#   2b7e7687cba85d0cf0774f9126b51779  condor_src-7.4.3-all-all.tar.gz
Matthew Farrellee d35d9f3
#   108a4b91cd10deca1554ca1088be6c8c  condor_src-7.4.4-all-all.tar.gz
Matthew Farrellee 78c4620
#   b482c4bfa350164427a1952113d53d03  condor_src-7.5.5-all-all.tar.gz
Matthew Farrellee 06dd27e
#   2a1355cb24a56a71978d229ddc490bc5  condor_src-7.6.0-all-all.tar.gz
Timothy St. Clair 44dc910
#
Timothy St. Clair 44dc910
#   From here on out:
Timothy St. Clair 44dc910
#     git archive --format=tar --prefix=condor-7.7.1/ V7_7_1 | gzip >condor_src-7.7.1-all-all.tar.gz
Timothy St. Clair 44dc910
#
Timothy St. Clair 44dc910
#   ecafed3e183e9fc6608dc9e55e4dd59b  condor_src-7.7.1-all-all.tar.gz
e052536
# Note: The md5sum of each generated tarball may be different
Timothy St. Clair 44dc910
Source0: condor-7.7.1-UPSTREAM-GT.tar.gz
e052536
Source1: generate-tarball.sh
c3f22a8
%endif
c3f22a8
f870f91
%if %systemd
Matthew Farrellee 43b0ff5
Source2: %{name}-tmpfiles.conf
f870f91
Source3: condor.service
f870f91
%endif
e8dbbab
Patch0: condor_config.generic.patch
Timothy St. Clair 44dc910
Patch1: chkconfig_off.patch
6094047
e052536
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
e052536
Matthew Farrellee 36b165c
BuildRequires: %_bindir/cmake
Matthew Farrellee 36b165c
BuildRequires: %_bindir/flex
Matthew Farrellee 36b165c
BuildRequires: %_bindir/byacc
e052536
BuildRequires: pcre-devel
e052536
BuildRequires: openssl-devel
e052536
BuildRequires: krb5-devel
5c1920c
BuildRequires: libvirt-devel
e052536
BuildRequires: bind-utils
e052536
BuildRequires: m4
3e1318f
BuildRequires: libX11-devel
Matthew Farrellee 36b165c
BuildRequires: /usr/include/curl/curl.h
Matthew Farrellee 36b165c
BuildRequires: /usr/include/expat.h
Timothy St. Clair ae44ff2
BuildRequires: openldap-devel
Timothy St. Clair 44dc910
BuildRequires: /usr/include/ldap.h
Matthew Farrellee 8c7178c
BuildRequires: qpid-qmf-devel
Matthew Farrellee 88d505c
BuildRequires: %_includedir/libdeltacloud/libdeltacloud.h
Timothy St. Clair 44dc910
BuildRequires: latex2html
e052536
Matthew Farrellee beb79c7
# Globus GSI build requirements
Matthew Farrellee beb79c7
BuildRequires: globus-gssapi-gsi-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gass-server-ez-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gass-transfer-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gram-client-devel
Matthew Farrellee beb79c7
BuildRequires: globus-rsl-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gram-protocol
Matthew Farrellee beb79c7
BuildRequires: globus-io-devel
Matthew Farrellee beb79c7
BuildRequires: globus-xio-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gssapi-error-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gss-assist-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-proxy-core-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-credential-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-callback-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-sysconfig-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-cert-utils-devel
Matthew Farrellee beb79c7
BuildRequires: globus-openssl-module-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-openssl-error-devel
Matthew Farrellee beb79c7
BuildRequires: globus-gsi-proxy-ssl-devel
Matthew Farrellee beb79c7
BuildRequires: globus-callout-devel
Matthew Farrellee beb79c7
BuildRequires: globus-common-devel
Matthew Farrellee beb79c7
BuildRequires: globus-ftp-client-devel
Matthew Farrellee beb79c7
BuildRequires: globus-ftp-control-devel
Matthew Farrellee beb79c7
BuildRequires: libtool-ltdl-devel
Matthew Farrellee beb79c7
BuildRequires: voms-devel
Matthew Farrellee beb79c7
Timothy St. Clair ae44ff2
%if %qmf
Timothy St. Clair ae44ff2
BuildRequires: qpid-qmf-devel
f870f91
%endif
f870f91
Timothy St. Clair ae44ff2
%if %deltacloud
Timothy St. Clair ae44ff2
BuildRequires: %_includedir/libdeltacloud/libdeltacloud.h
f870f91
%endif
f870f91
Timothy St. Clair ae44ff2
%if %aviary
Timothy St. Clair ae44ff2
BuildRequires: wso2-wsf-cpp-devel
Timothy St. Clair ae44ff2
BuildRequires: wso2-axis2-devel
f870f91
%endif
f870f91
Timothy St. Clair ae44ff2
%if %cgroups
Timothy St. Clair ae44ff2
BuildRequires: libcgroup-devel >= 0.37
Timothy St. Clair ae44ff2
Requires: libcgroup >= 0.37
f870f91
%endif
f870f91
Timothy St. Clair ae44ff2
%if %blahp
Timothy St. Clair ae44ff2
Requires: blahp >= 1.16.1
c3f22a8
%endif
c3f22a8
Timothy St. Clair ae44ff2
%if %systemd
Timothy St. Clair ae44ff2
BuildRequires: systemd-units
f870f91
%endif
Timothy St. Clair ae44ff2
e052536
Requires: mailx
3e1318f
Requires: python >= 2.2
Matthew Farrellee 7659d4d
Requires: condor-classads = %{version}-%{release}
660dddf
Requires: condor-procd = %{version}-%{release}
Matthew Farrellee 43b0ff5
Requires: initscripts
Matthew Farrellee 43b0ff5
e052536
Requires(pre): shadow-utils
e052536
f870f91
%if %systemd
f870f91
Requires(post): systemd-units
f870f91
Requires(preun): systemd-units
f870f91
Requires(postun): systemd-units
f870f91
Requires(post): systemd-sysv
f870f91
%else
e052536
Requires(post):/sbin/chkconfig
e052536
Requires(preun):/sbin/chkconfig
e052536
Requires(preun):/sbin/service
e052536
Requires(postun):/sbin/service
f870f91
%endif
e052536
e052536
#Provides: user(condor) = 43
e052536
#Provides: group(condor) = 43
e052536
627bc41
Obsoletes: condor-static < 7.2.0
627bc41
e052536
%description
e052536
Condor is a specialized workload management system for
e052536
compute-intensive jobs. Like other full-featured batch systems, Condor
e052536
provides a job queueing mechanism, scheduling policy, priority scheme,
e052536
resource monitoring, and resource management. Users submit their
e052536
serial or parallel jobs to Condor, Condor places them into a queue,
e052536
chooses when and where to run the jobs based upon a policy, carefully
e052536
monitors their progress, and ultimately informs the user upon
e052536
completion.
e052536
660dddf
%package procd
660dddf
Summary: Condor Process tracking Daemon
660dddf
Group: Applications/System
660dddf
%description procd
660dddf
A daemon for tracking child processes started by a parent.
660dddf
Part of Condor, but able to be stand-alone
e052536
Timothy St. Clair 44dc910
#######################
f870f91
%if %qmf
Matthew Farrellee 8c7178c
%package qmf
Matthew Farrellee 8c7178c
Summary: Condor QMF components
Matthew Farrellee 8c7178c
Group: Applications/System
Matthew Farrellee 8c7178c
Requires: %name = %version-%release
Matthew Farrellee 8c7178c
#Requires: qmf >= %{qmf_version}
Matthew Farrellee 8c7178c
Requires: python-qmf >= 0.7.946106
Matthew Farrellee 8c7178c
Requires: condor-classads = %{version}-%{release}
Matthew Farrellee 8c7178c
Obsoletes: condor-qmf-plugins
Matthew Farrellee 8c7178c
Matthew Farrellee 8c7178c
%description qmf
Matthew Farrellee 8c7178c
Components to connect Condor to the QMF management bus.
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#######################
f870f91
%if %aviary
Matthew Farrellee 7659d4d
%package aviary
Matthew Farrellee 7659d4d
Summary: Condor Aviary components
Matthew Farrellee 7659d4d
Group: Applications/System
Matthew Farrellee 7659d4d
Requires: %name = %version-%release
Matthew Farrellee 7659d4d
Requires: condor-classads = %{version}-%{release}
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
%description aviary
Matthew Farrellee 7659d4d
Components to provide simplified WS interface to Condor.
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#######################
3e1318f
%package kbdd
3e1318f
Summary: Condor Keyboard Daemon
3e1318f
Group: Applications/System
3e1318f
Requires: %name = %version-%release
Matthew Farrellee 7659d4d
Requires: condor-classads = %{version}-%{release}
e052536
3e1318f
%description kbdd
3e1318f
The condor_kbdd monitors logged in X users for activity. It is only
3e1318f
useful on systems where no device (e.g. /dev/*) can be used to
3e1318f
determine console idle time.
e052536
Timothy St. Clair 44dc910
#######################
5c1920c
%package vm-gahp
5c1920c
Summary: Condor's VM Gahp
5c1920c
Group: Applications/System
5c1920c
Requires: %name = %version-%release
Matthew Farrellee 7659d4d
Requires: libvirt
Matthew Farrellee 7659d4d
Requires: condor-classads = %{version}-%{release}
5c1920c
5c1920c
%description vm-gahp
5c1920c
The condor_vm-gahp enables the Virtual Machine Universe feature of
5c1920c
Condor. The VM Universe uses libvirt to start and control VMs under
5c1920c
Condor's Startd.
5c1920c
Timothy St. Clair 44dc910
#######################
f870f91
%if %deltacloud
Matthew Farrellee 88d505c
%package deltacloud-gahp
Matthew Farrellee 88d505c
Summary: Condor's Deltacloud Gahp
Matthew Farrellee 88d505c
Group: Applications/System
Matthew Farrellee 88d505c
Requires: %name = %version-%release
Matthew Farrellee 88d505c
Matthew Farrellee 88d505c
%description deltacloud-gahp
Matthew Farrellee 88d505c
The deltacloud_gahp enables Condor's ability to manage jobs run on
Matthew Farrellee 88d505c
resources exposed by the deltacloud API.
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#######################
Matthew Farrellee 7659d4d
%package classads
Matthew Farrellee 7659d4d
Summary: Condor's classified advertisement language
Matthew Farrellee 7659d4d
Group: Development/Libraries
Matthew Farrellee 7659d4d
Obsoletes: classads <= 1.0.8
Matthew Farrellee 7659d4d
Obsoletes: classads-static <= 1.0.8
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
%description classads
Matthew Farrellee 7659d4d
Classified Advertisements (classads) are the lingua franca of
Matthew Farrellee 7659d4d
Condor. They are used for describing jobs, workstations, and other
Matthew Farrellee 7659d4d
resources. They are exchanged by Condor processes to schedule
Matthew Farrellee 7659d4d
jobs. They are logged to files for statistical and debugging
Matthew Farrellee 7659d4d
purposes. They are used to enquire about current state of the system.
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
A classad is a mapping from attribute names to expressions. In the
Matthew Farrellee 7659d4d
simplest cases, the expressions are simple constants (integer,
Matthew Farrellee 7659d4d
floating point, or string). A classad is thus a form of property
Matthew Farrellee 7659d4d
list. Attribute expressions can also be more complicated. There is a
Matthew Farrellee 7659d4d
protocol for evaluating an attribute expression of a classad vis a vis
Matthew Farrellee 7659d4d
another ad. For example, the expression "other.size > 3" in one ad
Matthew Farrellee 7659d4d
evaluates to true if the other ad has an attribute named size and the
Matthew Farrellee 7659d4d
value of that attribute is (or evaluates to) an integer greater than
Matthew Farrellee 7659d4d
three. Two classads match if each ad has an attribute requirements
Matthew Farrellee 7659d4d
that evaluates to true in the context of the other ad. Classad
Matthew Farrellee 7659d4d
matching is used by the Condor central manager to determine the
Matthew Farrellee 7659d4d
compatibility of jobs and workstations where they may be run.
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#######################
Matthew Farrellee 7659d4d
%package classads-devel
Matthew Farrellee 7659d4d
Summary: Headers for Condor's classified advertisement language
Matthew Farrellee 7659d4d
Group: Development/System
Matthew Farrellee 7659d4d
Requires: %name-classads = %version-%release
Matthew Farrellee 7659d4d
Requires: pcre-devel
Matthew Farrellee 7659d4d
Obsoletes: classads-devel <= 1.0.8
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
%description classads-devel
Matthew Farrellee 7659d4d
Header files for Condor's ClassAd Library, a powerful and flexible,
Matthew Farrellee 7659d4d
semi-structured representation of data.
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
e052536
%pre
e052536
getent group condor >/dev/null || groupadd -r condor
e052536
getent passwd condor >/dev/null || \
e052536
  useradd -r -g condor -d %_var/lib/condor -s /sbin/nologin \
e052536
    -c "Owner of Condor Daemons" condor
e052536
exit 0
e052536
e052536
e052536
%prep
c3f22a8
%if %git_build
c3f22a8
%setup -q -c -n %{name}-%{tarball_version}
c3f22a8
%else
c3f22a8
# For release tarballs
Matthew Farrellee 7659d4d
%setup -q -n %{name}-%{tarball_version}
c3f22a8
%endif
e8dbbab
Matthew Farrellee 0f2f822
%patch0 -p1
e052536
e23d21b
%if %rhel5
e23d21b
%patch6 -p1
e23d21b
%endif
e052536
e052536
# fix errant execute permissions
e052536
find src -perm /a+x -type f -name "*.[Cch]" -exec chmod a-x {} \;
e052536
e052536
%build
c3f22a8
Matthew Farrellee 7659d4d
%cmake -DNO_PHONE_HOME:BOOL=TRUE \
Matthew Farrellee 7659d4d
       -DHAVE_BACKFILL:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DHAVE_BOINC:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWITH_GSOAP:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWITH_POSTGRESQL:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DHAVE_KBDD:BOOL=TRUE \
Matthew Farrellee 7659d4d
       -DHAVE_HIBERNATION:BOOL=TRUE \
Matthew Farrellee 7659d4d
       -DWANT_LEASE_MANAGER:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWANT_HDFS:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWANT_QUILL:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWITH_ZLIB:BOOL=FALSE \
a3a9bf5
       -DWITH_POSTGRESQL:BOOL=FALSE \
Matthew Farrellee 7659d4d
       -DWANT_CONTRIB:BOOL=ON \
f870f91
%if %aviary
Matthew Farrellee 7659d4d
       -DWITH_AVIARY:BOOL=TRUE \
f870f91
%else
f870f91
       -DWITH_AVIARY:BOOL=FALSE \
f870f91
%endif
f870f91
%if %qmf
Matthew Farrellee 50b7e39
       -DWITH_TRIGGERD:BOOL=TRUE \
f870f91
       -DWITH_MANAGEMENT:BOOL=TRUE \
f870f91
%else
f870f91
       -DWITH_TRIGGERD:BOOL=FALSE \
f870f91
       -DWITH_MANAGEMENT:BOOL=FALSE \
f870f91
%endif
660dddf
       -DWANT_FULL_DEPLOYMENT:BOOL=TRUE \
Matthew Farrellee 7659d4d
       -DWANT_GLEXEC:BOOL=FALSE \
Timothy St. Clair 44dc910
       -DWANT_MAN_PAGES:BOOL=TRUE \
f870f91
%if %deltacloud
Matthew Farrellee 88d505c
       -DWITH_LIBDELTACLOUD:BOOL=TRUE \
f870f91
%else
f870f91
       -DWITH_LIBDELTACLOUD:BOOL=FALSE \
f870f91
%endif
f870f91
       -DWITH_GLOBUS:BOOL=TRUE \
d932685
%if %cgroups
f870f91
       -DLIBCGROUP_FOUND_SEARCH_cgroup=/%{_lib}/libcgroup.so.1
d932685
%endif
f870f91
Matthew Farrellee 78c4620
make %{?_smp_mflags}
e052536
e052536
e052536
%install
e052536
# installation happens into a temporary location, this function is
e052536
# useful in moving files into their final locations
e052536
function populate {
e052536
  _dest="$1"; shift; _src="$*"
e052536
  mkdir -p "%{buildroot}/$_dest"
e052536
  mv $_src "%{buildroot}/$_dest"
e052536
}
e052536
e052536
rm -rf %{buildroot}
Matthew Farrellee 78c4620
make install DESTDIR=%{buildroot}
e052536
Matthew Farrellee 78c4620
# The install target puts etc/ under usr/, let's fix that.
Matthew Farrellee 78c4620
mv %{buildroot}/usr/etc %{buildroot}/%{_sysconfdir}
e8dbbab
Matthew Farrellee 7659d4d
populate %_sysconfdir/condor %{buildroot}/%{_usr}/lib/condor_ssh_to_job_sshd_config_template
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
# Things in /usr/lib really belong in /usr/share/condor
Matthew Farrellee 7659d4d
populate %{_datadir}/condor %{buildroot}/%{_usr}/lib/*
5b816ce
# Except for the shared libs
Matthew Farrellee 7659d4d
populate %{_libdir}/ %{buildroot}/%{_datadir}/condor/libclassad.so*
Matthew Farrellee 7659d4d
rm -f %{buildroot}/%{_datadir}/condor/libclassads.a
Matthew Farrellee 7659d4d
a3a9bf5
%if %aviary || %qmf
Matthew Farrellee 7659d4d
populate %{_libdir}/condor/plugins %{buildroot}/%{_usr}/libexec/*-plugin.so
a3a9bf5
%endif
Matthew Farrellee 7659d4d
Matthew Farrellee 78c4620
# It is proper to put Condor specific libexec binaries under libexec/condor/
Matthew Farrellee 78c4620
populate %_libexecdir/condor %{buildroot}/usr/libexec/*
e8dbbab
Matthew Farrellee 78c4620
# man pages go under %{_mandir}
Matthew Farrellee 78c4620
mkdir -p %{buildroot}/%{_mandir}
Matthew Farrellee 78c4620
mv %{buildroot}/usr/man/man1 %{buildroot}/%{_mandir}
e8dbbab
Matthew Farrellee 78c4620
# Things in /usr/lib really belong in /usr/share/condor
Matthew Farrellee 88d505c
#mv %{buildroot}/usr/lib %{buildroot}/%{_datarootdir}/condor
e8dbbab
Matthew Farrellee 78c4620
mkdir -p %{buildroot}/%{_sysconfdir}/condor
3e1318f
# the default condor_config file is not architecture aware and thus
3e1318f
# sets the LIB directory to always be /usr/lib, we want to do better
3e1318f
# than that. this is, so far, the best place to do this
3e1318f
# specialization. we strip the "lib" or "lib64" part from _libdir and
3e1318f
# stick it in the LIB variable in the config.
3e1318f
LIB=$(echo %{?_libdir} | sed -e 's:/usr/\(.*\):\1:')
3e1318f
if [ "$LIB" = "%_libdir" ]; then
3e1318f
  echo "_libdir does not contain /usr, sed expression needs attention"
3e1318f
  exit 1
3e1318f
fi
3e1318f
sed -e "s:^LIB\s*=.*:LIB = \$(RELEASE_DIR)/$LIB/condor:" \
Matthew Farrellee 78c4620
  %{buildroot}/etc/examples/condor_config.generic \
Matthew Farrellee 78c4620
  > %{buildroot}/%{_sysconfdir}/condor/condor_config
3e1318f
Matthew Farrellee 7659d4d
# Install the basic configuration, a Personal Condor config. Allows for
Matthew Farrellee 7659d4d
# yum install condor + service condor start and go.
Matthew Farrellee 7659d4d
mkdir -m0755 %{buildroot}/%{_sysconfdir}/condor/config.d
d06de85
cp %{buildroot}/etc/examples/condor_config.local %{buildroot}/%{_sysconfdir}/condor/config.d/00personal_condor.config
Matthew Farrellee 7659d4d
f870f91
%if %qmf
Matthew Farrellee 8c7178c
# Install condor-qmf's base plugin configuration
Matthew Farrellee 8c7178c
populate %_sysconfdir/condor/config.d %{buildroot}/etc/examples/60condor-qmf.config
f870f91
%endif
Timothy St. Clair ae44ff2
f870f91
%if %aviary
Matthew Farrellee 7659d4d
# Install condor-aviary's base plugin configuration
Matthew Farrellee 7659d4d
populate %_sysconfdir/condor/config.d %{buildroot}/etc/examples/61aviary.config
Matthew Farrellee 7659d4d
Matthew Farrellee 7659d4d
mkdir -p %{buildroot}/%{_var}/lib/condor/aviary
Matthew Farrellee 7659d4d
populate %{_var}/lib/condor/aviary %{buildroot}/usr/axis2.xml
Matthew Farrellee 7659d4d
populate %{_var}/lib/condor/aviary %{buildroot}/usr/services/
f870f91
%endif
Matthew Farrellee 7659d4d
Matthew Farrellee 78c4620
mkdir -p -m0755 %{buildroot}/%{_var}/run/condor
Matthew Farrellee 78c4620
mkdir -p -m0755 %{buildroot}/%{_var}/log/condor
Matthew Farrellee 78c4620
mkdir -p -m0755 %{buildroot}/%{_var}/lock/condor
Matthew Farrellee 7659d4d
mkdir -p -m1777 %{buildroot}/%{_var}/lock/condor/local
a3a9bf5
# Note we use %{_var}/lib instead of %{_sharedstatedir} for RHEL5 compatibility
a3a9bf5
mkdir -p -m0755 %{buildroot}/%{_var}/lib/condor/spool
a3a9bf5
mkdir -p -m1777 %{buildroot}/%{_var}/lib/condor/execute
3e1318f
Timothy St. Clair ae44ff2
## NOTE: This type of config mod should be contained in the patch 
Timothy St. Clair ae44ff2
##       process.  
Timothy St. Clair ae44ff2
#cat >> %{buildroot}/%_var/lib/condor/condor_config.local << EOF
Timothy St. Clair ae44ff2
#CONDOR_DEVELOPERS = NONE
Timothy St. Clair ae44ff2
#CONDOR_HOST = \$(FULL_HOSTNAME)
Timothy St. Clair ae44ff2
#COLLECTOR_NAME = Personal Condor
Timothy St. Clair ae44ff2
#START = TRUE
Timothy St. Clair ae44ff2
#SUSPEND = FALSE
Timothy St. Clair ae44ff2
#PREEMPT = FALSE
Timothy St. Clair ae44ff2
#KILL = FALSE
Timothy St. Clair ae44ff2
#DAEMON_LIST = COLLECTOR, MASTER, NEGOTIATOR, SCHEDD, STARTD
Timothy St. Clair ae44ff2
#NEGOTIATOR_INTERVAL = 20
Timothy St. Clair ae44ff2
#EOF
e052536
# this gets around a bug whose fix is not yet merged
Timothy St. Clair ae44ff2
#echo "TRUST_UID_DOMAIN = TRUE" >> %{buildroot}/%_var/lib/condor/condor_config.local
e052536
Matthew Farrellee 78c4620
# no master shutdown program for now
Matthew Farrellee 78c4620
rm %{buildroot}/%{_sbindir}/condor_set_shutdown
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_set_shutdown.1
3e1318f
3e1318f
# not packaging deployment tools
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_config_bind.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_cold_start.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_cold_stop.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/uniq_pid_midwife.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/uniq_pid_undertaker.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/filelock_midwife.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/filelock_undertaker.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/install_release.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/cleanup_release.1
3e1318f
3e1318f
# not packaging standard universe
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_compile.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_checkpoint.1
3e1318f
3e1318f
# not packaging configure/install scripts
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_configure.1
3e1318f
3e1318f
# not packaging legacy cruft
Timothy St. Clair 44dc910
#rm %{buildroot}/%{_mandir}/man1/condor_master_off.1
Timothy St. Clair 44dc910
#rm %{buildroot}/%{_mandir}/man1/condor_reconfig_schedd.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_convert_history.1
3e1318f
Matthew Farrellee 7659d4d
# not packaging gidd_alloc or procd_ctl
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/gidd_alloc.1
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/procd_ctl.1
3e1318f
Matthew Farrellee 78c4620
# not packaging quill bits
Timothy St. Clair 44dc910
rm %{buildroot}/%{_mandir}/man1/condor_load_history.1
Matthew Farrellee 78c4620
Matthew Farrellee 78c4620
# Remove junk
Matthew Farrellee 78c4620
rm -r %{buildroot}/%{_sysconfdir}/sysconfig
Matthew Farrellee 78c4620
rm -r %{buildroot}/%{_sysconfdir}/init.d
3e1318f
f870f91
%if %systemd
Matthew Farrellee 43b0ff5
# install tmpfiles.d/condor.conf
Matthew Farrellee 43b0ff5
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
f870f91
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
f870f91
f870f91
mkdir -p %{buildroot}%{_unitdir}
f870f91
cp %{SOURCE3} %{buildroot}%{_unitdir}/condor.service
f870f91
%else
f870f91
# install the lsb init script
f870f91
install -Dp -m0755 %{buildroot}/etc/examples/condor.init %buildroot/%_initrddir/condor
f870f91
%endif
Matthew Farrellee 43b0ff5
e052536
# we must place the config examples in builddir so %doc can find them
Matthew Farrellee 7659d4d
mv %{buildroot}/etc/examples %_builddir/%name-%tarball_version
e052536
Timothy St. Clair ae44ff2
## NOTE: commented out b/c full-deploy=false
660dddf
# Remove stuff that comes from the full-deploy
660dddf
rm -rf %{buildroot}%{_sbindir}/cleanup_release
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_cleanup_local
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_cold_start
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_cold_stop
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_config_bind
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_configure
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_credd
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_install
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_install_local
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_local_start
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_local_stop
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_startd_factory
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_vm-gahp-vmware
660dddf
rm -rf %{buildroot}%{_sbindir}/condor_vm_vmware.pl
660dddf
rm -rf %{buildroot}%{_sbindir}/filelock_midwife
660dddf
rm -rf %{buildroot}%{_sbindir}/filelock_undertaker
660dddf
rm -rf %{buildroot}%{_sbindir}/install_release
660dddf
rm -rf %{buildroot}%{_sbindir}/uniq_pid_command
660dddf
rm -rf %{buildroot}%{_sbindir}/uniq_pid_midwife
660dddf
rm -rf %{buildroot}%{_sbindir}/uniq_pid_undertaker
660dddf
rm -rf %{buildroot}%{_datadir}/condor/Execute.pm
660dddf
rm -rf %{buildroot}%{_datadir}/condor/ExecuteLock.pm
660dddf
rm -rf %{buildroot}%{_datadir}/condor/FileLock.pm
660dddf
rm -rf %{buildroot}%{_usrsrc}/chirp/chirp_*
660dddf
rm -rf %{buildroot}%{_usrsrc}/startd_factory
660dddf
rm -rf %{buildroot}/usr/DOC
660dddf
rm -rf %{buildroot}/usr/INSTALL
660dddf
rm -rf %{buildroot}/usr/LICENSE-2.0.txt
660dddf
rm -rf %{buildroot}/usr/README
660dddf
rm -rf %{buildroot}/usr/examples/
660dddf
rm -rf %{buildroot}%{_includedir}/MyString.h
660dddf
rm -rf %{buildroot}%{_includedir}/chirp_client.h
660dddf
rm -rf %{buildroot}%{_includedir}/compat_classad*
660dddf
rm -rf %{buildroot}%{_includedir}/condor_classad.h
660dddf
rm -rf %{buildroot}%{_includedir}/condor_constants.h
660dddf
rm -rf %{buildroot}%{_includedir}/condor_event.h
660dddf
rm -rf %{buildroot}%{_includedir}/condor_header_features.h
660dddf
rm -rf %{buildroot}%{_includedir}/condor_holdcodes.h
660dddf
rm -rf %{buildroot}%{_includedir}/file_lock.h
660dddf
rm -rf %{buildroot}%{_includedir}/iso_dates.h
660dddf
rm -rf %{buildroot}%{_includedir}/read_user_log.h
660dddf
rm -rf %{buildroot}%{_includedir}/stl_string_utils.h
660dddf
rm -rf %{buildroot}%{_includedir}/user_log.README
660dddf
rm -rf %{buildroot}%{_includedir}/user_log.c++.h
660dddf
rm -rf %{buildroot}%{_includedir}/write_user_log.h
660dddf
rm -rf %{buildroot}%{_libexecdir}/condor/bgp_*
660dddf
rm -rf %{buildroot}%{_datadir}/condor/libchirp_client.a
660dddf
rm -rf %{buildroot}%{_datadir}/condor/libcondorapi.a
e052536
e052536
%clean
e052536
rm -rf %{buildroot}
e052536
e052536
e052536
%check
e052536
# This currently takes hours and can kill your machine...
e052536
#cd condor_tests
e052536
#make check-seralized
e052536
Timothy St. Clair 44dc910
#################
e052536
%files
e052536
%defattr(-,root,root,-)
e052536
%doc LICENSE-2.0.txt examples
e052536
%dir %_sysconfdir/condor/
e052536
%config(noreplace) %_sysconfdir/condor/condor_config
f870f91
%if %systemd
Matthew Farrellee 43b0ff5
%config(noreplace) %_sysconfdir/tmpfiles.d/%{name}.conf
f870f91
%{_unitdir}/condor.service
f870f91
%else
f870f91
%_initrddir/condor
f870f91
%endif
e052536
%dir %_datadir/condor/
e052536
%_datadir/condor/Chirp.jar
e052536
%_datadir/condor/CondorJavaInfo.class
e052536
%_datadir/condor/CondorJavaWrapper.class
e052536
%_datadir/condor/Condor.pm
e052536
%_datadir/condor/scimark2lib.jar
Matthew Farrellee beb79c7
%_datadir/condor/gt4-gahp.jar
Matthew Farrellee beb79c7
%_datadir/condor/gt42-gahp.jar
Matthew Farrellee 7659d4d
%dir %_sysconfdir/condor/config.d/
c3f22a8
%_sysconfdir/condor/config.d/00personal_condor.config
Matthew Farrellee 7659d4d
%_sysconfdir/condor/condor_ssh_to_job_sshd_config_template
e052536
%dir %_libexecdir/condor/
e052536
%_libexecdir/condor/condor_chirp
e052536
%_libexecdir/condor/condor_ssh
e052536
%_libexecdir/condor/sshd.sh
3e1318f
%_libexecdir/condor/condor_job_router
e8dbbab
%_libexecdir/condor/gridftp_wrapper.sh
Matthew Farrellee 7659d4d
#%_libexecdir/condor/condor_glexec_update_proxy
5c1920c
%_libexecdir/condor/condor_limits_wrapper.sh
5c1920c
%_libexecdir/condor/condor_rooster
5c1920c
%_libexecdir/condor/condor_ssh_to_job_shell_setup
5c1920c
%_libexecdir/condor/condor_ssh_to_job_sshd_setup
Matthew Farrellee 69f865e
%_libexecdir/condor/condor_power_state
Matthew Farrellee 7659d4d
%_libexecdir/condor/condor_kflops
Matthew Farrellee 7659d4d
%_libexecdir/condor/condor_mips
Matthew Farrellee 7659d4d
%_libexecdir/condor/data_plugin
Matthew Farrellee 7659d4d
%_libexecdir/condor/curl_plugin
Matthew Farrellee 78c4620
%_libexecdir/condor/condor_shared_port
Matthew Farrellee beb79c7
%_libexecdir/condor/condor_glexec_wrapper
Matthew Farrellee beb79c7
%_libexecdir/condor/glexec_starter_setup.sh
e052536
%_mandir/man1/condor_advertise.1.gz
e8dbbab
%_mandir/man1/condor_check_userlogs.1.gz
e8dbbab
%_mandir/man1/condor_chirp.1.gz
e8dbbab
%_mandir/man1/condor_cod.1.gz
e052536
%_mandir/man1/condor_config_val.1.gz
e8dbbab
%_mandir/man1/condor_dagman.1.gz
e8dbbab
%_mandir/man1/condor_fetchlog.1.gz
e052536
%_mandir/man1/condor_findhost.1.gz
e052536
%_mandir/man1/condor_history.1.gz
e052536
%_mandir/man1/condor_hold.1.gz
e052536
%_mandir/man1/condor_master.1.gz
e052536
%_mandir/man1/condor_off.1.gz
e052536
%_mandir/man1/condor_on.1.gz
e052536
%_mandir/man1/condor_preen.1.gz
e052536
%_mandir/man1/condor_prio.1.gz
e052536
%_mandir/man1/condor_q.1.gz
e052536
%_mandir/man1/condor_qedit.1.gz
e052536
%_mandir/man1/condor_reconfig.1.gz
e052536
%_mandir/man1/condor_release.1.gz
e052536
%_mandir/man1/condor_reschedule.1.gz
e052536
%_mandir/man1/condor_restart.1.gz
e052536
%_mandir/man1/condor_rm.1.gz
e052536
%_mandir/man1/condor_run.1.gz
e052536
%_mandir/man1/condor_stats.1.gz
e052536
%_mandir/man1/condor_status.1.gz
e052536
%_mandir/man1/condor_store_cred.1.gz
e052536
%_mandir/man1/condor_submit.1.gz
e052536
%_mandir/man1/condor_submit_dag.1.gz
e8dbbab
%_mandir/man1/condor_transfer_data.1.gz
e052536
%_mandir/man1/condor_updates_stats.1.gz
e052536
%_mandir/man1/condor_userlog.1.gz
e052536
%_mandir/man1/condor_userprio.1.gz
e052536
%_mandir/man1/condor_vacate.1.gz
e052536
%_mandir/man1/condor_vacate_job.1.gz
e8dbbab
%_mandir/man1/condor_version.1.gz
e8dbbab
%_mandir/man1/condor_wait.1.gz
Matthew Farrellee 78c4620
%_mandir/man1/condor_router_history.1.gz
Matthew Farrellee 78c4620
%_mandir/man1/condor_router_q.1.gz
Matthew Farrellee 78c4620
%_mandir/man1/condor_ssh_to_job.1.gz
Matthew Farrellee 78c4620
%_mandir/man1/condor_power.1.gz
Matthew Farrellee beb79c7
%_mandir/man1/condor_glidein.1.gz
e052536
# bin/condor is a link for checkpoint, reschedule, vacate
e052536
%_bindir/condor
e052536
%_bindir/condor_submit_dag
e052536
%_bindir/condor_prio
e052536
%_bindir/condor_transfer_data
e052536
%_bindir/condor_check_userlogs
e052536
%_bindir/condor_q
Matthew Farrellee 78c4620
%_libexecdir/condor/condor_transferer
e052536
%_bindir/condor_cod
e052536
%_bindir/condor_qedit
e052536
%_bindir/condor_userlog
e052536
%_bindir/condor_release
e052536
%_bindir/condor_userlog_job_counter
e052536
%_bindir/condor_config_val
e052536
%_bindir/condor_reschedule
e052536
%_bindir/condor_userprio
e052536
%_bindir/condor_dagman
e052536
%_bindir/condor_rm
e052536
%_bindir/condor_vacate
e052536
%_bindir/condor_run
3e1318f
%_bindir/condor_router_history
3e1318f
%_bindir/condor_router_q
3e1318f
%_bindir/condor_router_rm
e052536
%_bindir/condor_vacate_job
e052536
%_bindir/condor_findhost
e052536
%_bindir/condor_stats
e052536
%_bindir/condor_version
e052536
%_bindir/condor_history
e052536
%_bindir/condor_status
e052536
%_bindir/condor_wait
e052536
%_bindir/condor_hold
e052536
%_bindir/condor_submit
5c1920c
%_bindir/condor_ssh_to_job
Matthew Farrellee 78c4620
%_bindir/condor_power
Matthew Farrellee 7659d4d
%_bindir/condor_gather_info
Matthew Farrellee 0f2f822
%_bindir/condor_test_match
Matthew Farrellee beb79c7
%_bindir/condor_glidein
e052536
# sbin/condor is a link for master_off, off, on, reconfig,
e052536
# reconfig_schedd, restart
Timothy St. Clair 44dc910
%_sbindir/condor
e052536
%_sbindir/condor_advertise
e052536
%_sbindir/condor_c-gahp
e052536
%_sbindir/condor_c-gahp_worker_thread
e052536
%_sbindir/condor_collector
e052536
%_sbindir/condor_fetchlog
e052536
%_sbindir/condor_had
e052536
%_sbindir/condor_init
e052536
%_sbindir/condor_master
e052536
%_sbindir/condor_negotiator
e052536
%_sbindir/condor_off
e052536
%_sbindir/condor_on
e052536
%_sbindir/condor_preen
e052536
%_sbindir/condor_reconfig
e052536
%_sbindir/condor_replication
e052536
%_sbindir/condor_restart
e052536
%_sbindir/condor_root_switchboard
e052536
%_sbindir/condor_schedd
e052536
%_sbindir/condor_shadow
e052536
%_sbindir/condor_startd
e052536
%_sbindir/condor_starter
e052536
%_sbindir/condor_store_cred
e052536
%_sbindir/condor_transferd
e052536
%_sbindir/condor_updates_stats
Matthew Farrellee 0f2f822
%_sbindir/ec2_gahp
e8dbbab
%_sbindir/condor_gridmanager
Matthew Farrellee beb79c7
%_sbindir/condor_gridshell
Matthew Farrellee beb79c7
%_sbindir/gahp_server
Matthew Farrellee beb79c7
%_sbindir/grid_monitor.sh
f870f91
%_sbindir/nordugrid_gahp
Matthew Farrellee beb79c7
%_sbindir/gt4_gahp
Matthew Farrellee beb79c7
%_sbindir/gt42_gahp
Matthew Farrellee 7659d4d
#%_sbindir/condor_credd
e052536
%defattr(-,condor,condor,-)
e052536
%dir %_var/lib/condor/
e052536
%dir %_var/lib/condor/execute/
f99aae8
%dir %_var/log/condor/
e052536
%dir %_var/lib/condor/spool/
Timothy St. Clair 44dc910
%ghost %dir %_var/lock/condor/
Timothy St. Clair 44dc910
%ghost %dir %_var/run/condor/
3e1318f
660dddf
%files procd
660dddf
%_sbindir/condor_procd
660dddf
%_sbindir/gidd_alloc
660dddf
%_sbindir/procd_ctl
Timothy St. Clair ae44ff2
#%_mandir/man1/procd_ctl.1.gz
Timothy St. Clair ae44ff2
#%_mandir/man1/gidd_alloc.1.gz
660dddf
%_mandir/man1/condor_procd.1.gz
660dddf
Timothy St. Clair 44dc910
#################
f870f91
%if %qmf
Matthew Farrellee 8c7178c
%files qmf
Matthew Farrellee 8c7178c
%defattr(-,root,root,-)
Matthew Farrellee 8c7178c
%doc LICENSE-2.0.txt NOTICE.txt
Matthew Farrellee 8c7178c
%_sysconfdir/condor/config.d/60condor-qmf.config
Matthew Farrellee 8c7178c
%dir %_libdir/condor/plugins
Matthew Farrellee 8c7178c
%_libdir/condor/plugins/MgmtCollectorPlugin-plugin.so
Matthew Farrellee 8c7178c
%_libdir/condor/plugins/MgmtMasterPlugin-plugin.so
Matthew Farrellee 8c7178c
%_libdir/condor/plugins/MgmtNegotiatorPlugin-plugin.so
Matthew Farrellee 8c7178c
%_libdir/condor/plugins/MgmtScheddPlugin-plugin.so
Matthew Farrellee 8c7178c
%_libdir/condor/plugins/MgmtStartdPlugin-plugin.so
Matthew Farrellee 8c7178c
%_bindir/get_trigger_data
Matthew Farrellee 8c7178c
%_sbindir/condor_trigger_config
Matthew Farrellee 8c7178c
%_sbindir/condor_triggerd
Matthew Farrellee 8c7178c
%_sbindir/condor_job_server
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#################
f870f91
%if %aviary
Matthew Farrellee 7659d4d
%files aviary
Matthew Farrellee 7659d4d
%defattr(-,root,root,-)
Matthew Farrellee 7659d4d
%doc LICENSE-2.0.txt NOTICE.txt
Matthew Farrellee 7659d4d
%_sysconfdir/condor/config.d/61aviary.config
Matthew Farrellee 7659d4d
%dir %_libdir/condor/plugins
Matthew Farrellee 7659d4d
%_libdir/condor/plugins/AviaryScheddPlugin-plugin.so
Matthew Farrellee 7659d4d
%_sbindir/aviary_query_server
Matthew Farrellee 7659d4d
%dir %_var/lib/condor/aviary
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/axis2.xml
Matthew Farrellee 7659d4d
%dir %_var/lib/condor/aviary/services
Matthew Farrellee 7659d4d
%dir %_var/lib/condor/aviary/services/job
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/job/libaviary_job_axis.so
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/job/services.xml
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/job/aviary-common.xsd
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/job/aviary-job.xsd
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/job/aviary-job.wsdl
Matthew Farrellee 7659d4d
%dir %_var/lib/condor/aviary/services/query
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/query/libaviary_query_axis.so
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/query/services.xml
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/query/aviary-common.xsd
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/query/aviary-query.xsd
Matthew Farrellee 7659d4d
%_var/lib/condor/aviary/services/query/aviary-query.wsdl
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#################
3e1318f
%files kbdd
e052536
%defattr(-,root,root,-)
3e1318f
%doc LICENSE-2.0.txt NOTICE.txt
3e1318f
%_sbindir/condor_kbdd
e052536
Timothy St. Clair 44dc910
#################
5c1920c
%files vm-gahp
5c1920c
%defattr(-,root,root,-)
5c1920c
%doc LICENSE-2.0.txt NOTICE.txt
5c1920c
%_sbindir/condor_vm-gahp
Matthew Farrellee 7659d4d
#%_sbindir/condor_vm_vmware.pl
Matthew Farrellee 7659d4d
#%_sbindir/condor_vm_xen.sh
5c1920c
%_libexecdir/condor/libvirt_simple_script.awk
5c1920c
Timothy St. Clair 44dc910
#################
f870f91
%if %deltacloud
Matthew Farrellee 88d505c
%files deltacloud-gahp
Matthew Farrellee 88d505c
%defattr(-,root,root,-)
Matthew Farrellee 88d505c
%doc LICENSE-2.0.txt NOTICE.txt
Matthew Farrellee 88d505c
%_sbindir/deltacloud_gahp
f870f91
%endif
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#################
Matthew Farrellee 7659d4d
%files classads
Matthew Farrellee 7659d4d
%defattr(-,root,root,-)
Matthew Farrellee 7659d4d
%doc LICENSE-2.0.txt NOTICE.txt
Timothy St. Clair 44dc910
%_libdir/libclassad.so.2
Timothy St. Clair 44dc910
%_libdir/libclassad.so.2.0.0
Matthew Farrellee 7659d4d
Timothy St. Clair 44dc910
#################
Matthew Farrellee 7659d4d
%files classads-devel
Matthew Farrellee 7659d4d
%defattr(-,root,root,-)
Matthew Farrellee 7659d4d
%doc LICENSE-2.0.txt NOTICE.txt
Matthew Farrellee 7659d4d
%_bindir/classad_functional_tester
Matthew Farrellee 7659d4d
%_bindir/classad_version
Matthew Farrellee 7659d4d
%_libdir/libclassad.so
Matthew Farrellee 7659d4d
%dir %_includedir/classad/
Matthew Farrellee 7659d4d
%_includedir/classad/attrrefs.h
Matthew Farrellee 7659d4d
%_includedir/classad/cclassad.h
Matthew Farrellee 7659d4d
%_includedir/classad/classad_distribution.h
Matthew Farrellee 7659d4d
%_includedir/classad/classadErrno.h
Matthew Farrellee 7659d4d
%_includedir/classad/classad.h
Matthew Farrellee 7659d4d
%_includedir/classad/classadItor.h
Matthew Farrellee 7659d4d
%_includedir/classad/classad_stl.h
Matthew Farrellee 7659d4d
%_includedir/classad/collectionBase.h
Matthew Farrellee 7659d4d
%_includedir/classad/collection.h
Matthew Farrellee 7659d4d
%_includedir/classad/common.h
Matthew Farrellee 7659d4d
%_includedir/classad/debug.h
Matthew Farrellee 7659d4d
%_includedir/classad/exprList.h
Matthew Farrellee 7659d4d
%_includedir/classad/exprTree.h
Matthew Farrellee 7659d4d
%_includedir/classad/fnCall.h
Matthew Farrellee 7659d4d
%_includedir/classad/indexfile.h
Matthew Farrellee 7659d4d
%_includedir/classad/lexer.h
Matthew Farrellee 7659d4d
%_includedir/classad/lexerSource.h
Matthew Farrellee 7659d4d
%_includedir/classad/literals.h
Matthew Farrellee 7659d4d
%_includedir/classad/matchClassad.h
Matthew Farrellee 7659d4d
%_includedir/classad/operators.h
Matthew Farrellee 7659d4d
%_includedir/classad/query.h
Matthew Farrellee 7659d4d
%_includedir/classad/sink.h
Matthew Farrellee 7659d4d
%_includedir/classad/source.h
Matthew Farrellee 7659d4d
%_includedir/classad/transaction.h
Matthew Farrellee 7659d4d
%_includedir/classad/util.h
Matthew Farrellee 7659d4d
%_includedir/classad/value.h
Matthew Farrellee 7659d4d
%_includedir/classad/view.h
Matthew Farrellee 7659d4d
%_includedir/classad/xmlLexer.h
Matthew Farrellee 7659d4d
%_includedir/classad/xmlSink.h
Matthew Farrellee 7659d4d
%_includedir/classad/xmlSource.h
Matthew Farrellee 7659d4d
f870f91
%if %systemd
f870f91
%post
f870f91
if [ $1 -eq 1 ] ; then
f870f91
    # Initial installation 
f870f91
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
f870f91
fi
Matthew Farrellee 7659d4d
f870f91
%preun
f870f91
if [ $1 -eq 0 ] ; then
f870f91
    # Package removal, not upgrade
f870f91
    /bin/systemctl --no-reload disable condor.service > /dev/null 2>&1 || :
f870f91
    /bin/systemctl stop condor.service > /dev/null 2>&1 || :
f870f91
fi
f870f91
f870f91
%postun
f870f91
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
f870f91
if [ $1 -ge 1 ] ; then
f870f91
    # Package upgrade, not uninstall
f870f91
    /bin/systemctl try-restart condor.service >/dev/null 2>&1 || :
f870f91
fi
f870f91
c3f22a8
%triggerun -- condor < 7.7.0-0.5
f870f91
f870f91
/usr/bin/systemd-sysv-convert --save condor >/dev/null 2>&1 ||:
f870f91
f870f91
/sbin/chkconfig --del condor >/dev/null 2>&1 || :
f870f91
/bin/systemctl try-restart condor.service >/dev/null 2>&1 || :
f870f91
f870f91
%else
e052536
%post -n condor
e052536
/sbin/chkconfig --add condor
e052536
/sbin/ldconfig
Matthew Farrellee c9dd99f
#test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled
Matthew Farrellee c9dd99f
#if [ $? = 0 ]; then
Matthew Farrellee c9dd99f
#   semanage fcontext -a -t unconfined_execmem_exec_t %_sbindir/condor_startd
Matthew Farrellee c9dd99f
#   restorecon  %_sbindir/condor_startd
Matthew Farrellee c9dd99f
#fi
e052536
e052536
%preun -n condor
e052536
if [ $1 = 0 ]; then
e052536
  /sbin/service condor stop >/dev/null 2>&1 || :
e052536
  /sbin/chkconfig --del condor
e052536
fi
e052536
e052536
e052536
%postun -n condor
e052536
if [ "$1" -ge "1" ]; then
e052536
  /sbin/service condor condrestart >/dev/null 2>&1 || :
e052536
fi
e052536
/sbin/ldconfig
f870f91
%endif
e052536
e052536
%changelog
Timothy St. Clair 44dc910
* Fri Sep 16 2011 <tstclair@redhat.com> - 7.7.1-0.1
Timothy St. Clair 44dc910
- Fast forward to 7.7.1 official release tag V7_7_1
Timothy St. Clair 44dc910
- ghost var/lock and var/run in spec (BZ656562)
Timothy St. Clair 44dc910
Timothy St. Clair 044d297
* Tue Aug  10 2011 <tstclair@redhat.com> - 7.7.0-0.6
Timothy St. Clair 044d297
- Rebuild deltacloud dep
Timothy St. Clair 044d297
f870f91
* Tue Jun  8 2011 <bbockelm@cse.unl.edu> - 7.7.0-0.5
f870f91
- Start to break build products into conditionals for future EPEL5 support.
f870f91
- Begun integration of a systemd service file.
f870f91
Matthew Farrellee 41d83af
* Tue Jun  7 2011 <matt@redhat> - 7.7.0-0.4
Matthew Farrellee 41d83af
- Added tmpfiles.d/condor.conf (BZ711456)
Matthew Farrellee 41d83af
Matthew Farrellee 78efcc5
* Tue Jun  7 2011 <matt@redhat> - 7.7.0-0.3
Matthew Farrellee 78efcc5
- Fast forward to 7.7.0 pre-release at 1babb324
f870f91
- Catch libdeltacloud 0.8 update
Matthew Farrellee 78efcc5
Matthew Farrellee beb79c7
* Fri May 20 2011 <matt@redhat> - 7.7.0-0.2
Matthew Farrellee beb79c7
- Added GSI support, dependency on Globus
Matthew Farrellee beb79c7
Matthew Farrellee 0f2f822
* Fri May 13 2011 <matt@redhat> - 7.7.0-0.1
Matthew Farrellee 0f2f822
- Fast forward to 7.7.0 pre-release at 79952d6b
Matthew Farrellee 0f2f822
- Introduced ec2_gahp
Matthew Farrellee 0f2f822
- 79952d6b brings schema expectations inline with Cumin
Matthew Farrellee 0f2f822
Matthew Farrellee 88d505c
* Tue May 10 2011 <matt@redhat> - 7.6.1-0.1
Matthew Farrellee 88d505c
- Upgrade to 7.6.0 release, pre-release of 7.6.1 at 5617a464
Matthew Farrellee 7659d4d
- Upstreamed patch: log_lock_run.patch
Matthew Farrellee 7659d4d
- Introduced condor-classads to obsolete classads
Matthew Farrellee 7659d4d
- Introduced condor-aviary, package of the aviary contrib
Matthew Farrellee 88d505c
- Introduced condor-deltacloud-gahp
Matthew Farrellee 50b7e39
- Introduced condor-qmf, package of the mgmt/qmf contrib
Matthew Farrellee 7659d4d
- Transitioned from LOCAL_CONFIG_FILE to LOCAL_CONFIG_DIR
Matthew Farrellee 7659d4d
- Stopped building against gSOAP,
Matthew Farrellee 7659d4d
-  use aviary over birdbath and ec2_gahp (7.7.0) over amazon_gahp
Matthew Farrellee 06dd27e
81d4d96
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.5.5-2
81d4d96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
81d4d96
Matthew Farrellee 78c4620
* Thu Jan 27 2011 <matt@redhat> - 7.5.5-1
Matthew Farrellee 78c4620
- Rebase to 7.5.5 release
Matthew Farrellee 78c4620
-  configure+imake -> cmake
Matthew Farrellee 78c4620
-  Removed patches:
Matthew Farrellee 78c4620
-   only_dynamic_unstripped.patch
Matthew Farrellee 78c4620
-   gsoap-2.7.16-wsseapi.patch
Matthew Farrellee 78c4620
-   gsoap-2.7.16-dom.patch
Matthew Farrellee 78c4620
-  man pages are now built with source
Matthew Farrellee 78c4620
-  quill is no longer present
Matthew Farrellee 78c4620
-  condor_shared_port added
Matthew Farrellee 78c4620
-  condor_power added
Matthew Farrellee 78c4620
-  condor_credd added
Matthew Farrellee 78c4620
-  classads now built from source
Matthew Farrellee 78c4620
Matthew Farrellee d35d9f3
* Thu Jan 13 2011 <matt@redhat> - 7.4.4-1
Matthew Farrellee d35d9f3
- Upgrade to 7.4.4 release
Matthew Farrellee d35d9f3
- Upstreamed: stdsoap2.h.patch.patch
Matthew Farrellee d35d9f3
Matthew Farrellee d35d9f3
* Mon Aug 23 2010  <matt@redhat> - 7.4.3-1
Matthew Farrellee d35d9f3
- Upgrade to 7.4.3 release
Matthew Farrellee d35d9f3
- Upstreamed: dso_link_change
Matthew Farrellee d35d9f3
2aed700
* Fri Jun 11 2010  <matt@redhat> - 7.4.2-2
2aed700
- Rebuild for classads DSO version change (1:0:0)
2aed700
- Updated stdsoap2.h.patch.patch for gsoap 2.7.16
2aed700
- Added gsoap-2.7.16-wsseapi/dom.patch for gsoap 2.7.16
2aed700
5c1920c
* Wed Apr 21 2010  <matt@redhat> - 7.4.2-1
5c1920c
- Upgrade to 7.4.2 release
5c1920c
5c1920c
* Tue Jan  5 2010  <matt@redhat> - 7.4.1-1
5c1920c
- Upgrade to 7.4.1 release
5c1920c
- Upstreamed: guess_version_from_release_dir, fix_platform_check
5c1920c
- Security update (BZ549577)
5c1920c
5c1920c
* Fri Dec  4 2009  <matt@redhat> - 7.4.0-1
5c1920c
- Upgrade to 7.4.0 release
5c1920c
- Fixed POSTIN error (BZ540439)
5c1920c
- Removed NOTICE.txt source, now provided by upstream
5c1920c
- Removed no_rpmdb_query.patch, applied upstream
5c1920c
- Removed no_basename.patch, applied upstream
5c1920c
- Added only_dynamic_unstripped.patch to reduce build time
5c1920c
- Added guess_version_from_release_dir.patch, for previous
5c1920c
- Added fix_platform_check.patch
5c1920c
- Use new --with-platform, to avoid modification of make_final_tarballs
5c1920c
- Introduced vm-gahp package to hold libvirt deps
5c1920c
1455b29
* Fri Aug 28 2009  <matt@redhat> - 7.2.4-1
1455b29
- Upgrade to 7.2.4 release
9c2691f
- Removed gcc44_const.patch, accepted upstream
f99aae8
- New log, lock, run locations (BZ502175)
f99aae8
- Filtered innocuous semanage message
1455b29
5aefd3e
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 7.2.1-3
5aefd3e
- rebuilt with new openssl
5aefd3e
a0035f2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2.1-2
a0035f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a0035f2
47ebb3c
* Mon Feb 25 2009  <matt@redhat> - 7.2.1-1
a43d2c6
- Upgraded to 7.2.1 release
a43d2c6
- Pruned changes accepted upstream from condor_config.generic.patch
a43d2c6
- Removed Requires in favor of automatic dependencies on SONAMEs
a43d2c6
- Added no_rmpdb_query.patch to avoid rpm -q during a build
d6fdb83
579619e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2.0-5
579619e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
579619e
579619e
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 7.2.0-4
579619e
- rebuild with new openssl
579619e
a43d2c6
* Mon Jan 14 2009  <matt@redhat> - 7.2.0-3
893fef1
- Fixed regression: initscript was on by default, now off again
893fef1
627bc41
* Thu Jan  8 2009  <matt@redhat> - 7.2.0-2
627bc41
- (Re)added CONDOR_DEVELOPERS=NONE to the default condor_config.local
627bc41
- Added missing Obsoletes for condor-static (thanks Michael Schwendt)
627bc41
3e1318f
* Wed Jan  7 2009  <matt@redhat> - 7.2.0-1
3e1318f
- Upgraded to 7.2.0 release
3e1318f
- Removed -static package
3e1318f
- Added Fedora specific buildid
3e1318f
- Enabled KBDD, daemon to monitor X usage on systems with only USB devs
3e1318f
- Updated install process
3e1318f
671b3f3
* Wed Oct  8 2008  <matt@redhat> - 7.0.5-1
671b3f3
- Rebased on 7.0.5, security update
671b3f3
e8dbbab
* Wed Aug  6 2008  <mfarrellee@redhat> - 7.0.4-1
e8dbbab
- Updated to 7.0.4 source
e8dbbab
- Stopped using condor_configure in install step
e8dbbab
e8dbbab
* Tue Jun 10 2008  <mfarrellee@redhat> - 7.0.2-1
e8dbbab
- Updated to 7.0.2 source
e8dbbab
- Updated config, specifically HOSTALLOW_WRITE, for Personal Condor setup
e8dbbab
- Added condor_config.generic
e8dbbab
d882f97
* Mon Apr  7 2008  <mfarrellee@redhat> - 7.0.0-8
d882f97
- Modified init script to be off by default, resolves bz441279
d882f97
6094047
* Fri Apr  4 2008  <mfarrellee@redhat> - 7.0.0-7
6094047
- Updated to handle changes in gsoap dependency
6094047
e052536
* Mon Feb 11 2008  <mfarrellee@redhat> - 7.0.0-6
e052536
- Added note about how to download the source
e052536
- Added generate-tarball.sh script
e052536
e052536
* Sun Feb 10 2008  <mfarrellee@redhat> - 7.0.0-5
e052536
- The gsoap package is compiled with --disable-namespaces, which means
e052536
  soap_set_namespaces is required after each soap_init. The
e052536
  gsoap_nonamespaces.patch handles this.
e052536
e052536
* Fri Feb  8 2008  <mfarrellee@redhat> - 7.0.0-4
e052536
- Added patch to detect GCC 4.3.0 on F9
e052536
- Added patch to detect GLIBC 2.7.90 on F9
e052536
- Added BuildRequires: autoconf to allow for regeneration of configure
e052536
  script after GCC 4.3.0 detection and GLIBC 2.7.90 patches are
e052536
  applied
e052536
- Condor + GCC 4.3.0 + -O2 results in an internal compiler error
e052536
  (BZ 432090), so -O2 is removed from optflags for the time
e052536
  being. Thanks to Mike Bonnet for the suggestion on how to filter
e052536
  -O2.
e052536
e052536
* Tue Jan 22 2008  <mfarrellee@redhat> - 7.0.0-3
e052536
- Update to UW's really-final source for Condor 7.0.0 stable series
e052536
  release. It is based on the 72173 build with minor changes to the
e052536
  configure.ac related to the SRB external version.
e052536
- In addition to removing externals from the UW tarball, the NTconfig
e052536
  directory was removed because it had not gone through IP audit.
e052536
e052536
* Tue Jan 22 2008  <mfarrellee@redhat> - 7.0.0-2
e052536
- Update to UW's final source for Condor 7.0.0 stable series release
e052536
e052536
* Thu Jan 10 2008  <mfarrellee@redhat> - 7.0.0-1
e052536
- Initial package of Condor's stable series under ASL 2.0
e052536
- is_clipped.patch replaced with --without-full-port option to configure
e052536
- zlib_is_soft.patch removed, outdated by configure.ac changes
e052536
- removed autoconf dependency needed for zlib_is_soft.patch
e052536
e052536
* Tue Dec  4 2007  <mfarrellee@redhat> - 6.9.5-2
e052536
- SELinux was stopping useradd in pre because files specified root as
e052536
  the group owner for /var/lib/condor, fixed, much thanks to Phil Knirsch
e052536
e052536
* Fri Nov 30 2007  <mfarrellee@redhat> - 6.9.5-1
e052536
- Fixed release tag
e052536
- Added gSOAP support and packaged WSDL files
e052536
e052536
* Thu Nov 29 2007  <mfarrellee@redhat> - 6.9.5-0.2
e052536
- Packaged LSB init script
e052536
- Changed pre to not create the condor user's home directory, it is
e052536
  now a directory owned by the package
e052536
e052536
* Thu Nov 29 2007  <mfarrellee@redhat> - 6.9.5-0.1
e052536
- Condor 6.9.5 release, the 7.0.0 stable series candidate
e052536
- Removed x86_64_no_multilib-200711091700cvs.patch, merged upstream
e052536
- Added patch to make zlib a soft requirement, which it should be
e052536
- Disabled use of smp_mflags because of make dependency issues
e052536
- Explicitly not packaging WSDL files until the SOAP APIs are available
e052536
e052536
* Tue Nov 20 2007  <mfarrellee@redhat> - 6.9.5-0.3.200711091700cvs
e052536
- Rebuild for repo inheritance update: dependencies are now pulled
e052536
  from RHEL 5 U1 before RH Application Stack
e052536
e052536
* Thu Nov 15 2007 <mfarrellee@redhat> - 6.9.5-0.2.200711091700cvs
e052536
- Added support for building on x86_64 without multilib packages
e052536
- Made the install section more flexible, reduced need for
e052536
  make_final_tarballs to be updated
e052536
e052536
* Fri Nov 9 2007 <mfarrellee@redhat> - 6.9.5-0.1.200711091700cvs
e052536
- Working source with new ASL 2.0 license
e052536
e052536
* Fri Nov 9 2007 <mfarrellee@redhat> - 6.9.5-0.1.200711091330cvs
e052536
- Source is now stamped ASL 2.0, as of Nov 9 2007 1:30PM Central
e052536
- Changed license to ASL 2.0
e052536
- Fixed find in prep to work if no files have bad permissions
e052536
- Changed the name of the LICENSE file to match was is now release in
e052536
  the source tarball
e052536
e052536
* Tue Nov 6 2007  <mfarrellee@redhat> - 6.9.5-0.1.rc
e052536
- Added m4 dependency not in RHEL 5.1's base
e052536
- Changed chmod a-x script to use find as more files appear to have
e052536
  improper execute bits set
e052536
- Added ?dist to Release:
e052536
- condor_privsep became condor_root_switchboard
e052536
e052536
* Tue Sep 11 2007  <mfarrellee@redhat> - 6.9.5-0.3.20070907cvs
e052536
- Instead of releasing libcondorapi.so, which is improperly created
e052536
  and poorly versioned, we release libcondorapi.a, which is apparently
e052536
  more widely used, in a -static package
e052536
- Instead of installing the stripped tarball, the unstripped is now
e052536
  installed, which gives a nice debuginfo package
e052536
- Found and fixed permissions problems on a number of src files,
e052536
  issue raised by rpmlint on the debuginfo package
e052536
e052536
* Mon Sep 10 2007  <mfarrellee@redhat> - 6.9.5-0.2.20070907cvs
e052536
- Updated pre section to create condor's home directory with adduser, and
e052536
  removed _var/lib/condor from files section
e052536
- Added doc LICENSE.TXT to all files sections
e052536
- Shortened lines longer than 80 characters in this spec (except the sed line)
e052536
- Changed install section so untar'ing a release can handle fedora7 or fedora8
e052536
- Simplified the site.def and config file updates (sed + mv over mv + sed + rm)
e052536
- Added a patch (fedora_rawhide_7.91-20070907cvs.patch) to support building on
e052536
  a fedora 7.91 (current Rawhide) release
e052536
- Moved the examples from /usr/share/doc/condor... into builddir and just
e052536
  marked them as documentation
e052536
- Added a number of dir directives to force all files to be listed, no implicit
e052536
  inclusion
e052536
e052536
* Fri Sep  7 2007  <mfarrellee@redhat> - 6.9.5-0.1.20070907cvs
e052536
- Initial release