Former-commit-id:4453ad2d10
[formerly65e1e4ee0b
] [formerlyea1c82452b
[formerly 56068aa96fa6daf113861476bf4b7aebe2021ca4]] Former-commit-id:ea1c82452b
Former-commit-id:7f1b468010
53 lines
No EOL
1.3 KiB
RPMSpec
53 lines
No EOL
1.3 KiB
RPMSpec
#
|
|
# AWIPS II Database Server Configuration Spec File
|
|
#
|
|
Name: awips2-database-server-configuration
|
|
Summary: AWIPS II Database Server Configuration
|
|
Version: %{_component_version}
|
|
Release: %{_component_release}
|
|
Group: AWIPSII
|
|
BuildRoot: /tmp
|
|
URL: N/A
|
|
License: N/A
|
|
Distribution: N/A
|
|
Vendor: Raytheon
|
|
Packager: Bryan Kowal
|
|
|
|
AutoReq: no
|
|
requires: awips2-postgresql
|
|
provides: awips2-database-server-configuration
|
|
provides: awips2-database-configuration
|
|
|
|
%description
|
|
AWIPS II Database Server Configuration - contains the AWIPS II server
|
|
configuration files optimized for a clustered, server environment.
|
|
|
|
%prep
|
|
# Verify That The User Has Specified A BuildRoot.
|
|
if [ "${RPM_BUILD_ROOT}" = "/tmp" ]
|
|
then
|
|
echo "An Actual BuildRoot Must Be Specified. Use The --buildroot Parameter."
|
|
echo "Unable To Continue ... Terminating"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/awips2/data
|
|
|
|
%build
|
|
|
|
%install
|
|
PROJECT_DIR="Installer.database-server-configuration"
|
|
CONFIGURATION_DIR="Installer.rpm/awips2.core/${PROJECT_DIR}/configuration"
|
|
CONF_FILE="postgresql.conf"
|
|
|
|
cp ${WORKSPACE_DIR}/${CONFIGURATION_DIR}/${CONF_FILE} \
|
|
${RPM_BUILD_ROOT}/awips2/data
|
|
|
|
%pre
|
|
# Remove any existing postgresql.conf files
|
|
if [ -f /awips2/data/postgresql.conf ]; then
|
|
rm -f /awips2/data/postgresql.conf
|
|
fi
|
|
|
|
%files
|
|
%attr(644,awips,fxalpha) /awips2/data/postgresql.conf |