postgresql-vl.spec 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307
  1. %define plperl %{?_without_perl:0}%{!?_without_perl:1}
  2. %define plpython %{?_without_python:0}%{!?_without_python:1}
  3. %define non6xpamdeps 0
  4. #%define rel 0
  5. %define beta 0
  6. %{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
  7. %define tcl 1
  8. %define test 0
  9. %define pltcl 1
  10. %define pls 1
  11. %define ssl 1
  12. %define kerberos 0
  13. %define nls 1
  14. %define pam 1
  15. %define pgver 9.4
  16. Summary: PostgreSQL client programs and libraries.
  17. Summary(ja): PostgreSQL のクライアントプログラム群およびライブラリ
  18. Name: postgresql
  19. Version: %{pgver}.4
  20. Release: 2%{?_dist_release}
  21. # Conventions for PostgreSQL Global Development Group RPM releases:
  22. #
  23. # Official PostgreSQL Development Group RPMS have a PGDG after the release number.
  24. # Integer releases are stable -- 0.1.x releases are Pre-releases, and x.y are
  25. # test releases.
  26. #
  27. # Pre-releases are those that are built from CVS snapshots or pre-release
  28. # tarballs from postgresql.org. Official beta releases are not
  29. # considered pre-releases, nor are release candidates, as their beta or
  30. # release candidate status is reflected in the version of the tarball. Pre-
  31. # releases' versions do not change -- the pre-release tarball of 7.0.3, for
  32. # example, has the same tarball version as the final official release of 7.0.3:
  33. # but the tarball is different.
  34. #
  35. # Test releases are where PostgreSQL itself is not in beta, but certain parts of
  36. # the RPM packaging (such as the spec file, the initscript, etc) are in beta.
  37. #
  38. # Pre-release RPM's should not be put up on the public ftp.postgresql.org server
  39. # -- only test releases or full releases should be.
  40. License: BSD
  41. Group: Applications/Databases
  42. Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
  43. Source3: postgresql.init
  44. Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
  45. Source6: README.rpm-dist
  46. Source15: postgresql-bashprofile
  47. Patch2: postgresql-8.3.3-nls.patch
  48. Patch3: postgresql-7.4-ecpg-patch
  49. Buildrequires: perl build-essential
  50. Requires: /sbin/ldconfig initscripts
  51. %if %plpython
  52. Buildrequires: python python-devel
  53. %endif
  54. %if %tcl
  55. Buildrequires: tcl-devel
  56. %endif
  57. Buildrequires: libedit-devel
  58. Buildrequires: zlib-devel >= 1.0.4
  59. %if %ssl
  60. Buildrequires: openssl-devel
  61. %endif
  62. %if %kerberos
  63. Buildrequires: krb5-devel
  64. %endif
  65. %if %nls
  66. Buildrequires: gettext >= 0.10.35
  67. %endif
  68. %if %pam
  69. %if %non6xpamdeps
  70. Buildrequires: pam-devel
  71. %endif
  72. %endif
  73. BuildRequires: bison, flex, pam-devel
  74. Url: http://www.postgresql.org/
  75. Buildroot: %{_tmppath}/%{name}-%{version}-root
  76. Obsoletes: postgresql-clients
  77. Obsoletes: postgresql-python
  78. Obsoletes: postgresql7
  79. Conflicts: postgresql8
  80. Conflicts: postgresql8-jdbc
  81. Conflicts: postgresql-jdbc < %{pgver}
  82. %if %pls
  83. Obsoletes: postgresql7-plperl
  84. %endif
  85. # This is the PostgreSQL Global Development Group Official RPMset spec file,
  86. # or a derivative thereof.
  87. # Copyright 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  88. # and others listed.
  89. # Major Contributors:
  90. # ---------------
  91. # Lamar Owen
  92. # Trond Eivind Glomsrd <teg@redhat.com>
  93. # Thomas Lockhart
  94. # Reinhard Max
  95. # Karl DeBisschop
  96. # Peter Eisentraut
  97. # Joe Conway
  98. # and others in the Changelog....
  99. # This spec file and ancilliary files are licensed in accordance with
  100. # The PostgreSQL license.
  101. # On top of this file you can find the default build package list macros. These can be overridden by defining
  102. # on the rpm command line:
  103. # rpm --define 'packagename 1' .... to force the package to build.
  104. # rpm --define 'packagename 0' .... to force the package NOT to build.
  105. # The base package, the lib package, the devel package, and the server package always get built.
  106. Vendor: Project Vine
  107. Distribution: Vine Linux
  108. %description
  109. PostgreSQL is an advanced Object-Relational database management system
  110. (DBMS) that supports almost all SQL constructs (including
  111. transactions, subselects and user-defined types and functions). The
  112. postgresql package includes the client programs and libraries that
  113. you'll need to access a PostgreSQL DBMS server. These PostgreSQL
  114. client programs are programs that directly manipulate the internal
  115. structure of PostgreSQL databases on a PostgreSQL server. These client
  116. programs can be located on the same machine with the PostgreSQL
  117. server, or may be on a remote machine which accesses a PostgreSQL
  118. server over a network connection. This package contains the docs
  119. in HTML for the whole package, as well as command-line utilities for
  120. managing PostgreSQL databases on a PostgreSQL server.
  121. If you want to manipulate a PostgreSQL database on a remote PostgreSQL
  122. server, you need this package. You also need to install this package
  123. if you're installing the postgresql-server package.
  124. %description -l ja
  125. PostgreSQLはSQLの構成要素(トランザクション、副問い合わせおよびユーザ
  126. 定義型やユーザ定義関数など)のほとんどすべてをサポートした、先進的なオブ
  127. ジェクト指向のデータベース管理システム(DBMS)です。postgresqlのパッケー
  128. ジにはPostgreSQL DBMS サーバにアクセスするために必要なクライアントプロ
  129. グラムおよびライブラリを収録しています。PostgreSQLクライアントプログラ
  130. ムは、PostgreSQLサーバ上のPostgreSQLデータベースの内部構造を直接操作す
  131. るためのプログラムです。これらのクライアントプログラムは、PostgreSQLサ
  132. ーバと同じマシン上で動いていてもよいですし、ネットワークコネクションの
  133. 向こう側にあるリモートマシン上にあっても構いません。このパッケージには
  134. PostgreSQLサーバ上のPostgreSQLデータベースを管理するためのユーティリテ
  135. ィに加え、全パッケージのドキュメントがHTML形式で収録されています。
  136. リモートにあるPostgreSQLサーバ上のPostgreSQLデータベースを操作する場合
  137. はこのパッケージが必要です。またpostgresql-serverパッケージをインスト
  138. ールする場合にも、このパッケージをインストールする必要があります。
  139. %if 0
  140. %package libs
  141. Summary: The shared libraries required for any PostgreSQL clients.
  142. Summary(ja): PostgreSQL クライアントに必要な共有ライブラリ
  143. Group: System Environment/Libraries
  144. Obsoletes: postgresql7-libs
  145. Conflicts: postgresql8-libs
  146. Conflicts: postgresql-libs >= 9.3.0
  147. %description libs
  148. The postgresql-libs package provides the essential shared libraries for any
  149. PostgreSQL client program or interface. You will need to install this package
  150. to use any other PostgreSQL package or any clients that need to connect to a
  151. PostgreSQL server.
  152. %description -l ja libs
  153. postgresql-libs パッケージは、すべての PostgreSQL クライアントプログラ
  154. ムやインターフェースのための中核的な共有ライブラリを提供します。
  155. PostgreSQL サーバに接続する必要のある、PostgreSQL パッケージやクライア
  156. ントを使う場合には、このパッケージをインストールする必要があります。
  157. %endif
  158. %package server
  159. Summary: The programs needed to create and run a PostgreSQL server.
  160. Summary(ja): PostgreSQL サーバを構築・実行するのに必要なプログラム
  161. Group: Applications/Databases
  162. Requires: /usr/sbin/useradd /sbin/chkconfig
  163. Requires: %{name} = %{version}
  164. Obsoletes: postgresql7-server
  165. Conflicts: postgresql8-server
  166. %description server
  167. The postgresql-server package includes the programs needed to create
  168. and run a PostgreSQL server, which will in turn allow you to create
  169. and maintain PostgreSQL databases. PostgreSQL is an advanced
  170. Object-Relational database management system (DBMS) that supports
  171. almost all SQL constructs (including transactions, subselects and
  172. user-defined types and functions). You should install
  173. postgresql-server if you want to create and maintain your own
  174. PostgreSQL databases and/or your own PostgreSQL server. You also need
  175. to install the postgresql package.
  176. %description -l ja server
  177. postgresql-server パッケージには、PostgreSQL サーバを生成して実行する
  178. ために必要なプログラムが含まれています。これらにより、PostgreSQL のデ
  179. ータベースを新規に作成したり、メンテナンスしたりできるようになります。
  180. PostgreSQL は先進的でオブジェクト指向的なデータベース管理システム(DBMS)
  181. であり、(トランザクション、副問い合わせ、ユーザ定義型および関数といっ
  182. た)ほとんどすべての SQL 構造をサポートしています。自分自身の PostgreSQL
  183. サーバを動かして、自分自身の PostgreSQL データベースを作成したりメン
  184. テナンスしたりしたい場合は postgresql-server をインストールする必要が
  185. あります。さらに postgresql パッケージもインストールしてください。
  186. %package docs
  187. Summary: Extra documentation for PostgreSQL
  188. Summary(ja): PostgreSQL に関するその他の文書
  189. Group: Applications/Documentation
  190. Obsoletes: postgresql7-docs
  191. Conflicts: postgresql8-docs
  192. %description docs
  193. The postgresql-docs package includes the SGML source for the documentation
  194. as well as the documentation in other formats, and some extra documentation.
  195. Install this package if you want to help with the PostgreSQL documentation
  196. project, or if you want to generate printed documentation.
  197. %package contrib
  198. Summary: Contributed source and binaries distributed with PostgreSQL
  199. Summary(ja): PostgreSQL と一緒に配布される、寄贈されたソースとバイナリ
  200. Group: Applications/Databases
  201. Requires: %{name} = %{version} perl-DBD-Pg
  202. Obsoletes: postgresql7-contrib
  203. Conflicts: postgresql8-contrib
  204. %description contrib
  205. The postgresql-contrib package contains contributed packages that are
  206. included in the PostgreSQL distribution.
  207. %package devel
  208. Summary: PostgreSQL development header files.
  209. Summary(ja): PostgreSQL のサーバサイド開発用ヘッダファイル
  210. Group: Development/Libraries
  211. Requires: %{name}-static = %{version}
  212. Obsoletes: postgresql7-devel
  213. Conflicts: postgresql8-devel
  214. Conflicts: libpq-devel >= 9.3.0
  215. %description devel
  216. The postgresql-devel package contains the header files needed to compile
  217. server-side C or C++ applications.
  218. %description -l ja devel
  219. postgresql-devel パッケージには、PostgreSQL サーバサイド C / C++ アプリケー
  220. ションをコンパイルするために必要なヘッダファイルが含まれています。
  221. %package static
  222. Summary: PostgreSQL development libraries.
  223. Summary(ja): PostgreSQL のサーバサイド開発用ライブラリ
  224. Group: Development/Libraries
  225. Obsoletes: postgresql7-devel
  226. Conflicts: postgresql8-devel
  227. Conflicts: libpq-devel >= 9.3.0
  228. %description static
  229. The postgresql-static package contains libraries needed to compile
  230. server-side C or C++ applications.
  231. %description -l ja static
  232. postgresql-static パッケージには、PostgreSQL サーバサイド C / C++ アプリケー
  233. ションをコンパイルするために必要なライブラリが含まれています。
  234. #------------
  235. %if %pls
  236. %package pl
  237. Summary: The PL procedural languages for PostgreSQL.
  238. Summary(ja): PostgreSQL 用の手続き言語 PL
  239. Group: Applications/Databases
  240. Requires: %{name} = %{version}
  241. Obsoletes: postgresql7-pl
  242. Conflicts: postgresql8-pl
  243. %description pl
  244. PostgreSQL is an advanced Object-Relational database management
  245. system. The postgresql-pl package contains the the PL/Perl, PL/Tcl, and PL/Python
  246. procedural languages for the backend. PL/Pgsql is part of the core server package.
  247. %endif
  248. #------------
  249. %if %tcl
  250. %package tcl
  251. Summary: A Tcl client library for PostgreSQL.
  252. Summary(ja): PostgreSQL の Tcl クライアントライブラリ
  253. Group: Applications/Databases
  254. Requires: tcl >= 8.0
  255. Obsoletes: postgresql7-tcl
  256. Conflicts: postgresql8-tcl
  257. %description tcl
  258. PostgreSQL is an advanced Object-Relational database management
  259. system. The postgresql-tcl package contains the libpgtcl client library,
  260. the pg-enhanced pgtclsh,and the pg-enhanced tksh, if so configured at buildtime.
  261. %endif
  262. #------------
  263. %if %test
  264. %package test
  265. Summary: The test suite distributed with PostgreSQL.
  266. Summary(ja): PostgreSQL と共に配布されるテストスート
  267. Group: Applications/Databases
  268. Requires: postgresql = %{version}
  269. Obsoletes: postgresql7-test
  270. Conflicts: postgresql8-test
  271. %description test
  272. PostgreSQL is an advanced Object-Relational database management
  273. system. The postgresql-test package includes the sources and pre-built
  274. binaries of various tests for the PostgreSQL database management
  275. system, including regression tests and benchmarks.
  276. %endif
  277. %prep
  278. %setup -q -n postgresql-%{version}
  279. %build
  280. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
  281. CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
  282. # Strip out -ffast-math from CFLAGS....
  283. # to link libpq statically.
  284. LIBPQ_PATH=`pwd`/src/interfaces/libpq/libpq.a
  285. perl -pi -e "s|^libpq = .+\$|libpq = $LIBPQ_PATH -lpthread|" src/Makefile.global.in
  286. CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
  287. ./configure \
  288. --prefix=%{_prefix} \
  289. --libdir=%{_libdir} \
  290. --disable-rpath \
  291. %if %beta
  292. --enable-debug \
  293. --enable-cassert \
  294. %endif
  295. %if %plperl
  296. --with-perl \
  297. %endif
  298. %if %tcl
  299. --with-tcl \
  300. --with-tclconfig=%{_libdir} \
  301. %endif
  302. %if %plpython
  303. --with-python \
  304. %endif
  305. %if %ssl
  306. --with-openssl \
  307. %endif
  308. %if %pam
  309. --with-pam \
  310. %endif
  311. %if %kerberos
  312. --with-krb5=/usr/kerberos \
  313. %endif
  314. %if %nls
  315. --enable-nls \
  316. %endif
  317. --with-libedit-preferred \
  318. --sysconfdir=%{_sysconfdir}/sysconfig/pgsql \
  319. --mandir=%{_mandir} \
  320. --with-docdir=%{_docdir} \
  321. --includedir=%{_includedir}/pgsql \
  322. --datadir=%{_datadir}/pgsql
  323. make %{?_smp_mflags} all
  324. make %{?_smp_mflags} -C contrib all
  325. %if %test
  326. pushd src/test
  327. make all
  328. popd
  329. %endif
  330. %install
  331. rm -rf $RPM_BUILD_ROOT
  332. # exclude client libraries.
  333. perl -pi -e 's/^\tinterfaces \\\n//' src/Makefile
  334. make DESTDIR=$RPM_BUILD_ROOT install
  335. make -C contrib DESTDIR=$RPM_BUILD_ROOT install
  336. # copy over Makefile.global to the include dir....
  337. install -m644 src/Makefile.global $RPM_BUILD_ROOT%{_includedir}/pgsql
  338. install -m644 src/Makefile.shlib $RPM_BUILD_ROOT%{_includedir}/pgsql
  339. # initscript
  340. install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
  341. sed -e "s/@pgver@/%{pgver}/" \
  342. -e "s|@docdir@|%{_docdir}/postgresql-%{version}|" %{SOURCE3} \
  343. > $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
  344. chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
  345. # PGDATA needs removal of group and world permissions due to pg_pwd hole.
  346. install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data
  347. # backups of data go here...
  348. install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
  349. # postgres' .bash_profile
  350. install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
  351. # Create the multiple postmaster startup directory
  352. install -d -m 700 $RPM_BUILD_ROOT/etc/sysconfig/pgsql
  353. %if %test
  354. # tests. There are many files included here that are unnecessary, but include
  355. # them anyway for completeness.
  356. mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
  357. cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
  358. install -m 0755 contrib/spi/refint.so $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
  359. install -m 0755 contrib/spi/autoinc.so $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
  360. pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/
  361. strip *.so
  362. popd
  363. %endif
  364. # Fix some more documentation
  365. ##gzip doc/internals.ps
  366. cp %{SOURCE6} README.rpm-dist
  367. ##cp -pr $RPM_BUILD_ROOT%{_docdir}/postgresql/html doc
  368. ##rm -rf $RPM_BUILD_ROOT%{_docdir}/postgresql/html
  369. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
  370. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
  371. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man7
  372. install -m 644 ./doc/src/sgml/man1/* $RPM_BUILD_ROOT/%{_mandir}/man1
  373. install -m 644 ./doc/src/sgml/man3/* $RPM_BUILD_ROOT/%{_mandir}/man3
  374. install -m 644 ./doc/src/sgml/man7/* $RPM_BUILD_ROOT/%{_mandir}/man7
  375. %find_lang initdb-%{pgver}
  376. %find_lang pg_basebackup-%{pgver}
  377. %find_lang pg_config-%{pgver}
  378. %find_lang pg_controldata-%{pgver}
  379. %find_lang pg_ctl-%{pgver}
  380. %find_lang pg_dump-%{pgver}
  381. %find_lang pg_resetxlog-%{pgver}
  382. %find_lang pgscripts-%{pgver}
  383. %find_lang postgres-%{pgver}
  384. %find_lang psql-%{pgver}
  385. %ifarch !x86_64
  386. %find_lang scripts-%{pgver}
  387. %endif
  388. %find_lang plperl-%{pgver}
  389. %find_lang plpgsql-%{pgver}
  390. %find_lang plpython-%{pgver}
  391. %find_lang pltcl-%{pgver}
  392. cat psql-%{pgver}.lang pg_dump-%{pgver}.lang > main.lst
  393. cat pg_config-%{pgver}.lang > devel.lst
  394. cat initdb-%{pgver}.lang pg_basebackup-%{pgver}.lang pg_ctl-%{pgver}.lang \
  395. postgres-%{pgver}.lang pg_resetxlog-%{pgver}.lang \
  396. pg_controldata-%{pgver}.lang > server.lst
  397. %ifarch !x86_64
  398. cat scripts-%{pgver}.lang >> server.lst
  399. %endif
  400. #cat ecpg-%{pgver}.lang ecpglib6-%{pgver}.lang >> devel.lst
  401. cat plperl-%{pgver}.lang > pl.lst
  402. cat plpgsql-%{pgver}.lang >> pl.lst
  403. cat plpython-%{pgver}.lang >> pl.lst
  404. cat pltcl-%{pgver}.lang > tcl.lst
  405. mv -f %{buildroot}%{_docdir}/postgresql/extension ./
  406. rm -f %{buildroot}%{_mandir}/man1/ecpg.*
  407. %pre server
  408. groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
  409. useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
  410. -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
  411. touch /var/log/pgsql
  412. chown postgres.postgres /var/log/pgsql
  413. chmod 0700 /var/log/pgsql
  414. if [ $1 -gt 1 ]; then
  415. if [ -e /var/lib/pgsql/data/PG_VERSION ]; then
  416. PGVER=`cat /var/lib/pgsql/data/PG_VERSION`
  417. if [ "x%{pgver}" != "x$PGVER" -a ! -d /var/lib/pgsql/$PGVER ]; then
  418. mkdir -p /var/lib/pgsql/$PGVER/{bin,share,%{_lib}/postgresql}
  419. mv -f /var/lib/pgsql/data /var/lib/pgsql/$PGVER/
  420. cp -af %{_datadir}/pgsql /var/lib/pgsql/$PGVER/share/
  421. for f in %{_libdir}/postgresql/*; do
  422. cp -af $f /var/lib/pgsql/$PGVER/%{_lib}/postgresql/
  423. done
  424. for f in `rpm -ql %{name}-server | grep /usr/bin/`; do
  425. cp -af $f /var/lib/pgsql/$PGVER/bin/
  426. done
  427. cat - <<EOF > /var/lib/pgsql/pgsql_upgrade.sh
  428. #!/bin/sh
  429. sudo -u postgres pg_upgrade -d /var/lib/pgsql/$PGVER/data/ -D /var/lib/pgsql/data -b /var/lib/pgsql/$PGVER/bin/ -B /usr/bin
  430. EOF
  431. chown postgres.postgres /var/lib/pgsql/pgsql_upgrade.sh
  432. chmod 700 /var/lib/pgsql/pgsql_upgrade.sh
  433. cat - <<EOF
  434. The old database was saved into /var/lib/pgsql/$PGVER/data/ and
  435. a migration script was created as /var/lib/pgsql/pgsql_upgrade.sh
  436. EOF
  437. fi
  438. fi
  439. fi
  440. %post server
  441. chkconfig --add postgresql
  442. /sbin/ldconfig
  443. %preun server
  444. if [ $1 = 0 ] ; then
  445. chkconfig --del postgresql
  446. fi
  447. %postun server
  448. /sbin/ldconfig
  449. if [ $1 -ge 1 ]; then
  450. /sbin/service postgresql condrestart >/dev/null 2>&1
  451. fi
  452. if [ $1 = 0 ] ; then
  453. if [ ! -x /usr/bin/postgres ] ; then
  454. userdel postgres >/dev/null 2>&1 || :
  455. groupdel postgres >/dev/null 2>&1 || :
  456. fi
  457. fi
  458. %if %tcl
  459. %post -p /sbin/ldconfig tcl
  460. %postun -p /sbin/ldconfig tcl
  461. %endif
  462. %if %pls
  463. %post -p /sbin/ldconfig pl
  464. %postun -p /sbin/ldconfig pl
  465. %endif
  466. %if %test
  467. %post test
  468. chown -R postgres.postgres %{_datadir}/pgsql/test >/dev/null 2>&1 || :
  469. %endif
  470. %clean
  471. rm -rf $RPM_BUILD_ROOT
  472. %files -f main.lst
  473. %defattr(-,root,root)
  474. %doc doc/KNOWN_BUGS doc/MISSING_FEATURES
  475. %doc COPYRIGHT README HISTORY INSTALL doc/bug.template
  476. %doc README.rpm-dist
  477. ##doc doc/html
  478. %{_bindir}/clusterdb
  479. %{_bindir}/createdb
  480. %{_bindir}/createlang
  481. %{_bindir}/createuser
  482. %{_bindir}/dropdb
  483. %{_bindir}/droplang
  484. %{_bindir}/dropuser
  485. %{_bindir}/pg_dump
  486. %{_bindir}/pg_dumpall
  487. %{_bindir}/pg_restore
  488. %{_bindir}/psql
  489. %{_bindir}/reindexdb
  490. %{_bindir}/vacuumdb
  491. %{_mandir}/man1/clusterdb.*
  492. %{_mandir}/man1/createdb.*
  493. %{_mandir}/man1/createlang.*
  494. %{_mandir}/man1/createuser.*
  495. %{_mandir}/man1/dropdb.*
  496. %{_mandir}/man1/droplang.*
  497. %{_mandir}/man1/dropuser.*
  498. %{_mandir}/man1/pg_dump.*
  499. %{_mandir}/man1/pg_dumpall.*
  500. %{_mandir}/man1/pg_restore.*
  501. %{_mandir}/man1/psql.*
  502. %{_mandir}/man1/reindexdb.*
  503. %{_mandir}/man1/vacuumdb.*
  504. %{_mandir}/man3/*
  505. %{_mandir}/man7/*
  506. %{_localedir}/*/LC_MESSAGES/pgscripts-%{pgver}.mo
  507. %files docs
  508. %defattr(-,root,root)
  509. %doc doc/src/*
  510. %files contrib
  511. %defattr(-,root,root)
  512. %doc contrib/README contrib/spi/*.example
  513. %{_libdir}/postgresql/_int.so
  514. %{_libdir}/postgresql/adminpack.so
  515. %{_libdir}/postgresql/auth_delay.so
  516. %{_libdir}/postgresql/auto_explain.so
  517. %{_libdir}/postgresql/autoinc.so
  518. %{_libdir}/postgresql/btree_gin.so
  519. %{_libdir}/postgresql/btree_gist.so
  520. %{_libdir}/postgresql/chkpass.so
  521. %{_libdir}/postgresql/citext.so
  522. %{_libdir}/postgresql/cube.so
  523. %{_libdir}/postgresql/dblink.so
  524. %{_libdir}/postgresql/dict_int.so
  525. %{_libdir}/postgresql/dict_xsyn.so
  526. %{_libdir}/postgresql/dummy_seclabel.so
  527. %{_libdir}/postgresql/earthdistance.so
  528. %{_libdir}/postgresql/file_fdw.so
  529. %{_libdir}/postgresql/fuzzystrmatch.so
  530. %{_libdir}/postgresql/hstore.so
  531. %{_libdir}/postgresql/insert_username.so
  532. %{_libdir}/postgresql/isn.so
  533. %{_libdir}/postgresql/lo.so
  534. %{_libdir}/postgresql/ltree.so
  535. %{_libdir}/postgresql/moddatetime.so
  536. %{_libdir}/postgresql/pageinspect.so
  537. %{_libdir}/postgresql/passwordcheck.so
  538. %{_libdir}/postgresql/pg_buffercache.so
  539. %{_libdir}/postgresql/pg_freespacemap.so
  540. %{_libdir}/postgresql/pg_stat_statements.so
  541. %{_libdir}/postgresql/pg_trgm.so
  542. %{_libdir}/postgresql/pg_upgrade_support.so
  543. %{_libdir}/postgresql/pgcrypto.so
  544. %{_libdir}/postgresql/pgrowlocks.so
  545. %{_libdir}/postgresql/pgstattuple.so
  546. %{_libdir}/postgresql/postgres_fdw.so
  547. %{_libdir}/postgresql/refint.so
  548. %{_libdir}/postgresql/seg.so
  549. %{_libdir}/postgresql/sslinfo.so
  550. %{_libdir}/postgresql/tablefunc.so
  551. %{_libdir}/postgresql/tcn.so
  552. %{_libdir}/postgresql/test_decoding.so
  553. %{_libdir}/postgresql/test_parser.so
  554. %{_libdir}/postgresql/test_shm_mq.so
  555. %{_libdir}/postgresql/timetravel.so
  556. %{_libdir}/postgresql/tsearch2.so
  557. %{_libdir}/postgresql/unaccent.so
  558. %{_libdir}/postgresql/worker_spi.so
  559. %{_bindir}/oid2name
  560. %{_bindir}/pg_archivecleanup
  561. %{_bindir}/pg_test_fsync
  562. %{_bindir}/pg_test_timing
  563. %{_bindir}/pg_standby
  564. %{_bindir}/pg_upgrade
  565. %{_bindir}/pg_xlogdump
  566. %{_bindir}/pgbench
  567. %{_bindir}/vacuumlo
  568. %{_mandir}/man1/oid2name.*
  569. %{_mandir}/man1/pg_archivecleanup.*
  570. %{_mandir}/man1/pg_standby.*
  571. %{_mandir}/man1/pg_test_fsync.*
  572. %{_mandir}/man1/pg_test_timing.*
  573. %{_mandir}/man1/pg_upgrade.*
  574. %{_mandir}/man1/pg_xlogdump.*
  575. %{_mandir}/man1/pgbench.*
  576. %{_mandir}/man1/vacuumlo.*
  577. %if 0
  578. %files libs -f libpq5-%{pgver}.lang
  579. %defattr(-,root,root)
  580. %{_libdir}/libecpg.so.*
  581. %{_libdir}/libecpg_compat.so.*
  582. %{_libdir}/libpgtypes.so.*
  583. %{_libdir}/libpq.so.*
  584. %endif
  585. %files server -f server.lst
  586. %defattr(-,root,root)
  587. %doc extension
  588. %{_sysconfdir}/rc.d/init.d/postgresql
  589. %dir %{_sysconfdir}/sysconfig/pgsql
  590. %{_bindir}/initdb
  591. %{_bindir}/pg_basebackup
  592. %{_bindir}/pg_controldata
  593. %{_bindir}/pg_ctl
  594. %{_bindir}/pg_isready
  595. %{_bindir}/pg_receivexlog
  596. %{_bindir}/pg_recvlogical
  597. %{_bindir}/pg_resetxlog
  598. %{_bindir}/postgres
  599. %{_bindir}/postmaster
  600. %{_mandir}/man1/initdb.*
  601. ##{_mandir}/man1/ipcclean.*
  602. %{_mandir}/man1/pg_basebackup.*
  603. %{_mandir}/man1/pg_controldata.*
  604. %{_mandir}/man1/pg_ctl.*
  605. %{_mandir}/man1/pg_isready.*
  606. %{_mandir}/man1/pg_receivexlog.*
  607. %{_mandir}/man1/pg_recvlogical.*
  608. %{_mandir}/man1/pg_resetxlog.*
  609. %{_mandir}/man1/postgres.*
  610. %{_mandir}/man1/postmaster.*
  611. %{_libdir}/postgresql/dict_snowball.so
  612. %{_libdir}/postgresql/libpqwalreceiver.so
  613. %{_libdir}/postgresql/pg_prewarm.so
  614. %{_libdir}/postgresql/plpgsql.so
  615. %{_libdir}/postgresql/*_and_*.so
  616. %{_libdir}/postgresql/euc2004_sjis2004.so
  617. %{_datadir}/pgsql/extension
  618. %{_datadir}/pgsql/*.sql
  619. %{_datadir}/pgsql/postgres.bki
  620. %{_datadir}/pgsql/postgres.description
  621. %{_datadir}/pgsql/postgres.shdescription
  622. %{_datadir}/pgsql/*.sample
  623. %{_datadir}/pgsql/sql_features.txt
  624. %{_datadir}/pgsql/timezone
  625. %{_datadir}/pgsql/timezonesets
  626. %{_datadir}/pgsql/tsearch_data
  627. %dir %{_libdir}/postgresql
  628. %dir %{_datadir}/pgsql
  629. %attr(700,postgres,postgres) %dir /var/lib/pgsql
  630. %attr(700,postgres,postgres) %dir /var/lib/pgsql/data
  631. %attr(700,postgres,postgres) %dir /var/lib/pgsql/backups
  632. %attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
  633. %files devel -f devel.lst
  634. %defattr(-,root,root)
  635. %{_includedir}/pgsql
  636. %{_bindir}/pg_config
  637. %{_libdir}/postgresql/pgxs
  638. %{_mandir}/man1/pg_config.*
  639. %files static
  640. %{_libdir}/libpgcommon.a
  641. %{_libdir}/libpgport.a
  642. %if %tcl
  643. %files tcl -f tcl.lst
  644. %defattr(-,root,root)
  645. %endif
  646. %if %pls
  647. %files pl -f pl.lst
  648. %defattr(-,root,root)
  649. %if %plperl
  650. %{_libdir}/postgresql/plperl.so
  651. %endif
  652. %if %pltcl
  653. %{_libdir}/postgresql/pltcl.so
  654. %{_bindir}/pltcl_delmod
  655. %{_bindir}/pltcl_listmod
  656. %{_bindir}/pltcl_loadmod
  657. %{_datadir}/pgsql/unknown.pltcl
  658. %endif
  659. %if %plpython
  660. #%{_libdir}/postgresql/plpython.so
  661. %{_libdir}/postgresql/plpython2.so
  662. %endif
  663. %endif
  664. %if %test
  665. %files test
  666. %defattr(-,postgres,postgres)
  667. %attr(-,postgres,postgres) %{_libdir}/postgresql/test/*
  668. %attr(-,postgres,postgres) %dir %{_libdir}/postgresql/test
  669. %endif
  670. %changelog
  671. * Sat Jun 20 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.4.4-2
  672. - fixed initscript.
  673. - modified %%pre to prepare for pg_upgrade.
  674. * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.4.4-1
  675. - new upstream release.
  676. * Fri Jun 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.4.3-1
  677. - new upstream release.
  678. * Sun Mar 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 9.3.4-2
  679. - rebuilt without readline to avoid GPL infection
  680. - added BuildRequires: libedit-devel instead of readline-devel
  681. - added BuildRequires: tcl-devel instead of tcl
  682. * Tue Apr 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3.4-1
  683. - new upstream release.
  684. * Sun Dec 01 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3.1-1
  685. - new upstream release.
  686. - built without client libraries.
  687. * Thu Feb 21 2013 IWAI, Masaharu <iwai@alib.jp> 9.0.12-1
  688. - new upstream release
  689. * Thu Feb 7 2013 IWAI, Masaharu <iwai@alib.jp> 9.0.11-1
  690. - new upstream release
  691. - add Vendor and Distribution tags
  692. * Mon Jan 7 2013 IWAI, Masaharu <iwai@alib.jp> 9.0.7-2vl7
  693. - build with Tcl/Tk 8.5.7-1
  694. - fix init script (Source3): fix su(1) paramaters.
  695. * Tue Mar 06 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.7-1
  696. - new upstream release
  697. - move euc2004_sjis2004.so from -contrib to -server (BTS:1266)
  698. - remove *_and_*.so from -contrib (included in -server)
  699. * Sat Apr 23 2011 Shu KONNO <owa@bg.wakwak.com> 9.0.4-1
  700. - updated postgresql to 9.0.4
  701. * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 9.0.3-1
  702. - updated postgresql to 9.0.3
  703. - separated postgresql-jdbc package
  704. * Thu Feb 03 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.7-1
  705. - updated postgresql to 8.4.7 (contains a variety of fixes)
  706. * Sat Jan 29 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.6-1
  707. - updated postgresql to 8.4.6
  708. - updated JDBC2 driver to postgresql-8.3-606.{jdbc2,jdbc2ee}.jar
  709. - updated JDBC3 driver to postgresql-8.4-702.jdbc3.jar
  710. - updated JDBC4 driver to postgresql-8.4-702.jdbc4.jar
  711. * Thu Jan 13 2011 Shu KONNO <owa@bg.wakwak.com> 8.4.5-2
  712. - rebuilt with openssl-1.0.0c
  713. * Thu Oct 07 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.5-1
  714. - updated postgresql to 8.4.5
  715. * Sun May 16 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.4-1
  716. - updated postgresql to 8.4.4
  717. * Thu Apr 15 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.3-1
  718. - updated postgresql to 8.4.3
  719. - s/BuildPrereq/Buildrequires/
  720. * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 8.4.2-1
  721. - updated postgresql to 8.4.2
  722. - rebuilt with new environment
  723. * Thu Sep 10 2009 Shu KONNO <owa@bg.wakwak.com> 8.4.1-1
  724. - updated postgresql to 8.4.1
  725. * Fri Aug 21 2009 Shu KONNO <owa@bg.wakwak.com> 8.4.0-2
  726. - moved dict_snowball.so from conrib to server
  727. * Tue Jul 07 2009 Shu KONNO <owa@bg.wakwak.com> 8.4.0-1
  728. - updated postgresql to 8.4.0
  729. - updated jdbc3,4 to 701
  730. - dropt postgresql-8.3.3-nls.patch (fixed)
  731. - dropt postgresql-7.4-ecpg-patch (no effect)
  732. * Sat Apr 18 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.3.7-2
  733. - changed libs Group to System Environment/Libraries
  734. * Sun Apr 12 2009 Shu KONNO <owa@bg.wakwak.com> 8.3.7-1
  735. - updated postgresql to 8.3.7
  736. * Sun Jan 25 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.3.5-2
  737. - remove "-E EUC_JP --no-locale" option from initdb in postgresql.init
  738. * Thu Jan 22 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 8.3.5-1
  739. - new upstream release (postgresql to 8.3.5, jdbc to 604)
  740. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 8.3.3-1vl5
  741. - applied new versioning policy, and spec in utf-8
  742. - updated postgresql to 8.3.3
  743. - updated jdbcver to 603
  744. - added postgresql-8.3.3-nls.patch instead of postgresql-8.2.0-nls.patch.gz
  745. - added a script to replace PGVERSION in postgresql.init
  746. * Sun Feb 17 2008 Shu KONNO <owa@bg.wakwak.com> 8.2.6-0vl2
  747. - rebuild with tcl/tk-8.4.18
  748. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 8.2.6-0vl1
  749. - updated postgresql to 8.2.6
  750. - included security fixes: CVE-{2007-6600, 2007-4772, 2007-6067, 2007-4769, 2007-6601}
  751. * Tue Oct 16 2007 Shu KONNO <owa@bg.wakwak.com> 8.2.5-0vl3
  752. - updated PGVERSION to 8.2 in postgresql.init (sorry;)
  753. * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 8.2.5-0vl2
  754. - rebuild with tcl/tk-8.4.16
  755. * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 8.2.5-0vl1
  756. - updated postgresql to 8.2.5
  757. - updated jdbc driver to 8.2-506, and added 8.2-506.jdbc4.jar
  758. - updated nls-patch to 8-2-0
  759. - dropt postgresql-8.1.4-Pg.patch.gz
  760. * Wed Sep 19 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 8.1.10-0vl1
  761. - for VineSeed
  762. - updated to 8.1.10 (8.1.9 and up has fixes for CVE-2007-2138)
  763. - JDBC driver updated to 410
  764. * Sun Jul 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.1.5-0vl1
  765. - rebuilt for VineSeed
  766. - fixed install script
  767. * Thu Nov 23 2006 HOTTA Michihide <hotta@net-newbie.com> 8.1.5-0vl0
  768. - upstream release
  769. - fix missing %defattr in %files server
  770. * Fri Sep 15 2006 HOTTA Michihide <hotta@net-newbie.com> 8.1.4-0vl2
  771. - fix version number in postgresql.init
  772. * Tue Sep 12 2006 HOTTA Michihide <hotta@net-newbie.com> 8.1.4-0vl1
  773. - upstream release
  774. - drop rpm-pgsql-8.0.0.patch
  775. - add Requires: perl-DBD-Pg for contrib
  776. - add postgresql-8.1.4-Pg.patch.gz
  777. - update nls patches
  778. - new JDBC driver
  779. * Sat Mar 18 2006 Shu KONNO <owa@bg.wakwak.com> 8.0.3-0vl4
  780. - added build options --without perl, --without python
  781. - rebuilt for x86_64 architecture support
  782. * Tue May 31 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.3-0vl3
  783. - drop Provides: on postgresql-libs
  784. - drop Requires: libpq.so on postgresql-server
  785. * Tue May 31 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.3-0vl2
  786. - change SONAME -- Provides: libpq.so.4 libpq.so.4.0 libpq.so
  787. * Thu May 26 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.3-0vl1
  788. - upstream release
  789. - update nls patches
  790. * Fri Apr 22 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.2-0vl1
  791. - upstream release
  792. - update nls patches
  793. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 8.0.1-0vl3
  794. - rebuilded with python-2.4.1-0vl1
  795. * Sat Mar 26 2005 Shu KONNO <owa@bg.wakwak.com> 8.0.1-0vl2
  796. - Dropped PyGreSQL-3.4.tgz.
  797. - Dropped PyGreSQL-3.4-setup-2.patch.
  798. - Dropped plpython.so in postgresql-server, because it's exist in postgresql-pl.
  799. - Dropped pyver and pynextver macros.
  800. - Changed macro name "python" to "plpython" like plperl.
  801. - Added "Obsoletes: postgresql-python"
  802. * Fri Feb 18 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.1-0vl1
  803. - Major version up
  804. - Obsoletes: postgresql7
  805. - update nls patch(es)
  806. - modify %postun not to delete postgres account on upgrade
  807. * Thu Jan 27 2005 HOTTA Michihide <hotta@net-newbie.com> 8.0.0-0vl1
  808. - upstream release (release as a new package)
  809. - Conflicts: postgresql
  810. - update nls patch(es)
  811. - (this package revision was rejected by Vine Project)
  812. * Sat Dec 04 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.6-0vl2
  813. - upstream release
  814. - new JDBC driver
  815. - add BuildRequires: bison, flex, pam-devel
  816. - drop postgresql-7.4.5-tempfile.patch (repaired)
  817. * Thu Nov 18 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 7.4.5-0vl2
  818. - Added a security fix patch postgresql-7.4.5-tempfile.patch
  819. from Gentoo Linux (CAN-2004-0977).
  820. - Changed Patch4:
  821. from PyGreSQL-3.4-setup-2.patch into PyGreSQL-3.4-setup-2.patch
  822. It is possible to compile this package without pre-installed postgresql.
  823. - Removed Patch5 because Patch4 was changed.
  824. * Tue Aug 24 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.5-0vl1
  825. - upstream release
  826. * Mon Jun 21 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.3-0vl1
  827. - upstream release
  828. - new jdbc driver
  829. * Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl3
  830. - rebuild with python-2.3.3-0vl1
  831. * Tue Apr 13 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.3
  832. - changed mode to 644 at Makefile.global, Makefile.shlib
  833. * Mon Apr 12 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.2
  834. - updated python install section
  835. * Sat Apr 10 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.1
  836. - added PyGreSQL-3.4.tgz and set python flag
  837. - added PyGreSQL-3.4-setup.patch
  838. - added PyGreSQL-3.4-pgmodule.patch
  839. - rebuilded with python-2.3.3-0vl0.3 (for TestPkg)
  840. * Sun Mar 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.4.2-0vl2
  841. - rebuild with new openssl
  842. * Wed Mar 17 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.2-0vl1
  843. - upstream release
  844. - change all of %{?foo:%define foo 0} -like descriptions to simple
  845. %define format for latest rpm to build.
  846. * Sat Feb 14 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.1-0vl3
  847. - rebuild on latest tcl package environment.
  848. * Wed Feb 11 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.1-0vl2
  849. - fixed lacking files at server's %files
  850. * Fri Dec 05 2003 HOTTA Michihide <hotta@net-newbie.com> 7.4-0vl2
  851. - include JDBC driver for 7.4
  852. - fix typo in postgresql-7.4-psql-patch
  853. * Thu Nov 20 2003 HOTTA Michihide <hotta@net-newbie.com> 7.4-0vl1
  854. - upstream release
  855. - change '--includedir=' option to avoid conflicting with unixODBC
  856. - add postgresql-7.4-ecpg-patch
  857. * Wed Sep 10 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.4-0vl1
  858. - upstream release
  859. * Wed Jul 23 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.3-0vl2
  860. - drop previous version of libpq's trash
  861. * Wed May 28 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.3-0vl1
  862. - upstream release with new nls patch
  863. - fix postgresql-bashprofile (value of PGDATA)
  864. - fix postgresql-init for Japanese-specific use (-E EUC_JP --no-locale)
  865. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 7.3.2-0vl2
  866. - rebuild with tcltk8.4 and readline-4.3
  867. * Fri Mar 07 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.2-0vl1
  868. - upstream release
  869. * Wed Dec 25 2002 HOTTA Michihide <hotta@net-newbie.com> 7.3.1-0vl1
  870. - upstream release
  871. - remove garbage changelog
  872. * Mon Dec 23 2002 HOTTA Michihide <hotta@net-newbie.com> 7.3-0vl1
  873. - upstream release based on 7.3-2PGDG
  874. - add nls patch
  875. * Thu Dec 05 2002 Lamar Owen <lamar.owen@ramifordistat.net>
  876. - 7.3-2PGDG
  877. - Fix typo in initscript. Argh!!
  878. * Wed Dec 04 2002 Lamar Owen <lamar.owen@ramifordistat.net>
  879. - 7.3-0.5PGDG
  880. - Jerk out all perl client stuff and kludgage
  881. - Rename plperl subpackage to a pl subpackage containing all but PL/Pgsql PL's
  882. - Eliminate locale and multibyte explicit enables -- they are both defaults now
  883. - Eliminate pgaccess code; it's not a part of the main tarball anymore
  884. - Eliminate ODBC stuff -- it's also separate now. Use unixODBC instead.
  885. - Eliminated separate tk client package -- rolled the tk client into the tcl client.
  886. - Moved pltcl into the pl subpackage.
  887. - Added plpython to the pl subpackage.
  888. - /etc/sysconfig/pgsql is sysconfdir for multiple postmaster startup.
  889. * Mon Dec 02 2002 Lamar Owen <lamar.owen@ramifordistat.net>
  890. - 7.3-0.1PGDG (not released)
  891. - Integrate 7.3 jar's courtesy Joe Conway
  892. - Integrate multi-postmaster initscript courtesy Karl DeBisschop
  893. - Some renames and restructures.
  894. - Stripped out the last dregs of the postgresql-dump migration script.
  895. - Conflicts with less than 7.3.
  896. - (See below for old changelogs from VineSeed)
  897. * Fri Oct 04 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.3-0vl1
  898. - updated to 7.2.3.
  899. * Tue Sep 10 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl3
  900. - absorbed previous patch8 into original nlspatch
  901. - fixed configure options (--enable-nls and --enable-locale to be antinomy)
  902. * Fri Aug 30 2002 Shoji Matsumoto <shom@vinelinux.org> 7.2.2-0vl2
  903. - add patch8 (ja.po for psql was invalid)
  904. * Thu Aug 29 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl1
  905. - updated to 7.2.2.
  906. - improved nlspatch to enable japanese SQL help in psql.
  907. * Sat Jul 06 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl3
  908. - fixed garbage chars in description(ja).
  909. * Wed Jul 03 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl2
  910. - imported & replaced changelog (following VineSeed's).
  911. add some stuff to '%%files'.
  912. * Wed Jul 03 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl1
  913. - Modified for Vine Linux 2.5. Originaly from RHL 7.2.1-5, adding
  914. nls patch, pg_dump patch, date_part patch by Jun Kuwamura
  915. * Thu May 23 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
  916. - replace nls patch.
  917. - add *.mo to '%%files'.
  918. * Mon Mar 04 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
  919. - fix initscript
  920. * Sun Mar 03 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
  921. - add /usr/bin/pg_id to the package (fix)
  922. * Fri Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 7.2-0vl1
  923. - updated 7.2
  924. - added nls.patch
  925. - fixed spec file
  926. - added New JDBC
  927. -- pgjdbc1.jar(for JDK1.1.x), pgjdbc2(for Java2)
  928. * Sat Sep 22 2001 Satoshi MACHINO <machino@vinelinux.org> 7.1.3-4vl1
  929. - updated 7.1.3
  930. * Tue Aug 21 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
  931. - 7.1.2-7vl3
  932. - merge 7.1.2-7vl2 and 7.1.2-7
  933. * Sun Aug 19 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  934. - 7.1.2-7vl2
  935. - fixed spec typo (%%{_includesir} -> %%{_includedir})
  936. * Tue Aug 14 2001 Satoshi MACHINO <machino@vinelinux.org> 7.1.2-7vl1
  937. - updated 7.1.2 (used postgresql-7.1.2-7)
  938. - used psqlj patch for 7.1.2
  939. - used jumbo-20010801.patch.gz
  940. * Mon Aug 6 2001 Trond Eivind Glomsr <teg@redhat.com> 7.1.2-7
  941. - Add patches from 7.1-stable branch. This should fix #50799 and #50797
  942. - Enable kerberos authentication (#50644)
  943. - handle stop with stale pid file (#50499)
  944. - make the test subpackage (not built by default) own /usr/lib/pgsql/test
  945. * Mon Jul 9 2001 Trond Eivind Glomsr <teg@redhat.com>
  946. - Make the -devel subpackage depend on -libs, not the main package
  947. * Tue Jun 19 2001 Trond Eivind Glomsr <teg@redhat.com>
  948. - Make sure the python subpackage depends on mx - otherwise, you'd get an error when importing
  949. * Mon Jun 18 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  950. - add changes for s390x
  951. * Fri Jun 15 2001 Trond Eivind Glomsr <teg@redhat.com>
  952. - Many path fixes for contrib packages
  953. - Newer intarray
  954. - Don't use nested ifs for tkpkg/pgaccess
  955. - Turn off test package for Red Hat Linux - it makes most sense just to use
  956. this during development
  957. - One "pgacess" -> "pgaccess"
  958. * Wed Jun 13 2001 Lamar Owen <lamar.owen@wgcr.org> <lamar@postgresql.org>
  959. - -4PGDG
  960. - patchset update for pg_regress.sh
  961. - can the dot in the release -- confused too many people and some programs.
  962. - -3.PGDG
  963. - updated README.rpm-dist
  964. - updated patch to 7.1.2, fixing some places where /usr/share/pgsql
  965. was still being used where /usr/lib/pgsql was intended.
  966. - PGLIB now set to /usr/lib/pgsql -- initdb doesn't use it to find the bki's.
  967. * Tue Jun 12 2001 Trond Eivind Glomsr <teg@redhat.com>
  968. - sync
  969. - Run chkconfig --add on server install
  970. - Move the prereqs on useradd on chkconfig to the server package
  971. - don't disable the %%clean section
  972. * Sat Jun 09 2001 Lamar Owen <lamar.owen@wgcr.org>
  973. - Sync up with Trond Eivind's set.
  974. * Thu Jun 7 2001 Trond Eivind Glomsr <teg@redhat.com>
  975. - Don't create postgres' .bashrc from the server post script: include it instead
  976. - Move the test packages from /usr/share/pgsql to /usr/lib/pgsql
  977. - Move the symlinks libpq.so, libecpg.so, libpq++.so and libpgeasy.so to the devel subpackage from
  978. libs
  979. - Source the i18n data from the .bashrc instead of in the initscript
  980. * Mon May 28 2001 Trond Eivind Glomsr <teg@redhat.com>
  981. - Handle i18n for database startup - backend needs to have the same locale everytime,
  982. but this certainly can't be hardcoded to C either
  983. - Fix stop, restart in initscript (#42217)
  984. - Make database init _much_ less verbose
  985. - other minor fixes to the initscript
  986. * Fri May 25 2001 Trond Eivind Glomsr <teg@redhat.com>
  987. - 7.1.2
  988. * Thu May 24 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  989. - 7.1.2-0.1.1.PGDG PRERELEASE
  990. - Changed versioning and release numbering a little for better flexibility,
  991. -- particularly for distribution packagers.
  992. - Release numbering comment at top of spec, where it's more useful.
  993. - Trimmed changelog to 7.1.x. See the last 7.0.3's specfile for the 7.0
  994. changlog, and the last 6.5.3's specfile for the changelog prior to
  995. 7.0.
  996. * Sun May 20 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  997. - 7.1.1-4.PGDG
  998. - _really_ got Python version agnosticism working.
  999. * Sat May 19 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1000. - 7.1.1-3.PGDG Release
  1001. - Python version agnosticism.....
  1002. * Tue May 15 2001 Trond Eivind Glomsr <teg@redhat.com>
  1003. - Use openssl
  1004. - Make it obsolete subpackages if they aren't built
  1005. * Mon May 14 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1006. - 7.1.1-2.PGDG Release.
  1007. - Appended .PGDG to release string to differentiate our RPM set from the others.
  1008. - /bin/sh fix in initscript
  1009. - README.rpm-dist updates.
  1010. * Mon May 14 2001 Bernhard Rosenkraenzer <bero@redhat.com> 7.1.1-0.7
  1011. - Rebuild with new readline
  1012. * Thu May 10 2001 Trond Eivind Glomsr <teg@redhat.com>
  1013. - Initial 7.1.1
  1014. * Mon May 7 2001 Trond Eivind Glomsr <teg@redhat.com>
  1015. - Specify shell when running commands through su in the initscript, to avoid problems
  1016. when people switch the postgres user to use tcsh
  1017. * Thu Apr 19 2001 Trond Eivind Glomsr <teg@redhat.com>
  1018. - JDBC driver for Postgresql 7.1
  1019. * Sun Apr 15 2001 Trond Eivind Glomsr <teg@redhat.com>
  1020. - slightly different versioning scheming, will go back to the official
  1021. later when I'm sure the package is ready to use
  1022. * Fri Apr 13 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1023. - 7.1 RELEASE
  1024. - 7.1-1 RPM RELEASE
  1025. - Change to COPTS -- strip out -ffastmath -- Considered Harmful.
  1026. - Back to old versioning scheme, kept teg's other fixes.
  1027. - README.rpm-dist updated.
  1028. - PGVERSION updated all-around (hopefully!)
  1029. - Couple of fixes from Peter E.
  1030. - Rearrange dependencies -- only the -libs subpackage is required for most stuff
  1031. - Removed broken and confusing logrotate script.
  1032. * Mon Apr 9 2001 Trond Eivind Glomsr <teg@redhat.com>
  1033. - chown considered harmful - removed
  1034. - fix dangling symlimks (pg_crc.c)
  1035. - libpq.so changes for maximum compatiblity
  1036. - different versioning scheme, to avoid trouble later
  1037. - remove temporary perl file from the file list
  1038. - fix spelling error in tcl description
  1039. - mark odbcinst.ini as a config file
  1040. - use %%defattr on packages which didn't have it
  1041. * Sat Apr 07 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1042. - Integrated the PL/Perl stuff from Karl DeBisschop --conditional.
  1043. - Packaging reorg: added contrib and docs subpackages.
  1044. - Removed sgml source docs from main package --> docs subpackage.
  1045. - Removed contrib tree from main package --> contrib subpackage.
  1046. - Contrib tree is now prebuilt -- HOWEVER, very little install work is
  1047. currently done with this.
  1048. * Fri Apr 06 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1049. - Quickie RC3. There will be a 7.1RC3-2 shortly with other stuff.
  1050. * Tue Apr 03 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1051. - RC2
  1052. - eliminate versioning information for ancilliary files in prep for CVS.
  1053. - Fix docs mixup.
  1054. * Tue Mar 27 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
  1055. - RC1 quickie.
  1056. * Tue Mar 20 2001 Lamar Owen <lamar@postgresql.org>
  1057. - Beta 6 initial build.
  1058. - Use make install-all-headers instead of cpio hack for devel headers.
  1059. - Split out the libs into the libs subpackage.
  1060. - Updated initscript to use pg_ctl to stop
  1061. - Updated initscript to initdb and start postmaster with LC_ALL=C to
  1062. prevent index corruption.
  1063. * Sun Jan 28 2001 Lamar Owen <lamar@postgresql.org>
  1064. - Beta4
  1065. - Return to 'pgsql' directories instead of 'postgresql'
  1066. - Better perl patches.
  1067. * Mon Jan 15 2001 Lamar Owen <lamar@postgresql.org>
  1068. - Edit patches to get rid of some cruft.
  1069. - Eliminate some more pre-7.1 specfile baggage that is no longer necessary.
  1070. - Moved pg_id to server
  1071. - added Makefile.global and pg_config to devel
  1072. - Corrected /usr/include/pgsql to /usr/include/postgresql
  1073. - Fixed some configure options. Will be trying the configure macro next release
  1074. - Since it is terminally ill in this version pg_upgrade is _gone_.
  1075. - Thanks to Peter E for a good review.
  1076. * Sun Jan 14 2001 Lamar Owen <lamar@postgresql.org>
  1077. - Running regression. 1 on the release-o-meter.
  1078. - Minor patches to get regression running right.
  1079. - Initscript tweaking -- the old test for a database structure fails with 7.1's new structure.
  1080. * Sat Jan 13 2001 Lamar Owen <lamar@postgresql.org>
  1081. - Perl 5 needs to be built with PREFIX set on the Makefile, not GNUmakefile....
  1082. - The 7.1 build is different from the 7.0 build -- see the configure line.
  1083. - NOTE: many files that used to be in /usr/share/postgresql are now in /usr/share/postgresql!
  1084. - by request, conditional packages are now supported. See the top of the spec.
  1085. - Fixed the server postinstall problems.
  1086. * Mon Jan 08 2001 Lamar Owen <lamar@postgresql.org>
  1087. - First 7.1 beta test-build