postgresql-vl.spec 47 KB

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