Advertisement
Guest User

postgresql-9.1-spec

a guest
Jan 17th, 2013
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RPM Spec 36.36 KB | None | 0 0
  1. # Conventions for PostgreSQL Global Development Group RPM releases:
  2.  
  3. # Official PostgreSQL Development Group RPMS have a PGDG after the release number.
  4. # Integer releases are stable -- 0.1.x releases are Pre-releases, and x.y are
  5. # test releases.
  6.  
  7. # Pre-releases are those that are built from CVS snapshots or pre-release
  8. # tarballs from postgresql.org.  Official beta releases are not
  9. # considered pre-releases, nor are release candidates, as their beta or
  10. # release candidate status is reflected in the version of the tarball. Pre-
  11. # releases' versions do not change -- the pre-release tarball of 7.0.3, for
  12. # example, has the same tarball version as the final official release of 7.0.3:
  13. # but the tarball is different.
  14.  
  15. # Test releases are where PostgreSQL itself is not in beta, but certain parts of
  16. # the RPM packaging (such as the spec file, the initscript, etc) are in beta.
  17.  
  18. # Pre-release RPM's should not be put up on the public ftp.postgresql.org server
  19. # -- only test releases or full releases should be.
  20. # This is the PostgreSQL Global Development Group Official RPMset spec file,
  21. # or a derivative thereof.
  22. # Copyright 2003-2011 Devrim GÜNDÜZ <devrim@gunduz.org>
  23. # and others listed.
  24.  
  25. # Major Contributors:
  26. # ---------------
  27. # Lamar Owen
  28. # Tom Lane
  29. # Peter Eisentraut
  30. # Alvaro Herrera
  31. # David Fetter
  32. # Greg Smith
  33. # and others in the Changelog....
  34.  
  35. # This spec file and ancilliary files are licensed in accordance with
  36. # The PostgreSQL license.
  37.  
  38. # In this file you can find the default build package list macros.  These can be overridden by defining
  39. # on the rpm command line:
  40. # rpm --define 'packagename 1' .... to force the package to build.
  41. # rpm --define 'packagename 0' .... to force the package NOT to build.
  42. # The base package, the lib package, the devel package, and the server package always get built.
  43.  
  44. %define beta 0
  45. %{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
  46.  
  47. %{!?kerbdir:%define kerbdir "/usr"}
  48.  
  49. # This is a macro to be used with find_lang and other stuff
  50. %define majorversion 9.1
  51. %define packageversion 91
  52. %define oname postgresql
  53. %define pgbaseinstdir   /usr/pgsql-%{majorversion}
  54.  
  55. %{!?test:%define test 1}
  56. %{!?plpython:%define plpython 1}
  57. %{!?pltcl:%define pltcl 1}
  58. %{!?plperl:%define plperl 1}
  59. %{!?ssl:%define ssl 1}
  60. %{!?intdatetimes:%define intdatetimes 1}
  61. %{!?kerberos:%define kerberos 1}
  62. %{!?nls:%define nls 1}
  63. %{!?xml:%define xml 1}
  64. %{!?pam:%define pam 1}
  65. %{!?disablepgfts:%define disablepgfts 0}
  66. %{!?runselftest:%define runselftest 0}
  67. %{!?uuid:%define uuid 1}
  68. %{!?ldap:%define ldap 1}
  69.  
  70. Summary:    PostgreSQL client programs and libraries
  71. Name:       %{oname}%{packageversion}
  72. Version:    9.1.7
  73. Release:    1PGDG%{?dist}
  74. License:    PostgreSQL
  75. Group:      Applications/Databases
  76. Url:        http://www.postgresql.org/
  77.  
  78. Source0:    ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
  79. Source3:    postgresql.init
  80. Source4:    Makefile.regress
  81. Source5:    pg_config.h
  82. Source6:    README.rpm-dist
  83. Source7:    ecpg_config.h
  84. Source9:    postgresql-9.1-libs.conf
  85. Source12:   http://www.postgresql.org/files/documentation/pdf/%{majorversion}/%{oname}-%{majorversion}-A4.pdf
  86. Source14:   postgresql.pam
  87. Source16:   filter-requires-perl-Pg.sh
  88.  
  89. Patch1:     rpm-pgsql.patch
  90. Patch3:     postgresql-logging.patch
  91. Patch6:     postgresql-perl-rpath.patch
  92. Patch8:     postgresql-prefer-ncurses.patch
  93.  
  94. Buildrequires:  perl glibc-devel bison flex
  95. Requires:   /sbin/ldconfig initscripts
  96.  
  97. %if %plperl
  98. BuildRequires: perl-ExtUtils-Embed
  99. BuildRequires: perl(ExtUtils::MakeMaker)
  100. %endif
  101.  
  102. %if %plpython
  103. BuildRequires:  python-devel
  104. %endif
  105.  
  106. %if %pltcl
  107. BuildRequires:  tcl-devel
  108. %endif
  109.  
  110. BuildRequires:  readline-devel
  111. BuildRequires:  zlib-devel >= 1.0.4
  112.  
  113. %if %ssl
  114. BuildRequires:  openssl-devel
  115. %endif
  116.  
  117. %if %kerberos
  118. BuildRequires:  krb5-devel
  119. BuildRequires:  e2fsprogs-devel
  120. %endif
  121.  
  122. %if %nls
  123. BuildRequires:  gettext >= 0.10.35
  124. %endif
  125.  
  126. %if %xml
  127. BuildRequires:  libxml2-devel libxslt-devel
  128. %endif
  129.  
  130. %if %pam
  131. BuildRequires:  pam-devel
  132. %endif
  133.  
  134. %if %uuid
  135. BuildRequires:  uuid-devel
  136. %endif
  137.  
  138. %if %ldap
  139. BuildRequires:  openldap-devel
  140. %endif
  141.  
  142. Requires:   %{name}-libs = %{version}-%{release}
  143. Requires(post): %{_sbindir}/update-alternatives
  144. Requires(postun):   %{_sbindir}/update-alternatives
  145.  
  146. BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  147. Provides:   postgresql
  148.  
  149. %description
  150. PostgreSQL is an advanced Object-Relational database management system
  151. (DBMS) that supports almost all SQL constructs (including
  152. transactions, subselects and user-defined types and functions). The
  153. postgresql package includes the client programs and libraries that
  154. you'll need to access a PostgreSQL DBMS server.  These PostgreSQL
  155. client programs are programs that directly manipulate the internal
  156. structure of PostgreSQL databases on a PostgreSQL server. These client
  157. programs can be located on the same machine with the PostgreSQL
  158. server, or may be on a remote machine which accesses a PostgreSQL
  159. server over a network connection. This package contains the command-line
  160. utilities for managing PostgreSQL databases on a PostgreSQL server.
  161.  
  162. If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
  163. server, you need this package. You also need to install this package
  164. if you're installing the postgresql91-server package.
  165.  
  166. %package libs
  167. Summary:    The shared libraries required for any PostgreSQL clients
  168. Group:      Applications/Databases
  169. Provides:   libpq.so
  170. Provides:   postgresql-libs
  171.  
  172. %description libs
  173. The postgresql91-libs package provides the essential shared libraries for any
  174. PostgreSQL client program or interface. You will need to install this package
  175. to use any other PostgreSQL package or any clients that need to connect to a
  176. PostgreSQL server.
  177.  
  178. %package server
  179. Summary:    The programs needed to create and run a PostgreSQL server
  180. Group:      Applications/Databases
  181. Requires:   /usr/sbin/useradd /sbin/chkconfig
  182. Requires:   %{name} = %{version}-%{release}
  183. Provides:   postgresql-server
  184.  
  185. %description server
  186. The postgresql91-server package includes the programs needed to create
  187. and run a PostgreSQL server, which will in turn allow you to create
  188. and maintain PostgreSQL databases.  PostgreSQL is an advanced
  189. Object-Relational database management system (DBMS) that supports
  190. almost all SQL constructs (including transactions, subselects and
  191. user-defined types and functions). You should install
  192. postgresql91-server if you want to create and maintain your own
  193. PostgreSQL databases and/or your own PostgreSQL server. You also need
  194. to install the postgresql package.
  195.  
  196. %package docs
  197. Summary:    Extra documentation for PostgreSQL
  198. Group:      Applications/Databases
  199. Provides:   postgresql-docs
  200.  
  201. %description docs
  202. The postgresql91-docs package includes the SGML source for the documentation
  203. as well as the documentation in PDF format and some extra documentation.
  204. Install this package if you want to help with the PostgreSQL documentation
  205. project, or if you want to generate printed documentation. This package also
  206. includes HTML version of the documentation.
  207.  
  208. %package contrib
  209. Summary:    Contributed source and binaries distributed with PostgreSQL
  210. Group:      Applications/Databases
  211. Requires:   %{name} = %{version}
  212. Provides:   postgresql-contrib
  213.  
  214. %description contrib
  215. The postgresql91-contrib package contains contributed packages that are
  216. included in the PostgreSQL distribution.
  217.  
  218. %package devel
  219. Summary:    PostgreSQL development header files and libraries
  220. Group:      Development/Libraries
  221. Requires:   %{name} = %{version}-%{release}
  222. Provides:   postgresql-devel
  223.  
  224. %description devel
  225. The postgresql91-devel package contains the header files and libraries
  226. needed to compile C or C++ applications which will directly interact
  227. with a PostgreSQL database management server and the ecpg Embedded C
  228. Postgres preprocessor. You need to install this package if you want to
  229. develop applications which will interact with a PostgreSQL server.
  230.  
  231. %if %plperl
  232. %package plperl
  233. Summary:    The Perl procedural language for PostgreSQL
  234. Group:      Applications/Databases
  235. Requires:   %{name}-server = %{version}-%{release}
  236. %ifarch ppc ppc64
  237. BuildRequires:  perl-devel
  238. %endif
  239. Obsoletes:  postgresql-pl
  240. Provides:   postgresql-plperl
  241.  
  242. %description plperl
  243. PostgreSQL is an advanced Object-Relational database management
  244. system. The postgresql91-plperl package contains the PL/Perl language
  245. for the backend.
  246. %endif
  247.  
  248. %if %plpython
  249. %package plpython
  250. Summary:    The Python procedural language for PostgreSQL
  251. Group:      Applications/Databases
  252. Requires:   %{name} = %{version}
  253. Requires:   %{name}-server = %{version}
  254. Obsoletes:  postgresql-pl
  255. Provides:   postgresql-plpython
  256.  
  257. %description plpython
  258. PostgreSQL is an advanced Object-Relational database management
  259. system. The postgresql91-plpython package contains the PL/Python language
  260. for the backend.
  261. %endif
  262.  
  263. %if %pltcl
  264. %package pltcl
  265. Summary:    The Tcl procedural language for PostgreSQL
  266. Group:      Applications/Databases
  267. Requires:   %{name} = %{version}
  268. Requires:   %{name}-server = %{version}
  269. Obsoletes:  postgresql-pl
  270. Provides:   postgresql-pltcl
  271.  
  272. %description pltcl
  273. PostgreSQL is an advanced Object-Relational database management
  274. system. The postgresql91-pltcl package contains the PL/Tcl language
  275. for the backend.
  276. %endif
  277.  
  278. %if %test
  279. %package test
  280. Summary:    The test suite distributed with PostgreSQL
  281. Group:      Applications/Databases
  282. Requires:   %{name}-server = %{version}-%{release}
  283. Provides:   postgresql-test
  284.  
  285. %description test
  286. PostgreSQL is an advanced Object-Relational database management
  287. system. The postgresql-test package includes the sources and pre-built
  288. binaries of various tests for the PostgreSQL database management
  289. system, including regression tests and benchmarks.
  290. %endif
  291.  
  292. %define __perl_requires %{SOURCE16}
  293.  
  294. %prep
  295. %setup -q -n %{oname}-%{version}
  296. %patch1 -p1
  297. %patch3 -p1
  298. # patch5 is applied later
  299. %patch6 -p1
  300. %patch8 -p1
  301.  
  302. cp -p %{SOURCE12} .
  303.  
  304. %build
  305.  
  306. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
  307. CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
  308. %if %kerberos
  309. CPPFLAGS="${CPPFLAGS} -I%{_includedir}/et" ; export CPPFLAGS
  310. CFLAGS="${CFLAGS} -I%{_includedir}/et" ; export CFLAGS
  311. %endif
  312.  
  313. # Strip out -ffast-math from CFLAGS....
  314.  
  315. CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
  316.  
  317. export LIBNAME=%{_lib}
  318. ./configure --disable-rpath \
  319.     --prefix=%{pgbaseinstdir} \
  320.     --includedir=%{pgbaseinstdir}/include \
  321.     --mandir=%{pgbaseinstdir}/share/man \
  322.     --datadir=%{pgbaseinstdir}/share \
  323. %if %beta
  324.     --enable-debug \
  325.     --enable-cassert \
  326. %endif
  327. %if %plperl
  328.     --with-perl \
  329. %endif
  330. %if %plpython
  331.     --with-python \
  332. %endif
  333. %if %pltcl
  334.     --with-tcl \
  335.     --with-tclconfig=%{_libdir} \
  336. %endif
  337. %if %ssl
  338.     --with-openssl \
  339. %endif
  340. %if %pam
  341.     --with-pam \
  342. %endif
  343. %if %kerberos
  344.     --with-krb5 \
  345.     --with-gssapi \
  346.     --with-includes=%{kerbdir}/include \
  347.     --with-libraries=%{kerbdir}/%{_lib} \
  348. %endif
  349. %if %nls
  350.     --enable-nls \
  351. %endif
  352. %if !%intdatetimes
  353.     --disable-integer-datetimes \
  354. %endif
  355. %if %disablepgfts
  356.     --disable-thread-safety \
  357. %endif
  358. %if %uuid
  359.     --with-ossp-uuid \
  360. %endif
  361. %if %xml
  362.     --with-libxml \
  363.     --with-libxslt \
  364. %endif
  365. %if %ldap
  366.     --with-ldap \
  367. %endif
  368.     --with-system-tzdata=%{_datadir}/zoneinfo \
  369.     --sysconfdir=/etc/sysconfig/pgsql \
  370.     --docdir=%{_docdir}
  371.  
  372. make %{?_smp_mflags} all
  373. make %{?_smp_mflags} -C contrib all
  374. %if %uuid
  375. make %{?_smp_mflags} -C contrib/uuid-ossp all
  376. %endif
  377.  
  378. # Have to hack makefile to put correct path into tutorial scripts
  379. sed "s|C=\`pwd\`;|C=%{pgbaseinstdir}/lib/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
  380. make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
  381. rm -f src/tutorial/GNUmakefile
  382.  
  383. %if %runselftest
  384.     pushd src/test/regress
  385.     make all
  386.     cp ../../../contrib/spi/refint.so .
  387.     cp ../../../contrib/spi/autoinc.so .
  388.     make MAX_CONNECTIONS=5 check
  389.     make clean
  390.     popd
  391.     pushd src/pl
  392.     make MAX_CONNECTIONS=5 check
  393.     popd
  394.     pushd contrib
  395.     make MAX_CONNECTIONS=5 check
  396.     popd
  397. %endif
  398.  
  399. %if %test
  400.     pushd src/test/regress
  401.     make all
  402.     popd
  403. %endif
  404.  
  405. %install
  406. rm -rf %{buildroot}
  407.  
  408. make DESTDIR=%{buildroot} install
  409. mkdir -p %{buildroot}%{pgbaseinstdir}/share/extensions/
  410. make -C contrib DESTDIR=%{buildroot} install
  411. %if %uuid
  412. make -C contrib/uuid-ossp DESTDIR=%{buildroot} install
  413. %endif
  414.  
  415. # multilib header hack; note pg_config.h is installed in two places!
  416. # we only apply this to known Red Hat multilib arches, per bug #177564
  417. case `uname -i` in
  418.     i386 | x86_64 | ppc | ppc64 | s390 | s390x)
  419.         mv %{buildroot}%{pgbaseinstdir}/include/pg_config.h %{buildroot}%{pgbaseinstdir}/include/pg_config_`uname -i`.h
  420.         install -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/
  421.         mv %{buildroot}%{pgbaseinstdir}/include/server/pg_config.h %{buildroot}%{pgbaseinstdir}/include/server/pg_config_`uname -i`.h
  422.         install -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/server/
  423.         mv %{buildroot}%{pgbaseinstdir}/include/ecpg_config.h %{buildroot}%{pgbaseinstdir}/include/ecpg_config_`uname -i`.h
  424.         install -m 644 %{SOURCE7} %{buildroot}%{pgbaseinstdir}/include/
  425.         ;;
  426.     *)
  427.     ;;
  428. esac
  429.  
  430. install -d %{buildroot}/etc/rc.d/init.d
  431. sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE3} > postgresql.init
  432. install -m 755 postgresql.init %{buildroot}/etc/rc.d/init.d/postgresql-%{majorversion}
  433.  
  434. %if %pam
  435. install -d %{buildroot}/etc/pam.d
  436. install -m 644 %{SOURCE14} %{buildroot}/etc/pam.d/postgresql%{packageversion}
  437. %endif
  438.  
  439. # PGDATA needs removal of group and world permissions due to pg_pwd hole.
  440. install -d -m 700 %{buildroot}/var/lib/pgsql/%{majorversion}/data
  441.  
  442. # backups of data go here...
  443. install -d -m 700 %{buildroot}/var/lib/pgsql/%{majorversion}/backups
  444.  
  445. # Create the multiple postmaster startup directory
  446. install -d -m 700 %{buildroot}/etc/sysconfig/pgsql/%{majorversion}
  447.  
  448. # Install linker conf file under postgresql installation directory.
  449. # We will install the latest version via alternatives.
  450. install -d -m 755 %{buildroot}%{pgbaseinstdir}/share/
  451. install -m 700 %{SOURCE9} %{buildroot}%{pgbaseinstdir}/share/
  452.  
  453. %if %test
  454.     # tests. There are many files included here that are unnecessary,
  455.     # but include them anyway for completeness.  We replace the original
  456.     # Makefiles, however.
  457.     mkdir -p %{buildroot}%{pgbaseinstdir}/lib/test
  458.     cp -a src/test/regress %{buildroot}%{pgbaseinstdir}/lib/test
  459.     install -m 0755 contrib/spi/refint.so %{buildroot}%{pgbaseinstdir}/lib/test/regress
  460.     install -m 0755 contrib/spi/autoinc.so %{buildroot}%{pgbaseinstdir}/lib/test/regress
  461.     pushd  %{buildroot}%{pgbaseinstdir}/lib/test/regress
  462.     strip *.so
  463.     rm -f GNUmakefile Makefile *.o
  464.     chmod 0755 pg_regress regress.so
  465.     popd
  466.     cp %{SOURCE4} %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile
  467.     chmod 0644 %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile
  468. %endif
  469.  
  470. # Fix some more documentation
  471. # gzip doc/internals.ps
  472. cp %{SOURCE6} README.rpm-dist
  473. mkdir -p %{buildroot}%{pgbaseinstdir}/share/doc/html
  474. mv doc/src/sgml/html doc
  475. mkdir -p %{buildroot}%{pgbaseinstdir}/share/man/
  476. mv doc/src/sgml/man1 doc/src/sgml/man3 doc/src/sgml/man7  %{buildroot}%{pgbaseinstdir}/share/man/
  477. rm -rf %{buildroot}%{_docdir}/pgsql
  478.  
  479. # initialize file lists
  480. cp /dev/null main.lst
  481. cp /dev/null libs.lst
  482. cp /dev/null server.lst
  483. cp /dev/null devel.lst
  484. cp /dev/null plperl.lst
  485. cp /dev/null pltcl.lst
  486. cp /dev/null plpython.lst
  487.  
  488. %if %nls
  489. %find_lang ecpg-%{majorversion}
  490. %find_lang ecpglib6-%{majorversion}
  491. %find_lang initdb-%{majorversion}
  492. %find_lang libpq5-%{majorversion}
  493. %find_lang pg_basebackup-%{majorversion}
  494. %find_lang pg_config-%{majorversion}
  495. %find_lang pg_controldata-%{majorversion}
  496. %find_lang pg_ctl-%{majorversion}
  497. %find_lang pg_dump-%{majorversion}
  498. %find_lang pg_resetxlog-%{majorversion}
  499. %find_lang pgscripts-%{majorversion}
  500. %if %plperl
  501. %find_lang plperl-%{majorversion}
  502. cat plperl-%{majorversion}.lang > pg_plperl.lst
  503. %endif
  504. %find_lang plpgsql-%{majorversion}
  505. %if %plpython
  506. %find_lang plpython-%{majorversion}
  507. cat plpython-%{majorversion}.lang > pg_plpython.lst
  508. %endif
  509. %if %pltcl
  510. %find_lang pltcl-%{majorversion}
  511. cat pltcl-%{majorversion}.lang > pg_pltcl.lst
  512. %endif
  513. %find_lang postgres-%{majorversion}
  514. %find_lang psql-%{majorversion}
  515. %endif
  516.  
  517. cat libpq5-%{majorversion}.lang > pg_libpq5.lst
  518. cat pg_config-%{majorversion}.lang ecpg-%{majorversion}.lang ecpglib6-%{majorversion}.lang > pg_devel.lst
  519. cat initdb-%{majorversion}.lang pg_ctl-%{majorversion}.lang psql-%{majorversion}.lang pg_dump-%{majorversion}.lang pg_basebackup-%{majorversion}.lang pgscripts-%{majorversion}.lang > pg_main.lst
  520. cat postgres-%{majorversion}.lang pg_resetxlog-%{majorversion}.lang pg_controldata-%{majorversion}.lang plpgsql-%{majorversion}.lang > pg_server.lst
  521.  
  522. %post libs -p /sbin/ldconfig
  523. %postun libs -p /sbin/ldconfig
  524.  
  525. %pre server
  526. groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
  527. useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
  528.     -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
  529. touch /var/log/pgsql
  530. chown postgres:postgres /var/log/pgsql
  531. chmod 0700 /var/log/pgsql
  532.  
  533. %post server
  534. chkconfig --add postgresql-9.1
  535. /sbin/ldconfig
  536. # postgres' .bash_profile.
  537. # We now don't install .bash_profile as we used to in pre 9.0. Instead, use cat,
  538. # so that package manager will be happy during upgrade to new major version.
  539. echo "[ -f /etc/profile ] && source /etc/profile
  540. PGDATA=/var/lib/pgsql/9.1/data
  541. export PGDATA" >  /var/lib/pgsql/.bash_profile
  542. chown postgres: /var/lib/pgsql/.bash_profile
  543.  
  544. %preun server
  545. if [ $1 = 0 ] ; then
  546.     /sbin/service postgresql-9.1 condstop >/dev/null 2>&1
  547.     chkconfig --del postgresql-9.1
  548. fi
  549.  
  550. %postun server
  551. /sbin/ldconfig
  552. if [ $1 -ge 1 ]; then
  553.   /sbin/service postgresql-9.1 condrestart >/dev/null 2>&1
  554. fi
  555.  
  556. %if %plperl
  557. %post   -p /sbin/ldconfig   plperl
  558. %postun -p /sbin/ldconfig   plperl
  559. %endif
  560.  
  561. %if %plpython
  562. %post   -p /sbin/ldconfig   plpython
  563. %postun -p /sbin/ldconfig   plpython
  564. %endif
  565.  
  566. %if %pltcl
  567. %post   -p /sbin/ldconfig   pltcl
  568. %postun -p /sbin/ldconfig   pltcl
  569. %endif
  570.  
  571. %if %test
  572. %post test
  573. chown -R postgres:postgres /usr/share/pgsql/test >/dev/null 2>&1 || :
  574. %endif
  575.  
  576. # Create alternatives entries for common binaries and man files
  577. %post
  578. %{_sbindir}/update-alternatives --install /usr/bin/psql pgsql-psql %{pgbaseinstdir}/bin/psql 910
  579. %{_sbindir}/update-alternatives --install /usr/bin/clusterdb  pgsql-clusterdb  %{pgbaseinstdir}/bin/clusterdb 910
  580. %{_sbindir}/update-alternatives --install /usr/bin/createdb   pgsql-createdb   %{pgbaseinstdir}/bin/createdb 910
  581. %{_sbindir}/update-alternatives --install /usr/bin/createlang pgsql-createlang %{pgbaseinstdir}/bin/createlang 910
  582. %{_sbindir}/update-alternatives --install /usr/bin/createuser pgsql-createuser %{pgbaseinstdir}/bin/createuser 910
  583. %{_sbindir}/update-alternatives --install /usr/bin/dropdb     pgsql-dropdb     %{pgbaseinstdir}/bin/dropdb 910
  584. %{_sbindir}/update-alternatives --install /usr/bin/droplang   pgsql-droplang   %{pgbaseinstdir}/bin/droplang 910
  585. %{_sbindir}/update-alternatives --install /usr/bin/dropuser   pgsql-dropuser   %{pgbaseinstdir}/bin/dropuser 910
  586. %{_sbindir}/update-alternatives --install /usr/bin/pg_dump    pgsql-pg_dump    %{pgbaseinstdir}/bin/pg_dump 910
  587. %{_sbindir}/update-alternatives --install /usr/bin/pg_dumpall pgsql-pg_dumpall %{pgbaseinstdir}/bin/pg_dumpall 910
  588. %{_sbindir}/update-alternatives --install /usr/bin/pg_restore pgsql-pg_restore %{pgbaseinstdir}/bin/pg_restore 910
  589. %{_sbindir}/update-alternatives --install /usr/bin/reindexdb  pgsql-reindexdb  %{pgbaseinstdir}/bin/reindexdb 910
  590. %{_sbindir}/update-alternatives --install /usr/bin/vacuumdb   pgsql-vacuumdb   %{pgbaseinstdir}/bin/vacuumdb 910
  591. %{_sbindir}/update-alternatives --install /usr/share/man/man1/clusterdb.1  pgsql-clusterdbman     %{pgbaseinstdir}/share/man/man1/clusterdb.1 910
  592. %{_sbindir}/update-alternatives --install /usr/share/man/man1/createdb.1   pgsql-createdbman      %{pgbaseinstdir}/share/man/man1/createdb.1 910
  593. %{_sbindir}/update-alternatives --install /usr/share/man/man1/createlang.1 pgsql-createlangman    %{pgbaseinstdir}/share/man/man1/createlang.1 910
  594. %{_sbindir}/update-alternatives --install /usr/share/man/man1/createuser.1 pgsql-createuserman    %{pgbaseinstdir}/share/man/man1/createuser.1 910
  595. %{_sbindir}/update-alternatives --install /usr/share/man/man1/dropdb.1     pgsql-dropdbman        %{pgbaseinstdir}/share/man/man1/dropdb.1 910
  596. %{_sbindir}/update-alternatives --install /usr/share/man/man1/droplang.1   pgsql-droplangman      %{pgbaseinstdir}/share/man/man1/droplang.1 910
  597. %{_sbindir}/update-alternatives --install /usr/share/man/man1/dropuser.1   pgsql-dropuserman      %{pgbaseinstdir}/share/man/man1/dropuser.1 910
  598. %{_sbindir}/update-alternatives --install /usr/share/man/man1/pg_dump.1    pgsql-pg_dumpman   %{pgbaseinstdir}/share/man/man1/pg_dump.1 910
  599. %{_sbindir}/update-alternatives --install /usr/share/man/man1/pg_dumpall.1 pgsql-pg_dumpallman    %{pgbaseinstdir}/share/man/man1/pg_dumpall.1 910
  600. %{_sbindir}/update-alternatives --install /usr/share/man/man1/pg_restore.1 pgsql-pg_restoreman    %{pgbaseinstdir}/share/man/man1/pg_restore.1 910
  601. %{_sbindir}/update-alternatives --install /usr/share/man/man1/psql.1       pgsql-psqlman          %{pgbaseinstdir}/share/man/man1/psql.1 910
  602. %{_sbindir}/update-alternatives --install /usr/share/man/man1/reindexdb.1  pgsql-reindexdbman     %{pgbaseinstdir}/share/man/man1/reindexdb.1 910
  603. %{_sbindir}/update-alternatives --install /usr/share/man/man1/vacuumdb.1   pgsql-vacuumdbman      %{pgbaseinstdir}/share/man/man1/vacuumdb.1 910
  604. %{_sbindir}/update-alternatives --install /etc/ld.so.conf.d/postgresql-pgdg-libs.conf   pgsql-ld-conf        %{pgbaseinstdir}/share/postgresql-9.1-libs.conf 910
  605.  
  606. # Drop alternatives entries for common binaries and man files
  607. %postun
  608.   if [ "$1" -eq 0 ]
  609.    then
  610.     # Only remove these links if the package is completely removed from the system (vs.just being upgraded)
  611.     %{_sbindir}/update-alternatives --remove pgsql-psql     %{pgbaseinstdir}/bin/psql
  612.     %{_sbindir}/update-alternatives --remove pgsql-clusterdb    %{pgbaseinstdir}/bin/clusterdb
  613.     %{_sbindir}/update-alternatives --remove pgsql-clusterdbman %{pgbaseinstdir}/share/man/man1/clusterdb.1
  614.     %{_sbindir}/update-alternatives --remove pgsql-createdb     %{pgbaseinstdir}/bin/createdb
  615.     %{_sbindir}/update-alternatives --remove pgsql-createdbman  %{pgbaseinstdir}/share/man/man1/createdb.1
  616.     %{_sbindir}/update-alternatives --remove pgsql-createlang   %{pgbaseinstdir}/bin/createlang
  617.     %{_sbindir}/update-alternatives --remove pgsql-createlangman    %{pgbaseinstdir}/share/man/man1/createlang.1
  618.     %{_sbindir}/update-alternatives --remove pgsql-createuser   %{pgbaseinstdir}/bin/createuser
  619.     %{_sbindir}/update-alternatives --remove pgsql-createuserman    %{pgbaseinstdir}/share/man/man1/createuser.1
  620.     %{_sbindir}/update-alternatives --remove pgsql-dropdb       %{pgbaseinstdir}/bin/dropdb
  621.     %{_sbindir}/update-alternatives --remove pgsql-dropdbman    %{pgbaseinstdir}/share/man/man1/dropdb.1
  622.     %{_sbindir}/update-alternatives --remove pgsql-droplang     %{pgbaseinstdir}/bin/droplang
  623.     %{_sbindir}/update-alternatives --remove pgsql-droplangman  %{pgbaseinstdir}/share/man/man1/droplang.1
  624.     %{_sbindir}/update-alternatives --remove pgsql-dropuser     %{pgbaseinstdir}/bin/dropuser
  625.     %{_sbindir}/update-alternatives --remove pgsql-dropuserman  %{pgbaseinstdir}/share/man/man1/dropuser.1
  626.     %{_sbindir}/update-alternatives --remove pgsql-pg_dump      %{pgbaseinstdir}/bin/pg_dump
  627.     %{_sbindir}/update-alternatives --remove pgsql-pg_dumpall   %{pgbaseinstdir}/bin/pg_dumpall
  628.     %{_sbindir}/update-alternatives --remove pgsql-pg_dumpallman    %{pgbaseinstdir}/share/man/man1/pg_dumpall.1
  629.     %{_sbindir}/update-alternatives --remove pgsql-pg_dumpman   %{pgbaseinstdir}/share/man/man1/pg_dump.1
  630.     %{_sbindir}/update-alternatives --remove pgsql-pg_restore   %{pgbaseinstdir}/bin/pg_restore
  631.     %{_sbindir}/update-alternatives --remove pgsql-pg_restoreman    %{pgbaseinstdir}/share/man/man1/pg_restore.1
  632.     %{_sbindir}/update-alternatives --remove pgsql-psqlman      %{pgbaseinstdir}/share/man/man1/psql.1
  633.     %{_sbindir}/update-alternatives --remove pgsql-reindexdb    %{pgbaseinstdir}/bin/reindexdb
  634.     %{_sbindir}/update-alternatives --remove pgsql-reindexdbman %{pgbaseinstdir}/share/man/man1/reindexdb.1
  635.     %{_sbindir}/update-alternatives --remove pgsql-vacuumdb     %{pgbaseinstdir}/bin/vacuumdb
  636.     %{_sbindir}/update-alternatives --remove pgsql-vacuumdbman  %{pgbaseinstdir}/share/man/man1/vacuumdb.1
  637.     %{_sbindir}/update-alternatives --remove pgsql-ld-conf      %{pgbaseinstdir}/share/postgresql-9.1-libs.conf
  638. fi
  639.  
  640. %clean
  641. rm -rf %{buildroot}
  642.  
  643. # FILES section.
  644.  
  645. %files -f pg_main.lst
  646. %defattr(-,root,root)
  647. %doc doc/KNOWN_BUGS doc/MISSING_FEATURES
  648. %doc COPYRIGHT doc/bug.template
  649. %doc README.rpm-dist
  650. %{pgbaseinstdir}/bin/clusterdb
  651. %{pgbaseinstdir}/bin/createdb
  652. %{pgbaseinstdir}/bin/createlang
  653. %{pgbaseinstdir}/bin/createuser
  654. %{pgbaseinstdir}/bin/dropdb
  655. %{pgbaseinstdir}/bin/droplang
  656. %{pgbaseinstdir}/bin/dropuser
  657. %{pgbaseinstdir}/bin/pg_basebackup
  658. %{pgbaseinstdir}/bin/pg_config
  659. %{pgbaseinstdir}/bin/pg_dump
  660. %{pgbaseinstdir}/bin/pg_dumpall
  661. %{pgbaseinstdir}/bin/pg_restore
  662. %{pgbaseinstdir}/bin/pg_test_fsync
  663. %{pgbaseinstdir}/bin/psql
  664. %{pgbaseinstdir}/bin/reindexdb
  665. %{pgbaseinstdir}/bin/vacuumdb
  666. %{pgbaseinstdir}/share/man/man1/clusterdb.*
  667. %{pgbaseinstdir}/share/man/man1/createdb.*
  668. %{pgbaseinstdir}/share/man/man1/createlang.*
  669. %{pgbaseinstdir}/share/man/man1/createuser.*
  670. %{pgbaseinstdir}/share/man/man1/dropdb.*
  671. %{pgbaseinstdir}/share/man/man1/droplang.*
  672. %{pgbaseinstdir}/share/man/man1/dropuser.*
  673. %{pgbaseinstdir}/share/man/man1/pg_basebackup.*
  674. %{pgbaseinstdir}/share/man/man1/pg_config.*
  675. %{pgbaseinstdir}/share/man/man1/pg_dump.*
  676. %{pgbaseinstdir}/share/man/man1/pg_dumpall.*
  677. %{pgbaseinstdir}/share/man/man1/pg_restore.*
  678. %{pgbaseinstdir}/share/man/man1/psql.*
  679. %{pgbaseinstdir}/share/man/man1/reindexdb.*
  680. %{pgbaseinstdir}/share/man/man1/vacuumdb.*
  681. %{pgbaseinstdir}/share/man/man3/*
  682. %{pgbaseinstdir}/share/man/man7/*
  683.  
  684. %files docs
  685. %defattr(-,root,root)
  686. %doc doc/src/*
  687. %doc *-A4.pdf
  688. %doc src/tutorial
  689. %doc doc/html
  690.  
  691. %files contrib
  692. %defattr(-,root,root)
  693. %{pgbaseinstdir}/lib/_int.so
  694. %{pgbaseinstdir}/lib/adminpack.so
  695. %{pgbaseinstdir}/lib/auth_delay.so
  696. %{pgbaseinstdir}/lib/autoinc.so
  697. %{pgbaseinstdir}/lib/auto_explain.so
  698. %{pgbaseinstdir}/lib/btree_gin.so
  699. %{pgbaseinstdir}/lib/btree_gist.so
  700. %{pgbaseinstdir}/lib/chkpass.so
  701. %{pgbaseinstdir}/lib/citext.so
  702. %{pgbaseinstdir}/lib/cube.so
  703. %{pgbaseinstdir}/lib/dblink.so
  704. %{pgbaseinstdir}/lib/dummy_seclabel.so
  705. %{pgbaseinstdir}/lib/earthdistance.so
  706. %{pgbaseinstdir}/lib/file_fdw.so*
  707. %{pgbaseinstdir}/lib/fuzzystrmatch.so
  708. %{pgbaseinstdir}/lib/insert_username.so
  709. %{pgbaseinstdir}/lib/isn.so
  710. %{pgbaseinstdir}/lib/hstore.so
  711. %{pgbaseinstdir}/lib/passwordcheck.so
  712. %{pgbaseinstdir}/lib/pg_freespacemap.so
  713. %{pgbaseinstdir}/lib/pg_stat_statements.so
  714. %{pgbaseinstdir}/lib/pgrowlocks.so
  715. %{pgbaseinstdir}/lib/sslinfo.so
  716. %{pgbaseinstdir}/lib/lo.so
  717. %{pgbaseinstdir}/lib/ltree.so
  718. %{pgbaseinstdir}/lib/moddatetime.so
  719. %{pgbaseinstdir}/lib/pageinspect.so
  720. %{pgbaseinstdir}/lib/pgcrypto.so
  721. %{pgbaseinstdir}/lib/pgstattuple.so
  722. %{pgbaseinstdir}/lib/pg_buffercache.so
  723. %{pgbaseinstdir}/lib/pg_trgm.so
  724. %{pgbaseinstdir}/lib/pg_upgrade_support.so
  725. %{pgbaseinstdir}/lib/refint.so
  726. %{pgbaseinstdir}/lib/seg.so
  727. %{pgbaseinstdir}/lib/tablefunc.so
  728. %{pgbaseinstdir}/lib/timetravel.so
  729. %{pgbaseinstdir}/lib/unaccent.so
  730. %if %xml
  731. %{pgbaseinstdir}/lib/pgxml.so
  732. %endif
  733. %if %uuid
  734. %{pgbaseinstdir}/lib/uuid-ossp.so
  735. %endif
  736. %{pgbaseinstdir}/share/extension/adminpack*
  737. %{pgbaseinstdir}/share/extension/autoinc*
  738. %{pgbaseinstdir}/share/extension/btree_gin*
  739. %{pgbaseinstdir}/share/extension/btree_gist*
  740. %{pgbaseinstdir}/share/extension/chkpass*
  741. %{pgbaseinstdir}/share/extension/citext*
  742. %{pgbaseinstdir}/share/extension/cube*
  743. %{pgbaseinstdir}/share/extension/dblink*
  744. %{pgbaseinstdir}/share/extension/dict_int*
  745. %{pgbaseinstdir}/share/extension/dict_xsyn*
  746. %{pgbaseinstdir}/share/extension/earthdistance*
  747. %{pgbaseinstdir}/share/extension/file_fdw*
  748. %{pgbaseinstdir}/share/extension/fuzzystrmatch*
  749. %{pgbaseinstdir}/share/extension/hstore*
  750. %{pgbaseinstdir}/share/extension/insert_username*
  751. %{pgbaseinstdir}/share/extension/intagg*
  752. %{pgbaseinstdir}/share/extension/intarray*
  753. %{pgbaseinstdir}/share/extension/isn*
  754. %{pgbaseinstdir}/share/extension/lo*
  755. %{pgbaseinstdir}/share/extension/ltree*
  756. %{pgbaseinstdir}/share/extension/moddatetime*
  757. %{pgbaseinstdir}/share/extension/pageinspect*
  758. %{pgbaseinstdir}/share/extension/pg_buffercache*
  759. %{pgbaseinstdir}/share/extension/pg_freespacemap*
  760. %{pgbaseinstdir}/share/extension/pg_stat_statements*
  761. %{pgbaseinstdir}/share/extension/pg_trgm*
  762. %{pgbaseinstdir}/share/extension/pgcrypto*
  763. %{pgbaseinstdir}/share/extension/pgrowlocks*
  764. %{pgbaseinstdir}/share/extension/pgstattuple*
  765. %{pgbaseinstdir}/share/extension/refint*
  766. %{pgbaseinstdir}/share/extension/seg*
  767. %{pgbaseinstdir}/share/extension/sslinfo*
  768. %{pgbaseinstdir}/share/extension/tablefunc*
  769. %{pgbaseinstdir}/share/extension/test_parser*
  770. %{pgbaseinstdir}/share/extension/timetravel*
  771. %{pgbaseinstdir}/share/extension/tsearch2*
  772. %{pgbaseinstdir}/share/extension/unaccent*
  773. %{pgbaseinstdir}/share/extension/uuid-ossp*
  774. %{pgbaseinstdir}/share/extension/xml2*
  775. %{pgbaseinstdir}/bin/oid2name
  776. %{pgbaseinstdir}/bin/pgbench
  777. %{pgbaseinstdir}/bin/vacuumlo
  778. %{pgbaseinstdir}/bin/pg_archivecleanup
  779. %{pgbaseinstdir}/bin/pg_standby
  780. %{pgbaseinstdir}/bin/pg_upgrade
  781.  
  782. %files libs -f pg_libpq5.lst
  783. %defattr(-,root,root)
  784. %{pgbaseinstdir}/lib/libpq.so.*
  785. %{pgbaseinstdir}/lib/libecpg.so*
  786. %{pgbaseinstdir}/lib/libpgtypes.so.*
  787. %{pgbaseinstdir}/lib/libecpg_compat.so.*
  788. %{pgbaseinstdir}/lib/libpqwalreceiver.so
  789. %config(noreplace) %{pgbaseinstdir}/share/postgresql-9.1-libs.conf
  790.  
  791. %files server -f pg_server.lst
  792. %defattr(-,root,root)
  793. %config(noreplace) /etc/rc.d/init.d/postgresql-%{majorversion}
  794. %if %pam
  795. %config(noreplace) /etc/pam.d/postgresql%{packageversion}
  796. %endif
  797. %attr (755,root,root) %dir /etc/sysconfig/pgsql
  798. %{pgbaseinstdir}/bin/initdb
  799. %{pgbaseinstdir}/bin/pg_controldata
  800. %{pgbaseinstdir}/bin/pg_ctl
  801. %{pgbaseinstdir}/bin/pg_resetxlog
  802. %{pgbaseinstdir}/bin/postgres
  803. %{pgbaseinstdir}/bin/postmaster
  804. %{pgbaseinstdir}/share/man/man1/initdb.*
  805. %{pgbaseinstdir}/share/man/man1/pg_controldata.*
  806. %{pgbaseinstdir}/share/man/man1/pg_ctl.*
  807. %{pgbaseinstdir}/share/man/man1/pg_resetxlog.*
  808. %{pgbaseinstdir}/share/man/man1/postgres.*
  809. %{pgbaseinstdir}/share/man/man1/postmaster.*
  810. %{pgbaseinstdir}/share/postgres.bki
  811. %{pgbaseinstdir}/share/postgres.description
  812. %{pgbaseinstdir}/share/postgres.shdescription
  813. %{pgbaseinstdir}/share/system_views.sql
  814. %{pgbaseinstdir}/share/*.sample
  815. %{pgbaseinstdir}/share/timezonesets/*
  816. %{pgbaseinstdir}/share/tsearch_data/*.affix
  817. %{pgbaseinstdir}/share/tsearch_data/*.dict
  818. %{pgbaseinstdir}/share/tsearch_data/*.ths
  819. %{pgbaseinstdir}/share/tsearch_data/*.rules
  820. %{pgbaseinstdir}/share/tsearch_data/*.stop
  821. %{pgbaseinstdir}/share/tsearch_data/*.syn
  822. %{pgbaseinstdir}/lib/dict_int.so
  823. %{pgbaseinstdir}/lib/dict_snowball.so
  824. %{pgbaseinstdir}/lib/dict_xsyn.so
  825. %{pgbaseinstdir}/lib/euc2004_sjis2004.so
  826. %{pgbaseinstdir}/lib/plpgsql.so
  827. %dir %{pgbaseinstdir}/share/extension
  828. %{pgbaseinstdir}/share/extension/plpgsql*
  829. %{pgbaseinstdir}/lib/test_parser.so
  830. %{pgbaseinstdir}/lib/tsearch2.so
  831.  
  832. %dir %{pgbaseinstdir}/lib
  833. %dir %{pgbaseinstdir}/share
  834. %attr(700,postgres,postgres) %dir /var/lib/pgsql
  835. %attr(700,postgres,postgres) %dir /var/lib/pgsql/%{majorversion}
  836. %attr(700,postgres,postgres) %dir /var/lib/pgsql/%{majorversion}/data
  837. %attr(700,postgres,postgres) %dir /var/lib/pgsql/%{majorversion}/backups
  838. %{pgbaseinstdir}/lib/*_and_*.so
  839. %{pgbaseinstdir}/share/conversion_create.sql
  840. %{pgbaseinstdir}/share/information_schema.sql
  841. %{pgbaseinstdir}/share/snowball_create.sql
  842. %{pgbaseinstdir}/share/sql_features.txt
  843.  
  844. %files devel -f pg_devel.lst
  845. %defattr(-,root,root)
  846. %{pgbaseinstdir}/include/*
  847. %{pgbaseinstdir}/bin/ecpg
  848. %{pgbaseinstdir}/lib/libpq.so
  849. %{pgbaseinstdir}/lib/libecpg.so
  850. %{pgbaseinstdir}/lib/libpq.a
  851. %{pgbaseinstdir}/lib/libecpg.a
  852. %{pgbaseinstdir}/lib/libecpg_compat.so
  853. %{pgbaseinstdir}/lib/libecpg_compat.a
  854. %{pgbaseinstdir}/lib/libpgport.a
  855. %{pgbaseinstdir}/lib/libpgtypes.so
  856. %{pgbaseinstdir}/lib/libpgtypes.a
  857. %{pgbaseinstdir}/lib/pgxs/*
  858. %{pgbaseinstdir}/share/man/man1/ecpg.*
  859.  
  860. %if %plperl
  861. %files plperl -f pg_plperl.lst
  862. %defattr(-,root,root)
  863. %{pgbaseinstdir}/lib/plperl.so
  864. %{pgbaseinstdir}/share/extension/plperl*
  865. %endif
  866.  
  867. %if %pltcl
  868. %files pltcl -f pg_pltcl.lst
  869. %defattr(-,root,root)
  870. %{pgbaseinstdir}/lib/pltcl.so
  871. %{pgbaseinstdir}/bin/pltcl_delmod
  872. %{pgbaseinstdir}/bin/pltcl_listmod
  873. %{pgbaseinstdir}/bin/pltcl_loadmod
  874. %{pgbaseinstdir}/share/unknown.pltcl
  875. %{pgbaseinstdir}/share/extension/pltcl*
  876. %endif
  877.  
  878. %if %plpython
  879. %files plpython -f pg_plpython.lst
  880. %defattr(-,root,root)
  881. %{pgbaseinstdir}/lib/plpython*.so
  882. %{pgbaseinstdir}/share/extension/plpython2u*
  883. %{pgbaseinstdir}/share/extension/plpythonu*
  884. %endif
  885.  
  886. %if %test
  887. %files test
  888. %defattr(-,postgres,postgres)
  889. %attr(-,postgres,postgres) %{pgbaseinstdir}/lib/test/*
  890. %attr(-,postgres,postgres) %dir %{pgbaseinstdir}/lib/test
  891. %endif
  892.  
  893. %changelog
  894. * Mon Dec 10 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.7-1PGDG
  895. - Update to 9.1.7, per the changes described at
  896.   http://www.postgresql.org/docs/9.1/static/release-9-1-7.html
  897.  
  898. * Thu Sep 20 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.6-1PGDG
  899. - Update to 9.1.6, per the changes described at
  900.   http://www.postgresql.org/docs/9.1/static/release-9-1-6.html
  901.  
  902. * Sun Sep 02 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.5-3PGDG
  903. - Fix incorrect pg libs version.
  904.  
  905. * Tue Aug 28 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.5-2PGDG
  906. - Install linker conf file with alternatives, so that the latest
  907.   version will always be used. Fixes #77.
  908.  
  909. * Wed Aug 15 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.5-1PGDG
  910. - Update to 9.1.5, per the changes described at
  911.   http://www.postgresql.org/docs/9.1/static/release-9-1-5.html
  912.   which also includes fixes for CVE-2012-3489 and CVE-2012-3488.
  913.  
  914. * Fri Jul 13 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.4-3PGDG
  915. - Split .control files in appropriate packages. This is a followup
  916.   fix 9.1.0-2. With this patch, pls can be created w/o installing
  917.   -contrib subpackage.
  918.  
  919. * Wed Jun 06 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.4-2PGDG
  920. - Disable runselftest. We have buildfarm coverage already.
  921.  
  922. * Mon Jun 4 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.4-1PGDG
  923. - Update to 9.1.4, per the changes described at
  924.   http://www.postgresql.org/docs/9.1/static/release-9-1-4.html
  925.   which also includes fixes for CVE-2012-2143, CVE-2012-2655.
  926.  
  927. * Fri Feb 24 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.3-1PGDG
  928. - Update to 9.1.3, per the changes described at
  929.   http://www.postgresql.org/docs/9.1/static/release-9-1-3.html
  930.   which also includes fixes for CVE-2012-0866, CVE-2012-0867 and
  931.   CVE-2012-0868 .
  932.  
  933. * Fri Dec 02 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.2-1PGDG
  934. - Update to 9.1.2, per the changes described at
  935.   http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
  936. - Fix nls related build issues: Merge changes from F-16 branch.
  937.  
  938. * Tue Oct 18 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.1-3PGDG
  939. - Move doc directory only once. Per Alex Tkachenko.
  940.  
  941. * Wed Oct 5 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.1-2PGDG
  942. - Explicitly Provide: versionless postgresql*, to satisfy dependencies
  943.   in OS packages. Already did it in -jdbc package, and it worked.
  944.  
  945. * Fri Sep 23 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.1-1PGDG
  946. - Update to 9.1.1, per the changes described at
  947.   http://www.postgresql.org/docs/9.1/static/release-9-1-1.html
  948.  
  949. * Mon Sep 12 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 9.1.0-2PGDG
  950. - Add plpgsql.control to -server subpackage, so initdb won't be broken (and we
  951.   will not need to install -contrib subpackage)..
  952.  
  953. * Fri Sep 9 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1.0-1PGDG  
  954. - Update to 9.1.0 Gold, per
  955.   http://www.postgresql.org/docs/9.1/static/release-9-1.html
  956. - Update several patches, per Tom's Fedora RPMs.
  957.  
  958. * Sat Aug 20 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1rc1-1PGDG
  959. - Update to 9.1 RC1
  960. - Revert init script change for RHCS, since it breaks stop() routine.
  961.  
  962. * Tue Aug 9 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1beta3-1PGDG
  963. - Update to 9.1 beta3
  964.  
  965. * Fri Jun 10 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1beta2-1PGDG
  966. - Update to 9.1 beta2
  967.  
  968. * Mon Jun 6 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1beta1-1PGDG
  969. - Update to 9.1 beta1
  970.  
  971. * Tue Mar 29 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1alpha5-1PGDG
  972. - Update to 9.1 alpha5
  973. - Add new option to init script to specify locale during initdb.
  974.  
  975. * Fri Jan 7 2011 Devrim GUNDUZ <devrim@gunduz.org> 9.1alpha3-1PGDG
  976. - Port various fixes from 9.0 branch.
  977. - Update to 9.1 alpha3
  978. - Remove Conflicts for pre 7.4
  979. - Trim changelog
  980.  
  981. * Wed Sep 8 2010 Devrim GUNDUZ <devrim@gunduz.org> 9.1alpha1-1PGDG
  982. - Initial cut for 9.1 Alpha1.
  983. - Init script, libdir, etc. updates.
  984. - Bump up alternatives version.
  985. - Fix alternatives section for psql.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement