awips2/rpms/awips2.core/Installer.database-standalone-configuration/component.spec
Bryan Kowal f19cf1c4ee Issue #34 - merging build changes originally made for the new svn transition into git.
Former-commit-id: 48c7c3b950 [formerly 63f6f44fe1] [formerly 43c3807a32] [formerly 9d64e1df12 [formerly 43c3807a32 [formerly 40f016a9f9e605b039d41ed44a59a269caf8a024]]]
Former-commit-id: 9d64e1df12
Former-commit-id: 9ceb347a77 [formerly 06187b93be]
Former-commit-id: 281be5e0b7
2012-01-18 16:00:45 -06:00

53 lines
No EOL
1.3 KiB
RPMSpec

#
# AWIPS II Database Standalone Configuration Spec File
#
Name: awips2-database-standalone-configuration
Summary: AWIPS II Database Standalone 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-standalone-configuration
provides: awips2-database-configuration
%description
AWIPS II Database Server Configuration - contains the AWIPS II server
configuration files optimized for a standalone 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-standalone-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