summaryrefslogtreecommitdiffstats
path: root/postgresql92/meta-postgresql92.spec
diff options
context:
space:
mode:
authorHonza Horák <hhorak@redhat.com>2012-10-08 14:34:13 +0200
committerHonza Horák <hhorak@redhat.com>2012-10-08 14:34:13 +0200
commit4a981dd0c3f1796daff5fbe66eca91566d14e12f (patch)
treec6742357191ac0c6d2ade14a6fca3ae9d59a8153 /postgresql92/meta-postgresql92.spec
parent975f12a1e2dc660651b0892e168f6c0d7de96687 (diff)
downloaddsc-4a981dd0c3f1796daff5fbe66eca91566d14e12f.tar.gz
dsc-4a981dd0c3f1796daff5fbe66eca91566d14e12f.tar.xz
dsc-4a981dd0c3f1796daff5fbe66eca91566d14e12f.zip
postgresql upgraded to 9.2 and collection renamed to postgresql92
Diffstat (limited to 'postgresql92/meta-postgresql92.spec')
-rw-r--r--postgresql92/meta-postgresql92.spec63
1 files changed, 63 insertions, 0 deletions
diff --git a/postgresql92/meta-postgresql92.spec b/postgresql92/meta-postgresql92.spec
new file mode 100644
index 0000000..893cbc0
--- /dev/null
+++ b/postgresql92/meta-postgresql92.spec
@@ -0,0 +1,63 @@
+%{!?scl:%global scl postgresql92}
+%scl_package %scl
+
+Summary: Package that installs %scl
+Name: %scl_name
+Version: 1
+Release: 2%{?dist}
+BuildArch: noarch
+License: GPLv2+
+Group: Applications/File
+Requires: scl-utils
+Requires: %{scl_prefix}postgresql
+BuildRequires: scl-utils-build
+
+%description
+This is the main package for %scl Software Collection.
+
+%package runtime
+Summary: Package that handles %scl Software Collection.
+Group: Applications/File
+Requires: scl-utils
+
+%description runtime
+Package shipping essential scripts to work with %scl Software Collection.
+
+%package build
+Summary: Package shipping basic build configuration
+Group: Applications/File
+
+%description build
+Package shipping essential configuration macros to build %scl Software Collection.
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_scl_scripts}/root
+
+# During the build of this package, we don't know which architecture it is
+# going to be used on, so if we build on 64-bit system and use it on 32-bit,
+# the %{_libdir} would stay expanded to '.../lib64'. This way we determine
+# architecture everytime the 'scl enable ...' is run and set the
+# LD_LIBRARY_PATH accordingly
+cat >> %{buildroot}%{_scl_scripts}/enable << EOF
+export PATH=%{_bindir}:\$PATH
+export LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LIBRARY_PATH
+export LD_LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LD_LIBRARY_PATH
+EOF
+%scl_install
+
+%files
+
+%files runtime
+%scl_files
+
+%files build
+%{_root_sysconfdir}/rpm/macros.%{scl}-config
+
+%changelog
+* Wed Oct 03 2012 Honza Horak <hhorak@redhat.com> 1-2
+- update to postgresql-9.2 and rename to postgresql92
+
+* Mon Mar 19 2012 Honza Horak <hhorak@redhat.com> 1-1
+- initial packaging
+