postgresql-vl.spec 45 KB

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