postgresql-vl.spec 48 KB

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