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