⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postgresql.spec

📁 opennms得相关源码 请大家看看
💻 SPEC
📖 第 1 页 / 共 3 页
字号:
%{!?perl:%define perl 1}%{!?tcl:%define tcl 1}%{!?tkpkg:%define tkpkg 1}%{!?odbc:%define odbc 1}%{!?jdbc:%define jdbc 1}%{!?test:%define test 1}%{!?python:%define python 1}%{!?pltcl:%define pltcl 1}%{?forceplperl:%define plperl %{expand:forceplperl}}%{!?forceplperl:%define forceplperl 0}%{!?plperl:%define plperl 0}%{!?ssl:%define ssl 0}%{!?kerberos:%define kerberos 1}# Utility feature defines.%{!?enable_mb:%define enable_mb 1}%{!?pgaccess:%define pgaccess 1}%{!?newintarray:%define newintarray 0}# Python major version.%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}Summary: PostgreSQL client programs and libraries.Name: postgresqlVersion: 7.1.3# Conventions for PostgreSQL Global Development Group RPM releases:# Official PostgreSQL Development Group RPMS have a PGDG after the release number.# Integer releases are stable -- 0.1.x releases are Pre-releases, and x.y are# test releases.# Pre-releases are those that are built from CVS snapshots or pre-release# tarballs from postgresql.org.  Official beta releases are not # considered pre-releases, nor are release candidates, as their beta or# release candidate status is reflected in the version of the tarball. Pre-# releases' versions do not change -- the pre-release tarball of 7.0.3, for# example, has the same tarball version as the final official release of 7.0.3:# but the tarball is different.# Test releases are where PostgreSQL itself is not in beta, but certain parts of# the RPM packaging (such as the spec file, the initscript, etc) are in beta.# Pre-release RPM's should not be put up on the public ftp.postgresql.org server# -- only test releases or full releases should be.Release: 0.onms.4License: BSDGroup: Applications/DatabasesSource0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gzSource3: postgresql.initSource4: file-lists.tar.gzSource5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz.md5Source6: README.rpm-distSource7: migration-scripts.tar.gzSource10: http://www.retep.org.uk/postgres/jdbc7.0-1.1.jarSource11: jdbc7.1-1.2.jarSource12: postgresql-dump.1.gzSource13: jdbc7.1-1.3.jarSource14: rh-pgdump.shSource15: postgresql-bashprofileSource16: http://www.sai.msu.su/~megera/postgres/gist/code/7.1.2/contrib-intarray.tar.gzPatch1: rpm-pgsql-7.1.patchPatch2: %{name}-7.1.plperl.patchPatch3: %{name}-7.1.s390x.patchPatch4: %{name}-conf-update.patch.bz2Buildrequires: perl glibc-develPrereq: /sbin/ldconfig initscriptsBuildPrereq: python-devel perl tcl /lib/cpp%if %sslBuildPrereq: openssl-devel%endif%if %kerberosBuildPrereq: krb5-devel%endifUrl: http://www.postgresql.org/ Obsoletes: postgresql-clientsBuildroot: %{_tmppath}/%{name}-%{version}-root# Obsolete the packages we are not building...%if ! %{plperl}Obsoletes: postgresql-plperl%endif%if ! %{tcl}Obsoletes: postgresql-tcl%endif%if ! %{tkpkg}Obsoletes: postgresql-tk%endif%if ! %{odbc}Obsoletes: postgresql-odbc%endif%if ! %{perl}Obsoletes: postgresql-perl%endif%if ! %{python}Obsoletes: postgresql-python%endif%if ! %{jdbc}Obsoletes: postgresql-jdbc%endif%if ! %{test}Obsoletes: postgresql-test%endif# This is the PostgreSQL Global Development Group Official RPMset spec file,# or a derivative thereof.# Copyright 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org># and others listed.# Major Contributors:# ---------------# Lamar Owen# Trond Eivind Glomsr鴇 <teg@redhat.com># Thomas Lockhart# Reinhard Max# Karl DeBisschop# and others in the Changelog....# This spec file and ancilliary files are licensed in accordance with # The PostgreSQL license.# On top of this file you can find the default build package list macros.  These can be overridden by defining# on the rpm command line:# rpm --define 'packagename 1' .... to force the package to build.# rpm --define 'packagename 0' .... to force the package NOT to build.# The base package, the lib package, the devel package, and the server package always get built.%descriptionPostgreSQL is an advanced Object-Relational database management system(DBMS) that supports almost all SQL constructs (includingtransactions, subselects and user-defined types and functions). Thepostgresql package includes the client programs and libraries thatyou'll need to access a PostgreSQL DBMS server.  These PostgreSQLclient programs are programs that directly manipulate the internalstructure of PostgreSQL databases on a PostgreSQL server. These clientprograms can be located on the same machine with the PostgreSQLserver, or may be on a remote machine which accesses a PostgreSQLserver over a network connection. This package contains the docsin HTML for the whole package, as well as command-line utilities formanaging PostgreSQL databases on a PostgreSQL server. If you want to manipulate a PostgreSQL database on a remote PostgreSQLserver, you need this package. You also need to install this packageif you're installing the postgresql-server package.%package libsSummary: The shared libraries required for any PostgreSQL clients.Group: Applications/DatabasesProvides: libpq.so.2.1 libpq.so.2.0 libpq.so%description libsThe postgresql-libs package provides the essential shared libraries for any PostgreSQL client program or interface. You will need to install this packageto use any other PostgreSQL package or any clients that need to connect to aPostgreSQL server.%package serverSummary: The programs needed to create and run a PostgreSQL server.Group: Applications/DatabasesPrereq: /usr/sbin/useradd /sbin/chkconfig Requires: postgresql = %{version} libpq.so%package docsSummary: Extra documentation for PostgreSQLGroup: Applications/Databases%description docsThe postgresql-docs package includes the SGML source for the documentationas well as the documentation in other formats, and some extra documentation.Install this package if you want to help with the PostgreSQL documentationproject, or if you want to generate printed documentation.%package contribSummary: Contributed source and binaries distributed with PostgreSQLGroup: Applications/DatabasesRequires: libpq.so postgresql = %{version}%description contribThe postgresql-contrib package includes the contrib tree distributed withthe PostgreSQL tarball.  Selected contrib modules are prebuilt.%description serverThe postgresql-server package includes the programs needed to createand run a PostgreSQL server, which will in turn allow you to createand maintain PostgreSQL databases.  PostgreSQL is an advancedObject-Relational database management system (DBMS) that supportsalmost all SQL constructs (including transactions, subselects anduser-defined types and functions). You should installpostgresql-server if you want to create and maintain your ownPostgreSQL databases and/or your own PostgreSQL server. You also needto install the postgresql package.%package develSummary: PostgreSQL development header files and libraries.Group: Development/LibrariesRequires: postgresql-libs = %{version}%description develThe postgresql-devel package contains the header files and librariesneeded to compile C or C++ applications which will directly interactwith a PostgreSQL database management server and the ecpg Embedded CPostgres preprocessor. You need to install this package if you want todevelop applications which will interact with a PostgreSQL server. Ifyou're installing postgresql-server, you need to install thispackage.#------------%if %plperl%package plperlSummary: The PL/Perl procedural language for PostgreSQL.Group: Applications/DatabasesRequires: perl, postgresql = %{version}%description plperlPostgreSQL is an advanced Object-Relational database managementsystem.  The postgresql-plperl package contains the the PL/Perlprocedural language for the backend.%endif#------------%if %tcl%package tclSummary: A Tcl client library, and the PL/Tcl procedural language for PostgreSQL.Group: Applications/DatabasesRequires: tcl >= 8.0%description tclPostgreSQL is an advanced Object-Relational database managementsystem.  The postgresql-tcl package contains the libpgtcl client library,the pg-enhanced pgtclsh, and the PL/Tcl procedural language for the backend.%endif#------------%if %tkpkg%package tkSummary: Tk shell and tk-based GUI for PostgreSQL.Group: Applications/DatabasesRequires: tcl >= 8.0, tk >= 8.0%description tkPostgreSQL is an advanced Object-Relational database managementsystem.  The postgresql-tk package contains the pgaccessprogram. Pgaccess is a graphical front end, written in Tcl/Tk, for thepsql and related PostgreSQL client programs.%endif#------------%if %odbc%package odbcSummary: The ODBC driver needed for accessing a PostgreSQL DB using ODBC.Group: Applications/Databases%description odbcPostgreSQL is an advanced Object-Relational database managementsystem. The postgresql-odbc package includes the ODBC (Open DataBaseConnectivity) driver and sample configuration files needed forapplications to access a PostgreSQL database using ODBC.%endif#------------%if %perl%package perlSummary: Development module needed for Perl code to access a PostgreSQL DB.Group: Applications/DatabasesRequires: perl >= 5.004-4%description perlPostgreSQL is an advanced Object-Relational database managementsystem. The postgresql-perl package includes a module for developersto use when writing Perl code for accessing a PostgreSQL database.%endif#------------%if %python%package pythonSummary: Development module for Python code to access a PostgreSQL DB.Group: Applications/DatabasesRequires: python >= 1.5Conflicts: python >= 1.6%description pythonPostgreSQL is an advanced Object-Relational database managementsystem.  The postgresql-python package includes a module fordevelopers to use when writing Python code for accessing a PostgreSQLdatabase.%endif#----------%if %jdbc%package jdbcSummary: Files needed for Java programs to access a PostgreSQL database.Group: Applications/Databases%description jdbcPostgreSQL is an advanced Object-Relational database managementsystem. The postgresql-jdbc package includes the .jar file needed forJava programs to access a PostgreSQL database.%endif#------------%if %test%package testSummary: The test suite distributed with PostgreSQL.Group: Applications/DatabasesRequires: postgresql = %{version}%description testPostgreSQL is an advanced Object-Relational database managementsystem. The postgresql-test package includes the sources and pre-builtbinaries of various tests for the PostgreSQL database managementsystem, including regression tests and benchmarks.%endif%prep%setup -q %patch1 -p1#PL/Perl stuff%patch2 -p1%patch3 -p1%patch4 -p1%if %forceplperlFORCEPLPERL=--force%elseFORCEPLPERL=%endif%if %plperl        pushd src/pl/plperl        EXTRA_INCLUDES=-I../../include plperl_installdir=$RPM_BUILD_ROOT/usr/lib perl Makefile.PL $FORCEPLPERL        popd%endif## Newer, optional intarray in contrib.%if %newintarray	pushd contrib	rm -fr intarray	tar xvzf %{SOURCE16}	popd%endif%build# Get file lists....tar xzf %{SOURCE4}#Commented out for testing on other platforms for now.# If libtool installed, copy some files....#if [ -d /usr/share/libtool ]#then#	cp /usr/share/libtool/config.* .#fi# Strip out -ffast-math from CFLAGS....export CFLAGS=`echo $RPM_OPT_FLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`export CXXFLAGS="$CFLAGS"./configure --enable-locale  --with-CXX --prefix=/usr\%if %perl	--with-perl \%endif%if %enable_mb	--enable-multibyte \%endif%if %tcl	--with-tcl \%endif%if %tkpkg%else	--without-tk \%endif%if %odbc	--with-odbc \%endif	--enable-syslog\%if %python	--with-python \%endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -