postgresql-vl.spec 47 KB

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