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