]>
Commit | Line | Data |
---|---|---|
a774e725 | 1 | # |
2 | # Conditional build: | |
7dac5ffa | 3 | %bcond_without tests # disable testing |
550a1fa5 | 4 | %bcond_without tcl # disables Tcl support |
964e9385 | 5 | %bcond_without kerberos5 # disable kerberos5 support |
dce5630b | 6 | %bcond_without perl # disable Perl support |
dce5630b | 7 | %bcond_without python # disable Python support |
16404f9a | 8 | %bcond_with absolute_dbpaths # enable absolute paths to create database |
550a1fa5 | 9 | # (disabled by default because it is a security risk) |
a774e725 | 10 | |
cf06d071 | 11 | # NOTE: merge from POSTGRESQL_8_3 branch when 8.3 arrives |
12 | ||
016f481d | 13 | Summary: PostgreSQL Data Base Management System |
620f9138 ER |
14 | Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem |
15 | Summary(es.UTF-8): Gestor de Banco de Datos PostgreSQL | |
16 | Summary(fr.UTF-8): Sysème de gestion de base de données PostgreSQL | |
17 | Summary(pl.UTF-8): PostgreSQL - system bazodanowy | |
18 | Summary(pt_BR.UTF-8): Gerenciador de Banco de Dados PostgreSQL | |
19 | Summary(ru.UTF-8): PostgreSQL - система управления базами данных | |
20 | Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi | |
21 | Summary(uk.UTF-8): PostgreSQL - система керування базами даних | |
22 | Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件 | |
016f481d | 23 | Name: postgresql |
dbe6dd87 | 24 | Version: 8.2.5 |
5b388928 | 25 | Release: 2 |
3b12d52f | 26 | License: BSD |
016f481d | 27 | Group: Applications/Databases |
7cf5ccdb | 28 | Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2 |
dbe6dd87 | 29 | # Source0-md5: bb1cd309ea72f070cb964736f5755847 |
b752f531 | 30 | Source1: %{name}.init |
9d4c7921 | 31 | Source2: pgsql-Database-HOWTO-html.tar.gz |
b21c6987 | 32 | # Source2-md5: 5b656ddf1db41965761f85204a14398e |
b752f531 | 33 | Source3: %{name}.sysconfig |
dc307bb4 | 34 | Patch0: %{name}-conf.patch |
35 | Patch1: %{name}-absolute_dbpaths.patch | |
dc307bb4 | 36 | Patch3: %{name}-ecpg_link.patch |
37 | Patch4: %{name}-ecpg-includedir.patch | |
83a0f474 | 38 | Patch5: %{name}-pg_ctl-fix.patch |
5b388928 | 39 | Patch6: %{name}-825_planner_regression.patch |
016f481d | 40 | URL: http://www.postgresql.org/ |
368587a1 | 41 | BuildRequires: autoconf |
a9e3ed5f | 42 | BuildRequires: automake |
54cd8c94 | 43 | #BuildRequires: bison >= 1.875 not needed for releases |
b41af98e | 44 | BuildRequires: flex |
899ec251 | 45 | BuildRequires: gettext-devel |
25976790 | 46 | %{?with_kerberos5:BuildRequires: krb5-devel} |
b4e9d937 | 47 | BuildRequires: libtool |
0b02f266 | 48 | BuildRequires: libxml2-devel |
49 | BuildRequires: libxslt-devel | |
c32c47f8 | 50 | BuildRequires: ncurses-devel >= 5.0 |
e05bfd03 | 51 | BuildRequires: openssl-devel >= 0.9.7d |
0715e574 | 52 | BuildRequires: pam-devel |
c6b2c886 | 53 | %{?with_perl:BuildRequires: perl-devel} |
6006bd58 KK |
54 | %if %{with python} |
55 | BuildRequires: python >= 1:2.3 | |
56 | BuildRequires: python-devel >= 1:2.3 | |
024f308f | 57 | BuildRequires: python-modules >= 1:2.3 |
6006bd58 | 58 | %endif |
cd61d421 | 59 | BuildRequires: readline-devel >= 4.2 |
3a2e0fdd | 60 | BuildRequires: rpmbuild(macros) >= 1.268 |
16404f9a | 61 | %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3} |
40a8e4da | 62 | BuildRequires: zlib-devel |
3a2e0fdd | 63 | Requires(post,preun): /sbin/chkconfig |
320d02f0 | 64 | Requires(pre): /bin/id |
3a2e0fdd | 65 | Requires(pre): /usr/bin/getgid |
320d02f0 JB |
66 | Requires(pre): /usr/sbin/groupadd |
67 | Requires(pre): /usr/sbin/useradd | |
68 | Requires(pre): /usr/sbin/usermod | |
3a2e0fdd ER |
69 | Requires: %{name}-clients = %{version}-%{release} |
70 | Requires: %{name}-libs = %{version}-%{release} | |
71 | Requires: rc-scripts | |
1e933717 | 72 | Obsoletes: postgresql-server |
38168fb1 | 73 | Obsoletes: postgresql-test |
2bfb68de | 74 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7386fb4a | 75 | |
00287bb7 | 76 | %define _pgmoduledir %{_libdir}/postgresql |
dc307bb4 | 77 | %define _pgsqldir %{_datadir}/postgresql/contrib |
48115857 | 78 | |
2477983b AM |
79 | %define _ulibdir /usr/lib |
80 | ||
b35e841d | 81 | %description |
e59a0118 | 82 | PostgreSQL Data Base Management System (formerly known as Postgres, |
83 | then as Postgres95). | |
84 | ||
85 | PostgreSQL is an enhancement of the POSTGRES database management | |
86 | system, a next-generation DBMS research prototype. While PostgreSQL | |
87 | retains the powerful data model and rich data types of POSTGRES, it | |
88 | replaces the PostQuel query language with an extended subset of SQL. | |
89 | PostgreSQL is free and the complete source is available. | |
90 | ||
91 | PostgreSQL development is being performed by a team of Internet | |
92 | developers who all subscribe to the PostgreSQL development mailing | |
93 | list. The current coordinator is Marc G. Fournier | |
94 | (scrappy@postgreSQL.org). This team is now responsible for all current | |
95 | and future development of PostgreSQL. | |
96 | ||
97 | The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many | |
98 | others have contributed to the porting, testing, debugging and | |
99 | enhancement of the code. The original Postgres code, from which | |
100 | PostgreSQL is derived, was the effort of many graduate students, | |
101 | undergraduate students, and staff programmers working under the | |
102 | direction of Professor Michael Stonebraker at the University of | |
103 | California, Berkeley. | |
b35e841d | 104 | |
105 | The original name of the software at Berkeley was Postgres. When SQL | |
e59a0118 | 106 | functionality was added in 1995, its name was changed to Postgres95. |
107 | The name was changed at the end of 1996 to PostgreSQL. | |
b35e841d | 108 | |
e59a0118 | 109 | PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD, |
110 | and most flavours of Unix. | |
b35e841d | 111 | |
c76c631a JR |
112 | %description -l de.UTF-8 |
113 | PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als | |
b35e841d | 114 | Postgres95 bekannt). |
115 | ||
e59a0118 | 116 | PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems, |
c76c631a JR |
117 | ein DBMS-Forschungsprototyp der nächsten Generation. Während es das |
118 | leistungsfähige Datenmodell und die reichhaltigen Datentypen von | |
119 | POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein | |
e59a0118 | 120 | Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist |
c76c631a | 121 | verfügbar. |
48115857 | 122 | |
c76c631a JR |
123 | Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle |
124 | sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G. | |
125 | Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für | |
126 | alle aktuellen und künftigen Entwicklungen von PostgreSQL. | |
48115857 | 127 | |
e59a0118 | 128 | Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen. |
129 | Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur | |
130 | Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem | |
131 | sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden, | |
132 | Studenten und Programmierern unter der Leitung von Professor Michael | |
133 | Stonebraker an der University of California, Berkeley. | |
b35e841d | 134 | |
c76c631a JR |
135 | Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität |
136 | hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich | |
137 | entschied man sich für PostgreSQL. | |
b35e841d | 138 | |
c76c631a | 139 | PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD |
e59a0118 | 140 | und den meisten Unix-Systemen. |
b35e841d | 141 | |
c76c631a | 142 | %description -l es.UTF-8 |
55747262 | 143 | Administrador de Banco de Datos PostgreSQL (conocido anteriormente |
c76c631a JR |
144 | como Postgres, y después como Postgres95). PostgreSQL es una |
145 | continuación mejorada del Sistema Administrador de Banco de Datos | |
55747262 | 146 | POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva |
c76c631a | 147 | generación. Mientras PostgreSQL mantiene el potente modelo de datos y |
55747262 | 148 | los varios tipos de datos del POSTGRES, substituye el lenguaje de |
149 | consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL | |
150 | es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL | |
151 | se ejecutado por un equipo de estudiosos de Internet, todos suscritos | |
152 | en la lista de desarrollo del PostgreSQL. El coordinador actual es | |
153 | Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora | |
154 | responsable por el desarrollo actual y futuro del PostgreSQL. | |
155 | ||
c76c631a JR |
156 | %description -l fr.UTF-8 |
157 | Système de gestion de bases de données PostgreSQL (D'abord nommé | |
e59a0118 | 158 | Postgres, puis Postgres95). |
159 | ||
c76c631a JR |
160 | PostgreSQL est une amélioration du système de gestion de bases de |
161 | données POSTGRES, un prototype de recherche de la génération suivant | |
162 | DBMS. Tout en conservant le puissant modèle de donnée de et les types | |
163 | de donée riches de Postgres, il remplace le langage de requêtes de | |
e59a0118 | 164 | Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est |
165 | libre, et ses sources sont disponibles. | |
166 | ||
c76c631a JR |
167 | Le développement de PostgreSQL est actuellement réalisé via internet |
168 | parune équipe de développeurs inscrits sur la mailing-list de | |
169 | développement de PostgreSQL. Le coordinateur actuel est Marc G | |
170 | Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du | |
171 | développemen actuel et à venir de PostgreSQL. | |
e59a0118 | 172 | |
c76c631a JR |
173 | Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen. |
174 | Beaucoup d'autres ont contribué au portage, au test, au débogage et à | |
175 | l'amélioration du code. Le code original de Postgres, duquel | |
176 | PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de | |
e59a0118 | 177 | moins haut niveau, et de programmeurs travaillant sous la direction du |
c76c631a | 178 | professeur Michael Stonebraker à l'université de Berkeley Californie. |
e59a0118 | 179 | |
c76c631a JR |
180 | Le nom original du logiciel était Postgres. Quand les fonctionnalitées |
181 | SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été | |
182 | rebaptisé PostgreSQL en 1996. | |
e59a0118 | 183 | |
184 | PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD, | |
185 | et la plupart des Unix. | |
b35e841d | 186 | |
c76c631a JR |
187 | %description -l pl.UTF-8 |
188 | System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako | |
189 | Postgres, następnie jako Postgres95). | |
3afbcd28 | 190 | |
c76c631a JR |
191 | PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES, |
192 | prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył | |
193 | model danych oraz bogaty zbiór różnych typów danych, to jednak język | |
194 | zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL | |
195 | jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w | |
196 | pełni dostępne. | |
1f130e30 | 197 | |
c76c631a JR |
198 | System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani |
199 | na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest | |
200 | Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół | |
201 | jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL. | |
1f130e30 | 202 | |
203 | Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu | |
c76c631a JR |
204 | innych pomagało przenosząc na różne platformy, testując, analizując i |
205 | rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego | |
206 | PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz | |
207 | zespołu programistów, którzy pracowali pod kierunkiem profesora | |
1f130e30 | 208 | Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley. |
209 | ||
c76c631a JR |
210 | Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała |
211 | Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na | |
212 | Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na | |
1f130e30 | 213 | PostgreSQL. |
214 | ||
c76c631a | 215 | PostgreSQL może być uruchomiony pod następującymi systemami: Solaris, |
67280bfd | 216 | SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi. |
b35e841d | 217 | |
c76c631a | 218 | %description -l pt_BR.UTF-8 |
55747262 | 219 | Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como |
220 | Postgres, e depois como Postgres95). | |
221 | ||
c76c631a JR |
222 | O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de |
223 | Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD | |
224 | de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de | |
225 | dados e os vários tipos de dados do POSTGRES, ele substitui a | |
55747262 | 226 | linguagem de consulta PostQuel por um subconjunto estendido da SQL. O |
c76c631a | 227 | PostgreSQL é livre e tem os fontes disponíveis. |
55747262 | 228 | |
c76c631a | 229 | O desenvolvimento do PostgreSQL está sendo executado por uma equipe de |
55747262 | 230 | desenvolvedores da Internet, todos subscritores da lista de |
c76c631a JR |
231 | desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier |
232 | (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo | |
55747262 | 233 | desenvolvimento atual e futuro do PostgreSQL. |
234 | ||
c76c631a JR |
235 | %description -l ru.UTF-8 |
236 | PostgreSQL - система управления базами данных (прежде известная как | |
237 | Postgres, потом как Postgres95). | |
238 | ||
239 | PostgreSQL - это расширенная версия системы управления базами данных | |
240 | POSTGRES, исследовательского прототипа DBMS следующей генерации. | |
241 | Сохраняя мощную модель данных и богатый набор типов данных POSTGRES, | |
242 | она заменяет язык запросов PostQuel расширенным набором SQL. | |
243 | PostgreSQL бесплатен и поставляется в виде полного комплекта исходных | |
244 | текстов. | |
245 | ||
246 | PostgreSQL разрабатывался командой Internet-разработчиков, подписанных | |
247 | на список рассылки, посвященный разработке PostgreSQL. В настоящее | |
248 | время координатором является Marc G. Fournier | |
249 | (scrappy@postgreSQL.org). Эта команда в настоящее время отвечает за | |
250 | все текущие и будущие разработки PostgreSQL. | |
251 | ||
252 | Авторами PostgreSQL 1.01 были Andrew Yu и Jolly Chen. Многие внесли | |
253 | свой вклад в портирование, тестирование, отладку и улучшение кода. | |
254 | Оригинальный код Postgres, от которого произошел PostgreSQL, был | |
255 | создан усилиями студентов, аспирантов и персонала, работающего под | |
256 | руководством профессора Michael Stonebraker в University of | |
9f84dc01 | 257 | California, Berkeley. |
258 | ||
c76c631a JR |
259 | Оригинальное название ПО в Berkeley было Postgres. Когда в 1995 году |
260 | была добавлена функциональность SQL, название изменилось на | |
261 | Postgres95. В конце 1996 года оно еще раз изменилось и теперь это | |
9f84dc01 | 262 | PostgreSQL. |
263 | ||
c76c631a JR |
264 | PostgreSQL работает на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD |
265 | и большинстве других разновидностей Unix. | |
9f84dc01 | 266 | |
c76c631a JR |
267 | %description -l tr.UTF-8 |
268 | PostgreSQL, POSTGRES'den türemiş bir veri tabanı yönetim sistemidir | |
269 | (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini | |
270 | desteklerken SQL'in genişletilmiş bir altkümesi yerine PostQuel | |
e59a0118 | 271 | sorgulama dilini koyar. |
b35e841d | 272 | |
c76c631a JR |
273 | %description -l uk.UTF-8 |
274 | PostgreSQL - система керування базами даних (раніш відома як Postgres, | |
275 | потім як Postgres95). | |
276 | ||
277 | PostgreSQL - це розширена версія системи керування базами даних | |
278 | POSTGRES, дослідницького прототипу DBMS наступної генерації. | |
279 | Зберігаючи потужну модель даних та багатий набір типів даних POSTGRES, | |
280 | вона замінює мову запитів PostQuel розширеним набором SQL. PostgreSQL | |
281 | безкоштовна та поставляється у вигляді повного комплекту вихідних | |
282 | текстів. | |
283 | ||
284 | PostgreSQL розробляється командою Internet-програмістів, учасників | |
285 | списку розсилки, присвяченого розробці PostgreSQL. Наразі | |
286 | координатором є Marc G. Fournier (scrappy@postgreSQL.org). Ця команда | |
287 | відповідає за всі поточні та майбутні розробки PostgreSQL. | |
288 | ||
289 | Авторами PostgreSQL 1.01 були Andrew Yu та Jolly Chen. Багато людей | |
290 | внесли свій внесок в портування, тестування, відладку та покращення | |
291 | коду. Оригінальний код Postgres, від якого походить PostgreSQL, був | |
292 | створений зусиллями студентів, аспірантів та персоналу, який працював | |
293 | під керівництвом професора Michael Stonebraker в University of | |
9f84dc01 | 294 | California, Berkeley. |
295 | ||
c76c631a JR |
296 | Оригінальна назва програми в Berkeley була Postgres. Коли в 1995 році |
297 | було додано функціональність SQL, назва змінилася на Postgres95. В | |
298 | кінці 1996 року вона ще раз змінилась і зараз це PostgreSQL. | |
9f84dc01 | 299 | |
c76c631a JR |
300 | PostgreSQL працює на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD |
301 | та більшості інших різновидів Unix. | |
9f84dc01 | 302 | |
b35e841d | 303 | %package devel |
016f481d | 304 | Summary: PostgreSQL development header files and libraries |
620f9138 ER |
305 | Summary(de.UTF-8): PostgreSQL-Entwicklungs-Header-Dateien und Libraries |
306 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas PostgreSQL | |
307 | Summary(fr.UTF-8): En-têtes et bibliothèques de développement PostgreSQL | |
308 | Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe i biblioteki | |
309 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL | |
310 | Summary(ru.UTF-8): PostgreSQL - хедеры и библиотеки разработчика | |
311 | Summary(tr.UTF-8): PostgreSQL başlık dosyaları ve kitaplıklar | |
312 | Summary(uk.UTF-8): PostgreSQL - хедери та бібліотеки програміста | |
016f481d | 313 | Group: Development/Libraries |
2bfb68de | 314 | Requires: %{name}-libs = %{version}-%{release} |
b35e841d | 315 | |
316 | %description devel | |
317 | This package contains header files and libraries required to compile | |
e59a0118 | 318 | applications that are talking directly to the PostgreSQL backend |
319 | server. | |
b35e841d | 320 | |
c76c631a JR |
321 | %description devel -l de.UTF-8 |
322 | Dieses Paket enthält die Header-Dateien und Libraries, die zum | |
e59a0118 | 323 | Kompilieren von Applikationen notwendig sind, die direkt mit dem |
b35e841d | 324 | PostgreSQL-Backend-Server kommunizieren. |
325 | ||
c76c631a JR |
326 | %description devel -l es.UTF-8 |
327 | Este paquete contiene archivos de inclusión y bibliotecas requeridas | |
328 | para compilación de aplicativos que se comunican directamente con el | |
55747262 | 329 | servidor backend PostgreSQL. |
330 | ||
c76c631a JR |
331 | %description devel -l fr.UTF-8 |
332 | Ce package contient les fichiers d'en-tête et les bibliothéques | |
333 | nécessaires pour compiler des applications ayant des échanges directs | |
e59a0118 | 334 | avec le serveur du backend PostgreSQL. |
b35e841d | 335 | |
c76c631a JR |
336 | %description devel -l pl.UTF-8 |
337 | Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji | |
338 | aplikacji łączących się bezpośrednio z serwerem PostgreSQL. | |
b35e841d | 339 | |
c76c631a JR |
340 | %description devel -l pt_BR.UTF-8 |
341 | Este pacote contém arquivos de inclusão e bibliotecas requeridas para | |
342 | compilação de aplicativos que se comunicam diretamente com o servidor | |
55747262 | 343 | backend PostgreSQL. |
344 | ||
c76c631a JR |
345 | %description devel -l ru.UTF-8 |
346 | Этот пакет содержит хедеры и библиотеки, необходимые для сборки | |
347 | приложений, непосредственно взаимодействующих с сервером PostgreSQL. | |
9f84dc01 | 348 | |
c76c631a JR |
349 | %description devel -l tr.UTF-8 |
350 | Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için | |
351 | gereken başlık dosyalarını ve kitaplıkları içerir. | |
b35e841d | 352 | |
c76c631a JR |
353 | %description devel -l uk.UTF-8 |
354 | Цей пакет містить хедери та бібліотеки, необхідні для розробки | |
355 | програм, які безпосередньо взаємодіють з сервером PostgreSQL. | |
9f84dc01 | 356 | |
cb920eb9 | 357 | %package backend-devel |
358 | Summary: PostgreSQL backend development header files | |
620f9138 | 359 | Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe dla backendu |
cb920eb9 | 360 | Group: Development/Libraries |
2bfb68de JB |
361 | Requires: %{name}-devel = %{version}-%{release} |
362 | Requires: %{name}-libs = %{version}-%{release} | |
cb920eb9 | 363 | |
364 | %description backend-devel | |
a9e3ed5f JB |
365 | This package contains header files required to compile functions that |
366 | could be loaded directly by backend | |
cb920eb9 | 367 | |
c76c631a JR |
368 | %description backend-devel -l pl.UTF-8 |
369 | Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc | |
a9e3ed5f | 370 | bezposrednio ladowane przez beckend serwera PostgreSQL. |
cb920eb9 | 371 | |
b35e841d | 372 | %package clients |
a57096f6 | 373 | Summary: Clients needed to access a PostgreSQL server |
620f9138 ER |
374 | Summary(es.UTF-8): Clientes necesarios para acceder al servidor PostgreSQL |
375 | Summary(pl.UTF-8): Klienci wymagani do dostępu do serwera PostgreSQL | |
376 | Summary(pt_BR.UTF-8): Clientes necessários para acessar o servidor PostgreSQL | |
377 | Summary(ru.UTF-8): Клиентские программы, необходимые для доступа к серверу PostgreSQL | |
378 | Summary(uk.UTF-8): Клієнтські програми, необхідні для доступу до сервера PostgreSQL | |
016f481d | 379 | Group: Applications/Databases |
2bfb68de | 380 | Requires: %{name}-libs = %{version}-%{release} |
b35e841d | 381 | |
382 | %description clients | |
aa1db817 | 383 | This package includes only the clients needed to access an PostgreSQL |
1f130e30 | 384 | server. The server is included in the main package. If all you need is |
385 | to connect to another PostgreSQL server, the this is the only package | |
386 | you need to install. Clients include several command-line utilities | |
387 | you can use to manage your databases on a remote PostgreSQL server. | |
b35e841d | 388 | |
c76c631a | 389 | %description clients -l es.UTF-8 |
55747262 | 390 | Este paquete incluye solamente los clientes necesarios para acceder un |
c76c631a | 391 | servidor PostgreSQL. El servidor está en el paquete principal. |
55747262 | 392 | |
c76c631a JR |
393 | %description clients -l pl.UTF-8 |
394 | Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera | |
395 | PostgreSQL oraz narzędzia do zarządzania bazami działające z linii | |
396 | poleceń. Serwer znajduje się w głównym pakiecie. | |
b35e841d | 397 | |
c76c631a JR |
398 | %description clients -l pt_BR.UTF-8 |
399 | Este pacote inclui somente os clientes necessários para acessar um | |
400 | servidor PostgreSQL. O servidor está no pacote principal. | |
55747262 | 401 | |
c76c631a JR |
402 | %description clients -l ru.UTF-8 |
403 | Этот пакет включает только клиентские программы и библиотеки, | |
404 | необходимые для доступа к серверу PostgreSQL. Сервер входит в главный | |
405 | пакет. Если вам надо только работать с другим сервером PostgreSQL, это | |
406 | единственный пакет, который вам надо установить. | |
9f84dc01 | 407 | |
c76c631a JR |
408 | Теперь пакеты с библиотеками для разных языков программирования (C, |
409 | C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для | |
410 | языка C. | |
9f84dc01 | 411 | |
c76c631a JR |
412 | %description clients -l uk.UTF-8 |
413 | Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні | |
414 | для доступу до сервера PostgreSQL. Сервер міститься в головному | |
415 | пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це | |
416 | єдиний пакет, який вам треба встановити. | |
9f84dc01 | 417 | |
c76c631a JR |
418 | Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl |
419 | і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C. | |
9f84dc01 | 420 | |
b35e841d | 421 | %package doc |
016f481d | 422 | Summary: Documentation for PostgreSQL |
620f9138 | 423 | Summary(pl.UTF-8): Dodatkowa dokumantacja dla PostgreSQL |
016f481d | 424 | Group: Applications/Databases |
b35e841d | 425 | |
426 | %description doc | |
e59a0118 | 427 | This package includes documentation and HOWTO for programmer, admin |
428 | etc., in HTML format. | |
b35e841d | 429 | |
c76c631a JR |
430 | %description doc -l pl.UTF-8 |
431 | Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów, | |
432 | administratorów w formacie HTML. | |
b35e841d | 433 | |
9ea08160 | 434 | %package libs |
435 | Summary: PostgreSQL libraries | |
620f9138 ER |
436 | Summary(es.UTF-8): Biblioteca compartida del PostgreSQL |
437 | Summary(pl.UTF-8): Biblioteki dzielone programu PostgreSQL | |
438 | Summary(pt_BR.UTF-8): Biblioteca compartilhada do PostgreSQL | |
439 | Summary(zh_CN.UTF-8): PostgreSQL 客户所需要的共享库 | |
9ea08160 | 440 | Group: Libraries |
9ea08160 | 441 | |
442 | %description libs | |
aa1db817 | 443 | PostgreSQL shared libraries. |
9ea08160 | 444 | |
c76c631a | 445 | %description libs -l es.UTF-8 |
55747262 | 446 | Este paquete contiene la biblioteca compartida para acceso al |
832d7cf9 | 447 | PostgreSQL. |
55747262 | 448 | |
c76c631a | 449 | %description libs -l pl.UTF-8 |
9ea08160 | 450 | Biblioteki dzielone programu PostgreSQL. |
451 | ||
c76c631a JR |
452 | %description libs -l pt_BR.UTF-8 |
453 | Este pacote contém a biblioteca compartilhada para acesso ao | |
832d7cf9 | 454 | PostgreSQL. |
55747262 | 455 | |
6564a583 | 456 | %package ecpg |
457 | Summary: Embedded SQL in C interface | |
620f9138 | 458 | Summary(pl.UTF-8): Interfejs wbudowanego SQL-a w język C |
6564a583 | 459 | Group: Libraries |
2bfb68de | 460 | Requires: %{name}-libs = %{version}-%{release} |
6564a583 | 461 | |
462 | %description ecpg | |
463 | Embedded SQL in C interface. | |
464 | ||
c76c631a JR |
465 | %description ecpg -l pl.UTF-8 |
466 | Interfejs wbudowanego SQL-a w język C. | |
6564a583 | 467 | |
468 | %package ecpg-devel | |
469 | Summary: Embedded SQL in C interface files | |
620f9138 | 470 | Summary(pl.UTF-8): Pliki programistyczne interfejsu wbudowanego SQL-a w język C |
6564a583 | 471 | Group: Development/Libraries |
2bfb68de JB |
472 | Requires: %{name}-devel = %{version}-%{release} |
473 | Requires: %{name}-ecpg = %{version}-%{release} | |
6564a583 | 474 | |
475 | %description ecpg-devel | |
476 | Embedded SQL in C interface files. | |
477 | ||
c76c631a JR |
478 | %description ecpg-devel -l pl.UTF-8 |
479 | Pliki programistyczne interfejsu wbudowanego SQL-a w język C. | |
6564a583 | 480 | |
9ea08160 | 481 | %package static |
482 | Summary: PostgreSQL static libraries | |
620f9138 ER |
483 | Summary(es.UTF-8): Bibliotecas estaticas PostgreSQL |
484 | Summary(pl.UTF-8): Biblioteki statyczne programu PostgreSQL | |
485 | Summary(pt_BR.UTF-8): Bibliotecas estáticas PostgreSQL | |
486 | Summary(ru.UTF-8): Статические библиотеки для программирования с PostgreSQL | |
487 | Summary(uk.UTF-8): Статичні бібліотеки для програмування з PostgreSQL | |
9ea08160 | 488 | Group: Development/Libraries |
2bfb68de | 489 | Requires: %{name}-devel = %{version}-%{release} |
9ea08160 | 490 | |
491 | %description static | |
492 | PostgreSQL static libraries. | |
493 | ||
c76c631a JR |
494 | %description static -l es.UTF-8 |
495 | Este paquete contiene bibliotecas estaticas requerida para compilación | |
55747262 | 496 | de aplicativos que se comunican directamente con el servidor backend |
497 | PostgreSQL. | |
498 | ||
c76c631a | 499 | %description static -l pl.UTF-8 |
9ea08160 | 500 | Biblioteki statyczne programu PostgreSQL. |
501 | ||
c76c631a JR |
502 | %description static -l pt_BR.UTF-8 |
503 | Este pacote contém as bibliotecas estáticas requeridas para compilação | |
55747262 | 504 | de aplicativos que se comunicam diretamente com o servidor backend |
505 | PostgreSQL. | |
506 | ||
c76c631a JR |
507 | %description static -l ru.UTF-8 |
508 | Это отдельный пакет со статическими библиотеками, которые больше не | |
509 | входят в %{name}-devel. | |
9f84dc01 | 510 | |
c76c631a JR |
511 | %description static -l uk.UTF-8 |
512 | Це окремий пакет зі статичними бібліотеками, які більш не входять в | |
9f84dc01 | 513 | %{name}-devel. |
514 | ||
4ddf546b | 515 | %package module-plpgsql |
516 | Summary: PL/pgSQL - PostgreSQL procedural language | |
620f9138 | 517 | Summary(pl.UTF-8): PL/pgSQL - język proceduralny bazy danych PostgreSQL |
4ddf546b | 518 | Group: Applications/Databases |
2bfb68de | 519 | Requires: %{name} = %{version}-%{release} |
4ddf546b | 520 | |
521 | %description module-plpgsql | |
a94ae93a | 522 | From PostgreSQL documentation: |
4ddf546b | 523 | |
368587a1 | 524 | Postgres supports the definition of procedural languages. In the case |
525 | of a function or trigger procedure defined in a procedural language, | |
526 | the database has no built-in knowledge about how to interpret the | |
527 | function's source text. Instead, the task is passed to a handler that | |
528 | knows the details of the language. The handler itself is a special | |
529 | programming language function compiled into a shared object and loaded | |
530 | on demand. | |
4ddf546b | 531 | |
368587a1 | 532 | To enable PL/pgSQL procedural language for your database you have to |
533 | run createlang command. | |
4ddf546b | 534 | |
c76c631a | 535 | %description module-plpgsql -l pl.UTF-8 |
a94ae93a | 536 | Z dokumentacji PostgreSQL: |
4ddf546b | 537 | |
c76c631a JR |
538 | Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy |
539 | programista zdefiniuje procedurę wyzwalacza lub funkcję w języku | |
540 | proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu | |
541 | funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, | |
542 | który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną | |
543 | funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie | |
368587a1 | 544 | potrzeby. |
4ddf546b | 545 | |
c76c631a | 546 | Za pomocą polecenia createlang można dodać obsługę języka |
368587a1 | 547 | proceduralnego PL/pgSQL dla swojej bazy danych. |
4ddf546b | 548 | |
00287bb7 | 549 | %package module-plperl |
550 | Summary: PL/perl - PostgreSQL procedural language | |
620f9138 | 551 | Summary(pl.UTF-8): PL/perl - język proceduralny bazy danych PostgreSQL |
00287bb7 | 552 | Group: Applications/Databases |
2bfb68de | 553 | Requires: %{name} = %{version}-%{release} |
d330dd10 | 554 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') |
00287bb7 | 555 | |
556 | %description module-plperl | |
a94ae93a | 557 | From PostgreSQL documentation: |
00287bb7 | 558 | |
559 | Postgres supports the definition of procedural languages. In the case | |
560 | of a function or trigger procedure defined in a procedural language, | |
561 | the database has no built-in knowledge about how to interpret the | |
562 | function's source text. Instead, the task is passed to a handler that | |
563 | knows the details of the language. The handler itself is a special | |
564 | programming language function compiled into a shared object and loaded | |
565 | on demand. | |
566 | ||
dce5630b | 567 | To enable PL/Perl procedural language for your database you have to |
00287bb7 | 568 | run createlang command. |
569 | ||
c76c631a | 570 | %description module-plperl -l pl.UTF-8 |
a94ae93a | 571 | Z dokumentacji PostgreSQL: |
00287bb7 | 572 | |
c76c631a JR |
573 | Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy |
574 | programista zdefiniuje procedurę wyzwalacza lub funkcję w języku | |
575 | proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu | |
576 | funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, | |
577 | który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną | |
578 | funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie | |
00287bb7 | 579 | potrzeby. |
580 | ||
c76c631a | 581 | Za pomocą polecenia createlang można dodać obsługę języka |
dce5630b | 582 | proceduralnego PL/Perl dla swojej bazy danych. |
00287bb7 | 583 | |
584 | %package module-plpython | |
dce5630b | 585 | Summary: PL/Python - PostgreSQL procedural language |
620f9138 | 586 | Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL |
00287bb7 | 587 | Group: Applications/Databases |
2bfb68de | 588 | Requires: %{name} = %{version}-%{release} |
6a64b227 | 589 | %pyrequires_eq python |
00287bb7 | 590 | |
591 | %description module-plpython | |
a94ae93a | 592 | From PostgreSQL documentation: |
00287bb7 | 593 | |
594 | Postgres supports the definition of procedural languages. In the case | |
595 | of a function or trigger procedure defined in a procedural language, | |
596 | the database has no built-in knowledge about how to interpret the | |
597 | function's source text. Instead, the task is passed to a handler that | |
598 | knows the details of the language. The handler itself is a special | |
599 | programming language function compiled into a shared object and loaded | |
600 | on demand. | |
601 | ||
dce5630b | 602 | To enable PL/Python procedural language for your database you have to |
00287bb7 | 603 | run createlang command. |
604 | ||
c76c631a | 605 | %description module-plpython -l pl.UTF-8 |
a94ae93a | 606 | Z dokumentacji PostgreSQL: |
00287bb7 | 607 | |
c76c631a JR |
608 | Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy |
609 | programista zdefiniuje procedurę wyzwalacza lub funkcję w języku | |
610 | proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu | |
611 | funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, | |
612 | który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną | |
613 | funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie | |
00287bb7 | 614 | potrzeby. |
615 | ||
c76c631a | 616 | Za pomocą polecenia createlang można dodać obsługę języka |
dce5630b | 617 | proceduralnego PL/Python dla swojej bazy danych. |
00287bb7 | 618 | |
4ddf546b | 619 | %package module-pltcl |
dce5630b | 620 | Summary: PL/Tcl - PostgreSQL procedural language |
620f9138 | 621 | Summary(pl.UTF-8): PL/Tcl - język proceduralny bazy danych PostgreSQL |
4ddf546b | 622 | Group: Applications/Databases |
2bfb68de | 623 | Requires: %{name} = %{version}-%{release} |
7543e4a8 | 624 | Requires: tcl(Pgtcl) |
4ddf546b | 625 | |
626 | %description module-pltcl | |
a94ae93a | 627 | From PostgreSQL documentation: |
4ddf546b | 628 | |
368587a1 | 629 | Postgres supports the definition of procedural languages. In the case |
630 | of a function or trigger procedure defined in a procedural language, | |
631 | the database has no built-in knowledge about how to interpret the | |
632 | function's source text. Instead, the task is passed to a handler that | |
633 | knows the details of the language. The handler itself is a special | |
634 | programming language function compiled into a shared object and loaded | |
635 | on demand. | |
4ddf546b | 636 | |
dce5630b | 637 | To enable PL/Tcl procedural language for your database you have to run |
4ddf546b | 638 | createlang command. |
639 | ||
c76c631a | 640 | %description module-pltcl -l pl.UTF-8 |
a94ae93a | 641 | Z dokumentacji PostgreSQL: |
4ddf546b | 642 | |
c76c631a JR |
643 | Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy |
644 | programista zdefiniuje procedurę wyzwalacza lub funkcję w języku | |
645 | proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu | |
646 | funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, | |
647 | który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną | |
648 | funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie | |
368587a1 | 649 | potrzeby. |
4ddf546b | 650 | |
c76c631a | 651 | Za pomocą polecenia createlang można dodać obsługę języka |
dce5630b | 652 | proceduralnego PL/Tcl dla swojej bazy danych. |
4ddf546b | 653 | |
d8edd803 JB |
654 | %package module-dblink |
655 | Summary: dblink module for PostgreSQL | |
620f9138 | 656 | Summary(pl.UTF-8): Moduł dblink dla PostgreSQL-a |
d8edd803 JB |
657 | Group: Applications/Databases |
658 | Requires: %{name} = %{version}-%{release} | |
659 | ||
660 | %description module-dblink | |
661 | dblink module for PostgreSQL provides functions returning results from | |
662 | remote database. | |
663 | ||
c76c631a JR |
664 | %description module-dblink -l pl.UTF-8 |
665 | Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze | |
d8edd803 JB |
666 | zdalnej bazy danych. |
667 | ||
8646766c JB |
668 | %package module-lo |
669 | Summary: Large Objects module for PostgreSQL | |
620f9138 | 670 | Summary(pl.UTF-8): Moduł Large Objects dla PostgreSQL-a |
8646766c JB |
671 | Group: Applications/Databases |
672 | Requires: %{name} = %{version}-%{release} | |
673 | ||
674 | %description module-lo | |
675 | Large Objects module for PostgreSQL adds a new data type 'lo', some | |
676 | support functions and a trigger which handles the orphaning problem. | |
677 | ||
c76c631a JR |
678 | %description module-lo -l pl.UTF-8 |
679 | Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo', | |
680 | kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem | |
681 | osieroconych obiektów. | |
8646766c | 682 | |
5b79623d | 683 | %package module-pgcrypto |
ff04b431 | 684 | Summary: Cryptographic functions for PostgreSQL |
620f9138 | 685 | Summary(pl.UTF-8): Funkcje kryptograficzne dla PostgreSQL-a |
ff04b431 | 686 | Group: Applications/Databases |
2bfb68de | 687 | Requires: %{name} = %{version}-%{release} |
ff04b431 | 688 | |
5b79623d | 689 | %description module-pgcrypto |
690 | Cryptographic functions for PostgreSQL. | |
ff04b431 | 691 | |
c76c631a | 692 | %description module-pgcrypto -l pl.UTF-8 |
5b79623d | 693 | Funkcje kryptograficzne dla PostgreSQL. |
ff04b431 | 694 | |
bc5c807d | 695 | %package module-tablefunc |
d8edd803 | 696 | Summary: crosstab functions for PostgreSQL |
620f9138 | 697 | Summary(pl.UTF-8): Funkcje crosstab dla PostgreSQL-a |
bc5c807d PG |
698 | Group: Applications/Databases |
699 | Requires: %{name} = %{version}-%{release} | |
700 | ||
701 | %description module-tablefunc | |
d8edd803 JB |
702 | crosstab functions for PostgreSQL. |
703 | ||
c76c631a | 704 | %description module-tablefunc -l pl.UTF-8 |
d8edd803 | 705 | Funkcje crosstab dla PostgreSQL-a. |
bc5c807d | 706 | |
ae08c8ad | 707 | %package module-tsearch2 |
708 | Summary: Full text extension for PostgreSQL | |
620f9138 | 709 | Summary(pl.UTF-8): Rozszerzenie pełnotekstowe dla PostgreSQL-a |
ae08c8ad | 710 | Group: Applications/Databases |
2bfb68de | 711 | Requires: %{name} = %{version}-%{release} |
ae08c8ad | 712 | |
713 | %description module-tsearch2 | |
550a1fa5 JB |
714 | Implementation of a new data type tsvector - a searchable data type |
715 | with indexed access: | |
716 | http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/ | |
717 | ||
c76c631a JR |
718 | %description module-tsearch2 -l pl.UTF-8 |
719 | Implementacja nowego typu danych tsvector - typu danych podlegającego | |
720 | przeszukiwaniu z dostępem poprzez indeksy: | |
550a1fa5 | 721 | http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/ |
ae08c8ad | 722 | |
b70e6cb6 AM |
723 | %package module-pg_trgm |
724 | Summary: Trigram matching for PostgreSQL | |
620f9138 | 725 | Summary(pl.UTF-8): Dopasowanie trigramowe dla PostgreSQL-a |
b70e6cb6 AM |
726 | Group: Applications/Databases |
727 | Requires: %{name} = %{version}-%{release} | |
728 | ||
729 | %description module-pg_trgm | |
83a0f474 JB |
730 | This module provides functions and index classes for determining the |
731 | similarity of text based on trigram matching. | |
b70e6cb6 | 732 | |
c76c631a JR |
733 | %description module-pg_trgm -l pl.UTF-8 |
734 | Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów | |
83a0f474 | 735 | w oparciu o dopasowywanie trigramowe (trigram matching). |
b70e6cb6 | 736 | |
0b02f266 | 737 | |
738 | %package module-xml2 | |
739 | Summary: XML-handling functions for PostgreSQL | |
620f9138 | 740 | Summary(pl.UTF-8): Funkcje do obsługi XML-a dla PostgreSQL-a |
0b02f266 | 741 | Group: Applications/Databases |
742 | Requires: %{name} = %{version}-%{release} | |
743 | ||
744 | %description module-xml2 | |
745 | Module with XML functions provides both XPath querying and XSLT | |
746 | functionality. There is also a new table function which allows the | |
747 | straightforward return of multiple XML results. | |
748 | ||
c76c631a JR |
749 | %description module-xml2 -l pl.UTF-8 |
750 | Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz | |
751 | funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na | |
752 | bezpośrednie zwracanie wielu wyników XML. | |
6a83c38f | 753 | |
b35e841d | 754 | %prep |
b7325cb2 | 755 | %setup -q |
a1028a17 | 756 | %patch0 -p1 |
dc307bb4 | 757 | %{?with_absolute_dbpaths:%patch1 -p1} |
0fed4ed9 | 758 | %patch3 -p1 |
dc307bb4 | 759 | %patch4 -p1 |
dbe6dd87 | 760 | %patch5 -p1 |
5b388928 | 761 | %patch6 -p0 |
a1028a17 AM |
762 | |
763 | tar xzf doc/man*.tar.gz | |
b35e841d | 764 | |
c80000c0 JR |
765 | mkdir doc/unpacked |
766 | tar zxf doc/postgres.tar.gz -C doc/unpacked | |
767 | ||
99e19e69 | 768 | # Erase all CVS dirs |
dc307bb4 | 769 | #find contrib -type d -name CVS -exec rm -rf {} \; |
48115857 | 770 | |
b35e841d | 771 | %build |
0188dcac | 772 | %{__aclocal} -I config |
8204288a | 773 | %{__autoconf} |
99e19e69 | 774 | %configure \ |
54cd8c94 | 775 | CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \ |
12ff1bb8 JB |
776 | --disable-rpath \ |
777 | --enable-depend \ | |
778 | --enable-integer-datetimes \ | |
eaf24b0b | 779 | --enable-nls \ |
12ff1bb8 | 780 | --enable-thread-safety \ |
dc307bb4 | 781 | %{?with_kerberos5:--with-krb5} \ |
40a8e4da | 782 | --with-openssl \ |
12ff1bb8 JB |
783 | --with-pam \ |
784 | %{?with_perl:--with-perl} \ | |
785 | %{?with_python:--with-python} \ | |
2477983b | 786 | %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \ |
3a2e0fdd | 787 | --without-docdir |
b35e841d | 788 | |
40a8e4da | 789 | %{__make} |
d8edd803 | 790 | %{__make} -C contrib/dblink |
8646766c | 791 | %{__make} -C contrib/lo |
ac67838e | 792 | %{__make} -C contrib/pgcrypto |
bc5c807d | 793 | %{__make} -C contrib/tablefunc |
ae08c8ad | 794 | %{__make} -C contrib/tsearch2 |
b70e6cb6 | 795 | %{__make} -C contrib/pg_trgm |
0b02f266 | 796 | %{__make} -C contrib/xml2 |
12ff1bb8 JB |
797 | %{__make} -C src/tutorial \ |
798 | NO_PGXS=1 | |
b4287983 | 799 | |
f863bf87 | 800 | %ifnarch sparc sparcv9 sparc64 alpha |
ac67838e | 801 | %{?with_tests:%{__make} check} |
00287bb7 | 802 | %endif |
b35e841d | 803 | |
804 | %install | |
805 | rm -rf $RPM_BUILD_ROOT | |
42954e9c | 806 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \ |
7dac5ffa | 807 | $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \ |
ee5a78dc | 808 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ |
d2bf084f | 809 | $RPM_BUILD_ROOT%{_mandir} \ |
320d02f0 | 810 | $RPM_BUILD_ROOT/home/services/postgres |
4f5dceb8 | 811 | |
12ff1bb8 | 812 | install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
438eb355 | 813 | |
dc307bb4 | 814 | %{__make} install \ |
00287bb7 | 815 | DESTDIR=$RPM_BUILD_ROOT |
816 | ||
99e19e69 JB |
817 | %if %{with perl} |
818 | %{__make} install -C src/pl/plperl \ | |
819 | DESTDIR=$RPM_BUILD_ROOT | |
820 | %endif | |
00287bb7 | 821 | |
d8edd803 JB |
822 | %{__make} -C contrib/dblink install \ |
823 | DESTDIR=$RPM_BUILD_ROOT | |
824 | ||
8646766c JB |
825 | %{__make} -C contrib/lo install \ |
826 | DESTDIR=$RPM_BUILD_ROOT | |
827 | ||
ac67838e JB |
828 | %{__make} -C contrib/pgcrypto install \ |
829 | DESTDIR=$RPM_BUILD_ROOT | |
494d1b7e | 830 | |
bc5c807d PG |
831 | %{__make} -C contrib/tablefunc install \ |
832 | DESTDIR=$RPM_BUILD_ROOT | |
833 | ||
ae08c8ad | 834 | %{__make} -C contrib/tsearch2 install \ |
835 | DESTDIR=$RPM_BUILD_ROOT | |
836 | ||
b70e6cb6 AM |
837 | %{__make} -C contrib/pg_trgm install \ |
838 | DESTDIR=$RPM_BUILD_ROOT | |
839 | ||
0b02f266 | 840 | %{__make} -C contrib/xml2 install \ |
841 | DESTDIR=$RPM_BUILD_ROOT | |
842 | ||
048840cb | 843 | touch $RPM_BUILD_ROOT/var/log/pgsql |
b35e841d | 844 | |
9bf007d0 | 845 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql |
b752f531 | 846 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql |
b35e841d | 847 | |
b35e841d | 848 | install -d howto |
4b61b2c1 | 849 | tar zxf %{SOURCE2} -C howto |
b35e841d | 850 | |
be3e6567 | 851 | %py_comp $RPM_BUILD_ROOT%{py_libdir} |
852 | %py_ocomp $RPM_BUILD_ROOT%{py_libdir} | |
40a8e4da | 853 | |
fe8440d2 | 854 | # find locales |
a6765f5b | 855 | for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do |
fe8440d2 | 856 | %find_lang $f |
857 | done | |
858 | # merge locales | |
859 | cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang | |
dc307bb4 | 860 | cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang |
861 | ||
862 | # Remove Contrib documentation. We use macro %doc | |
863 | rm -rf $RPM_BUILD_ROOT/contrib | |
fe8440d2 | 864 | |
7543e4a8 | 865 | mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl |
866 | ||
e0ee9cb2 | 867 | install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/ |
868 | ||
a9e3ed5f JB |
869 | %clean |
870 | rm -rf $RPM_BUILD_ROOT | |
a9e3ed5f | 871 | |
275a421e | 872 | %pre |
4239f689 JB |
873 | PG_DB_CLUSTERS="" |
874 | if [ -f /etc/sysconfig/postgresql ]; then | |
875 | . /etc/sysconfig/postgresql | |
876 | if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then | |
877 | PG_DB_CLUSTERS="$POSTGRES_DATA_DIR" | |
878 | fi | |
879 | fi | |
880 | foundold=0 | |
881 | for pgdir in $PG_DB_CLUSTERS; do | |
882 | if [ -f $pgdir/PG_VERSION ]; then | |
ea38cfb0 | 883 | if [ `cat $pgdir/PG_VERSION` != '8.2' ]; then |
4239f689 JB |
884 | echo "Found database(s) in older, incompatible format in cluster $pgdir." |
885 | foundold=1 | |
886 | fi | |
887 | fi | |
888 | done | |
889 | if [ "$foundold" = "1" ]; then | |
890 | echo | |
891 | echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)" | |
892 | echo "and clean (or rename) those directories; then upgrade postgresql and" | |
893 | echo "restore all data (using pg_restore or psql)." | |
894 | echo "Remember to stop the daemon before upgrading!" | |
895 | echo | |
896 | echo "Warning for upgrade from version *before* 7.2." | |
897 | echo "Please note, that postgresql module path changed from" | |
898 | echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path" | |
899 | echo "in dump file before restore." | |
900 | echo | |
901 | echo "Warning for upgrade from version *before* 7.3." | |
902 | echo "Reading following webpage is encouraged:" | |
258750c1 | 903 | echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3" |
4239f689 JB |
904 | exit 1 |
905 | fi | |
4c2f9988 | 906 | |
4b61b2c1 ER |
907 | %groupadd -g 88 -r postgres |
908 | %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres | |
909 | ||
e76d3d1a | 910 | if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then |
320d02f0 | 911 | /usr/sbin/usermod -d /home/services/postgres postgres |
320d02f0 | 912 | fi |
4a025d17 | 913 | |
b35e841d | 914 | %post |
1bc01910 | 915 | /sbin/chkconfig --add postgresql |
3a2e0fdd | 916 | %service postgresql restart "postgresql server" |
c1db913e | 917 | |
1bc01910 | 918 | %preun |
919 | if [ "$1" = "0" ]; then | |
3a2e0fdd | 920 | %service postgresql stop |
1bc01910 | 921 | /sbin/chkconfig --del postgresql |
922 | fi | |
016f481d | 923 | |
a0af78da | 924 | %post libs -p /sbin/ldconfig |
925 | %postun libs -p /sbin/ldconfig | |
48115857 | 926 | |
a0af78da | 927 | %post ecpg -p /sbin/ldconfig |
928 | %postun ecpg -p /sbin/ldconfig | |
6564a583 | 929 | |
fe8440d2 | 930 | %files -f main.lang |
103c268d | 931 | %defattr(644,root,root,755) |
99e19e69 | 932 | %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template} |
bd011839 | 933 | %attr(754,root,root) /etc/rc.d/init.d/postgresql |
63ca64a6 | 934 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql |
b35e841d | 935 | |
e957782b | 936 | %attr(755,root,root) %{_bindir}/initdb |
084a7c24 | 937 | %attr(755,root,root) %{_bindir}/ipcclean |
084a7c24 | 938 | %attr(755,root,root) %{_bindir}/pg_controldata |
939 | %attr(755,root,root) %{_bindir}/pg_ctl | |
084a7c24 | 940 | %attr(755,root,root) %{_bindir}/pg_resetxlog |
e957782b | 941 | %attr(755,root,root) %{_bindir}/postgres |
942 | %attr(755,root,root) %{_bindir}/postmaster | |
084a7c24 | 943 | |
944 | %attr(755,root,root) %{_pgmoduledir}/ascii* | |
945 | %attr(755,root,root) %{_pgmoduledir}/cyrillic* | |
946 | %attr(755,root,root) %{_pgmoduledir}/euc* | |
947 | %attr(755,root,root) %{_pgmoduledir}/latin* | |
948 | %attr(755,root,root) %{_pgmoduledir}/utf* | |
7386fb4a | 949 | |
00287bb7 | 950 | %dir %{_pgsqldir} |
1888f1fe | 951 | %dir %{_datadir}/postgresql |
c80000c0 JR |
952 | %{_datadir}/postgresql/*.bki |
953 | %{_datadir}/postgresql/*.sample | |
954 | %{_datadir}/postgresql/*.description | |
26925000 | 955 | %{_datadir}/postgresql/*.shdescription |
fd6c8fe0 | 956 | %{_datadir}/postgresql/*.sql |
16404f9a | 957 | %{_datadir}/postgresql/*.txt |
687787e7 AM |
958 | %{_datadir}/postgresql/timezone |
959 | %{_datadir}/postgresql/timezonesets | |
3786c16b | 960 | |
320d02f0 | 961 | %attr(700,postgres,postgres) /home/services/postgres |
af01ba47 | 962 | %attr(700,postgres,postgres) %dir /var/lib/pgsql |
63ca64a6 | 963 | %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql |
048840cb | 964 | |
7386fb4a | 965 | %{_mandir}/man1/initdb.1* |
084a7c24 | 966 | %{_mandir}/man1/ipcclean.1* |
084a7c24 | 967 | %{_mandir}/man1/pg_controldata.1* |
968 | %{_mandir}/man1/pg_ctl.1* | |
969 | %{_mandir}/man1/pg_resetxlog.1* | |
7386fb4a AF |
970 | %{_mandir}/man1/postgres.1* |
971 | %{_mandir}/man1/postmaster.1* | |
084a7c24 | 972 | |
048840cb | 973 | %files doc |
974 | %defattr(644,root,root,755) | |
99e19e69 | 975 | %doc doc/unpacked/* doc/src/FAQ howto |
438eb355 | 976 | %{_examplesdir}/%{name}-%{version} |
5cb5ee80 | 977 | |
fe8440d2 | 978 | %files libs -f libpq.lang |
7386fb4a | 979 | %defattr(644,root,root,755) |
a28e2aa1 | 980 | %attr(755,root,root) %{_libdir}/libpq.so.*.* |
12ff1bb8 | 981 | %dir %{_pgmoduledir} |
7386fb4a | 982 | |
6564a583 | 983 | %files ecpg |
016f481d | 984 | %defattr(644,root,root,755) |
00287bb7 | 985 | %attr(755,root,root) %{_bindir}/ecpg |
6564a583 | 986 | %attr(755,root,root) %{_libdir}/libecpg.so.*.* |
987 | %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.* | |
988 | %attr(755,root,root) %{_libdir}/libpgtypes.so.*.* | |
989 | %{_mandir}/man1/ecpg.1* | |
990 | ||
991 | %files ecpg-devel | |
992 | %defattr(644,root,root,755) | |
7386fb4a | 993 | %attr(755,root,root) %{_libdir}/libecpg.so |
16404f9a | 994 | %attr(755,root,root) %{_libdir}/libecpg_compat.so |
16404f9a | 995 | %attr(755,root,root) %{_libdir}/libpgtypes.so |
687787e7 | 996 | %{_includedir}/ecpg* |
6564a583 | 997 | |
a6765f5b | 998 | %files devel -f pg_config.lang |
6564a583 | 999 | %defattr(644,root,root,755) |
1000 | %attr(755,root,root) %{_bindir}/pg_config | |
1001 | %attr(755,root,root) %{_libdir}/libpq.so | |
1002 | %dir %{_includedir}/postgresql | |
6564a583 | 1003 | %{_includedir}/libpq-fe.h |
1004 | %{_includedir}/pg_config.h | |
6ec5e7a2 | 1005 | %{_includedir}/pg_config_manual.h |
6564a583 | 1006 | %{_includedir}/pg_config_os.h |
697ce059 | 1007 | %{_includedir}/postgres_ext.h |
00287bb7 | 1008 | %dir %{_includedir}/postgresql/internal |
1009 | %{_includedir}/postgresql/internal/c.h | |
1010 | %{_includedir}/postgresql/internal/libpq-int.h | |
6ec5e7a2 | 1011 | %{_includedir}/postgresql/internal/port.h |
00287bb7 | 1012 | %{_includedir}/postgresql/internal/postgres_fe.h |
1013 | %{_includedir}/postgresql/internal/pqexpbuffer.h | |
00287bb7 | 1014 | %{_includedir}/postgresql/internal/libpq |
084a7c24 | 1015 | %{_includedir}/libpq |
2b04c0fa | 1016 | %{_mandir}/man1/pg_config.1* |
7386fb4a | 1017 | |
cb920eb9 | 1018 | %files backend-devel |
ec709611 | 1019 | %defattr(644,root,root,755) |
00287bb7 | 1020 | %{_includedir}/postgresql/server |
12ff1bb8 JB |
1021 | %dir %{_pgmoduledir}/pgxs |
1022 | %attr(755,root,root) %{_pgmoduledir}/pgxs/config | |
1023 | %{_pgmoduledir}/pgxs/src | |
cb920eb9 | 1024 | |
7386fb4a AF |
1025 | %files static |
1026 | %defattr(644,root,root,755) | |
1027 | %{_libdir}/libecpg.a | |
16404f9a | 1028 | %{_libdir}/libecpg_compat.a |
7386fb4a | 1029 | %{_libdir}/libpq.a |
16404f9a | 1030 | %{_libdir}/libpgtypes.a |
dc307bb4 | 1031 | %{_libdir}/libpgport.a |
b35e841d | 1032 | |
fe8440d2 | 1033 | %files clients -f clients.lang |
103c268d | 1034 | %defattr(644,root,root,755) |
06095b90 | 1035 | %attr(755,root,root) %{_bindir}/clusterdb |
1036 | %attr(755,root,root) %{_bindir}/createdb | |
1037 | %attr(755,root,root) %{_bindir}/createlang | |
1038 | %attr(755,root,root) %{_bindir}/createuser | |
1039 | %attr(755,root,root) %{_bindir}/dropdb | |
1040 | %attr(755,root,root) %{_bindir}/droplang | |
1041 | %attr(755,root,root) %{_bindir}/dropuser | |
e957782b | 1042 | %attr(755,root,root) %{_bindir}/pg_dump |
9bf007d0 | 1043 | %attr(755,root,root) %{_bindir}/pg_dumpall |
c80000c0 | 1044 | %attr(755,root,root) %{_bindir}/pg_restore |
e957782b | 1045 | %attr(755,root,root) %{_bindir}/psql |
af6badf5 | 1046 | %attr(755,root,root) %{_bindir}/reindexdb |
5cb5ee80 | 1047 | %attr(755,root,root) %{_bindir}/vacuumdb |
b35e841d | 1048 | |
06095b90 | 1049 | %{_mandir}/man1/clusterdb.1* |
1050 | %{_mandir}/man1/createdb.1* | |
1051 | %{_mandir}/man1/createlang.1* | |
1052 | %{_mandir}/man1/createuser.1* | |
1053 | %{_mandir}/man1/dropdb.1* | |
1054 | %{_mandir}/man1/droplang.1* | |
1055 | %{_mandir}/man1/dropuser.1* | |
7386fb4a AF |
1056 | %{_mandir}/man1/pg_dump.1* |
1057 | %{_mandir}/man1/pg_dumpall.1* | |
c80000c0 | 1058 | %{_mandir}/man1/pg_restore.1* |
7386fb4a | 1059 | %{_mandir}/man1/psql.1* |
af6badf5 | 1060 | %{_mandir}/man1/reindexdb.1* |
c80000c0 | 1061 | %{_mandir}/man1/vacuumdb.1* |
7dac5ffa | 1062 | %{_mandir}/man7/*.7* |
7386fb4a | 1063 | |
4ddf546b | 1064 | %files module-plpgsql |
1065 | %defattr(644,root,root,755) | |
00287bb7 | 1066 | %attr(755,root,root) %{_pgmoduledir}/plpgsql.so |
1067 | ||
c6b2c886 | 1068 | %if %{with perl} |
00287bb7 | 1069 | %files module-plperl |
1070 | %defattr(644,root,root,755) | |
1071 | %attr(755,root,root) %{_pgmoduledir}/plperl.so | |
c6b2c886 | 1072 | %endif |
00287bb7 | 1073 | |
c6b2c886 | 1074 | %if %{with python} |
00287bb7 | 1075 | %files module-plpython |
1076 | %defattr(644,root,root,755) | |
1077 | %attr(755,root,root) %{_pgmoduledir}/plpython.so | |
c6b2c886 | 1078 | %endif |
4ddf546b | 1079 | |
16404f9a | 1080 | %if %{with tcl} |
4ddf546b | 1081 | %files module-pltcl |
1082 | %defattr(644,root,root,755) | |
084a7c24 | 1083 | %attr(755,root,root) %{_bindir}/pltcl_* |
00287bb7 | 1084 | %attr(755,root,root) %{_pgmoduledir}/pltcl.so |
7543e4a8 | 1085 | %{_pgsqldir}/unknown.pltcl |
16404f9a | 1086 | %endif |
ff04b431 | 1087 | |
d8edd803 JB |
1088 | %files module-dblink |
1089 | %defattr(644,root,root,755) | |
1090 | %doc contrib/dblink/README.dblink | |
1091 | %attr(755,root,root) %{_pgmoduledir}/dblink.so | |
687787e7 | 1092 | %{_pgsqldir}/*dblink.sql |
d8edd803 | 1093 | |
8646766c JB |
1094 | %files module-lo |
1095 | %defattr(644,root,root,755) | |
1096 | %doc contrib/lo/README.lo | |
1097 | %attr(755,root,root) %{_pgmoduledir}/lo.so | |
52b2b5d9 | 1098 | %{_pgsqldir}/*lo.sql |
8646766c | 1099 | |
5b79623d | 1100 | %files module-pgcrypto |
ff04b431 | 1101 | %defattr(644,root,root,755) |
68c3bd5b | 1102 | %doc contrib/pgcrypto/README* |
5b79623d | 1103 | %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so |
687787e7 | 1104 | %{_pgsqldir}/*pgcrypto.sql |
ae08c8ad | 1105 | |
bc5c807d PG |
1106 | %files module-tablefunc |
1107 | %defattr(644,root,root,755) | |
d8edd803 | 1108 | %doc contrib/tablefunc/README.tablefunc |
bc5c807d | 1109 | %attr(755,root,root) %{_pgmoduledir}/tablefunc.so |
687787e7 | 1110 | %{_pgsqldir}/*tablefunc.sql |
bc5c807d | 1111 | |
ae08c8ad | 1112 | %files module-tsearch2 |
1113 | %defattr(644,root,root,755) | |
dc307bb4 | 1114 | %doc contrib/tsearch2/README* |
ae08c8ad | 1115 | %attr(755,root,root) %{_pgmoduledir}/tsearch2.so |
687787e7 | 1116 | %{_pgsqldir}/*tsearch2.sql |
26925000 | 1117 | %{_pgsqldir}/russian.stop.utf8 |
1118 | %{_pgsqldir}/thesaurus | |
dc307bb4 | 1119 | %{_pgsqldir}/*.stop |
b70e6cb6 AM |
1120 | |
1121 | %files module-pg_trgm | |
1122 | %defattr(644,root,root,755) | |
1123 | %doc contrib/pg_trgm/README* | |
1124 | %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so | |
687787e7 | 1125 | %{_pgsqldir}/*pg_trgm.sql |
0b02f266 | 1126 | |
1127 | %files module-xml2 | |
1128 | %defattr(644,root,root,755) | |
1129 | %doc contrib/xml2/README* | |
1130 | %attr(755,root,root) %{_pgmoduledir}/pgxml.so | |
1131 | %{_pgsqldir}/*pgxml.sql |