/[packages]/cauldron/postgresql9.4/current/SPECS/postgresql9.4.spec
ViewVC logotype

Contents of /cauldron/postgresql9.4/current/SPECS/postgresql9.4.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 823077 - (show annotations) (download)
Sat Jun 13 19:26:31 2015 UTC (5 years, 5 months ago) by luigiwalser
File size: 24859 byte(s)
9.4.4 (fixes CVE-2015-316[5-7])
1 %define Werror_cflags %{nil}
2 %define _disable_ld_no_undefined 1
3
4 %define perl_version %(rpm -q --qf "%{VERSION}" perl)
5 %define perl_epoch %(rpm -q --qf "%{EPOCH}" perl)
6
7 %define pgdata /var/lib/pgsql
8 %define logrotatedir %{_sysconfdir}/logrotate.d
9
10 %define major 5
11 %define major_ecpg 6
12
13 %define bname postgresql
14 %define current_major_version 9.4
15 # upstream minor version, comment out for releases without minor version
16 %define current_minor_version 4
17 # upstream prerelease name, comment out for final releases
18 #define beta rc1
19
20 %define rel 1
21
22
23 %define libname %mklibname pq %{major}
24 %define libecpg %mklibname ecpg%{current_major_version} _%{major_ecpg}
25
26 %define withuuid 1
27
28 Summary: PostgreSQL client programs and libraries
29 Name: %{bname}%{current_major_version}
30 Version: %{current_major_version}%{?current_minor_version:.}%{?current_minor_version}
31 Release: %mkrel %{rel}
32 License: BSD
33 Group: Databases
34 URL: http://www.postgresql.org/
35 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}%{?beta}.tar.bz2
36 Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}%{?beta}.tar.bz2.md5
37 Source10: postgres.profile
38 Source11: postgresql.service
39 Source13: postgresql.distro.releasenote
40 Source14: postgresql_initdb.sh
41 Source15: postgresql.tmpfiles.d
42
43 Requires: perl
44 Provides: postgresql-clients = %{version}-%{release}
45 Conflicts: postgresql-clients < %{version}-%{release}
46 BuildRequires: bison
47 BuildRequires: flex
48 BuildRequires: openssl-devel
49 BuildRequires: pam-devel
50 BuildRequires: perl-devel
51 BuildRequires: python-devel
52 BuildRequires: readline-devel
53 BuildRequires: tcl-devel
54 BuildRequires: libxml2-devel
55 BuildRequires: libxslt-devel
56 BuildRequires: zlib-devel
57 %if %withuuid
58 BuildRequires: ossp_uuid-devel
59 %endif
60 # Need to build doc
61 BuildRequires: docbook-dtd42-sgml
62 BuildRequires: openjade
63 BuildRequires: docbook-utils
64 BuildRequires: docbook-style-xsl
65 BuildRequires: xsltproc
66 BuildRequires: checkstyle
67 Provides: %{bname}-virtual = %{current_major_version}
68 Conflicts: %{bname}-virtual < %{current_major_version}
69 Provides: %{bname} = %{version}-%{release}
70 Conflicts: %{bname} < %{version}-%{release}
71 Obsoletes: %{bname}9.1 < 9.1.15-2
72 Obsoletes: %{bname}9.2 < 9.2.10-2
73
74 %description
75 PostgreSQL is an advanced Object-Relational database management system (DBMS)
76 that supports almost all SQL constructs (including transactions, subselects and
77 user-defined types and functions). The postgresql package includes the client
78 programs and libraries that you'll need to access a PostgreSQL DBMS server.
79 These PostgreSQL client programs are programs that directly manipulate the
80 internal structure of PostgreSQL databases on a PostgreSQL server. These client
81 programs can be located on the same machine with the PostgreSQL server, or may
82 be on a remote machine which accesses a PostgreSQL server over a network
83 connection. This package contains the client libraries for C and C++, as well
84 as command-line utilities for managing PostgreSQL databases on a PostgreSQL
85 server.
86
87 If you want to manipulate a PostgreSQL database on a remote PostgreSQL server,
88 you need this package. You also need to install this package if you're
89 installing the postgresql-server package.
90
91 %package -n %{libname}
92 Summary: The shared libraries required for any PostgreSQL clients
93 Group: System/Libraries
94 Provides: postgresql-libs = %{version}-%{release}
95 Provides: libpq = %{version}-%{release}
96 Provides: %{libname}-virtual = %{current_major_version}
97 Conflicts: %{libname}-virtual < %{current_major_version}
98 # replace legacy library packages with different names
99 Obsoletes: %mklibname pq 9.4 5
100 Obsoletes: %mklibname pq 9.3 5
101 Obsoletes: %mklibname pq 9.2 5
102 Obsoletes: %mklibname pq 9.1 5
103 Obsoletes: %mklibname pq 9.0 5
104 Provides: %mklibname pq 9.4 5
105 Provides: %mklibname pq 9.3 5
106 Provides: %mklibname pq 9.2 5
107 Provides: %mklibname pq 9.1 5
108 Provides: %mklibname pq 9.0 5
109 Obsoletes: %mklibname pq 9.1 5.4 < 9.1.15-2
110 Obsoletes: %mklibname pq 9.2 5.5 < 9.2.10-2
111
112 %description -n %{libname}
113 C and C++ libraries to enable user programs to communicate with the PostgreSQL
114 database backend. The backend can be on another machine and accessed through
115 TCP/IP.
116
117 %package -n %{libecpg}
118 Summary: Shared library libecpg for PostgreSQL
119 Group: System/Libraries
120 Requires: postgresql%{current_major_version} = %{version}-%{release}
121 Provides: libecpg = %{version}-%{release}
122 Provides: %{libecpg}-virtual = %{current_major_version}
123 Conflicts: %{libecpg}-virtual < %{current_major_version}
124 Obsoletes: %mklibname ecpg 9.1 6 < 9.1.15-2
125 Obsoletes: %mklibname ecpg 9.2 6 < 9.2.10-2
126
127 %description -n %{libecpg}
128 Libecpg is used by programs built with ecpg (Embedded PostgreSQL for C) Use
129 postgresql-dev to develop such programs.
130
131 %package server
132 Summary: The programs needed to create and run a PostgreSQL server
133 Group: Databases
134 Provides: sqlserver
135 Requires(post): %{libname} >= %{version}-%{release}
136 Requires(preun): %{libname} >= %{version}-%{release}
137 # add/remove services
138 Requires(post): rpm-helper
139 Requires(preun): rpm-helper
140 # add/del user
141 Requires(pre): rpm-helper
142 Requires(postun): rpm-helper
143 Requires(pre): postgresql%{current_major_version} >= %{version}-%{release}
144 Requires(post): postgresql%{current_major_version} >= %{version}-%{release}
145 Provides: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
146 Provides: %{bname}-server-virtual = %{current_major_version}
147 Conflicts: %{bname}-server-virtual < %{current_major_version}
148 Provides: %{bname}-server = %{version}-%{release}
149 Requires: postgresql-plpgsql = %{version}-%{release}
150 Obsoletes: %{bname}9.1-server < 9.1.15-2
151 Obsoletes: %{bname}9.2-server < 9.2.10-2
152
153 %description server
154 The postgresql-server package includes the programs needed to create and run a
155 PostgreSQL server, which will in turn allow you to create and maintain
156 PostgreSQL databases. PostgreSQL is an advanced Object-Relational database
157 management system (DBMS) that supports almost all SQL constructs (including
158 transactions, subselects and user-defined types and functions). You should
159 install postgresql-server if you want to create and maintain your own
160 PostgreSQL databases and/or your own PostgreSQL server. You also need to
161 install the postgresql and postgresql-devel packages.
162
163 After installing this package, please read postgresql.%{_vendor}.releasenote.
164
165 %package docs
166 Summary: Extra documentation for PostgreSQL
167 Group: Databases
168 BuildArch: noarch
169 Provides: %{bname}-docs-virtual = %{current_major_version}
170 Conflicts: %{bname}-docs-virtual < %{current_major_version}
171 Obsoletes: %{bname}9.1-docs < 9.1.15-2
172 Obsoletes: %{bname}9.2-docs < 9.2.10-2
173
174 %description docs
175 The postgresql-docs package includes the SGML source for the documentation as
176 well as the documentation in other formats, and some extra documentation.
177 Install this package if you want to help with the PostgreSQL documentation
178 project, or if you want to generate printed documentation.
179
180 %package contrib
181 Summary: Contributed binaries distributed with PostgreSQL
182 Group: Databases
183 Requires: postgresql%{current_major_version}-server = %{version}-%{release}
184 Provides: %{bname}-contrib-virtual = %{current_major_version}
185 Conflicts: %{bname}-contrib-virtual < %{current_major_version}
186 Obsoletes: %{bname}9.1-contrib < 9.1.15-2
187 Obsoletes: %{bname}9.2-contrib < 9.2.10-2
188
189 %description contrib
190 The postgresql-contrib package includes the contrib tree distributed with the
191 PostgreSQL tarball. Selected contrib modules are prebuilt.
192
193 %package devel
194 Summary: PostgreSQL development header files and libraries
195 Group: Development/Databases
196 Requires: postgresql%{current_major_version} = %{version}-%{release}
197 Provides: %{bname}-devel-virtual = %{current_major_version}
198 Conflicts: %{bname}-devel-virtual < %{current_major_version}
199 Requires: %{libname} = %{version}-%{release}
200 Provides: postgresql-libs-devel = %{version}-%{release}
201 Provides: pq-devel = %{version}-%{release}
202 %if %_lib != lib
203 Provides: libpq-devel = %{version}-%{release}
204 %endif
205 Provides: %{_lib}pq-devel = %{version}
206 Conflicts: %{_lib}pq-devel < %{version}
207 Requires: %{libecpg} = %{version}-%{release}
208 Provides: libecpg-devel = %{version}-%{release}
209 Provides: %{_lib}ecpg-devel = %{version}-%{release}
210 Conflicts: %{_lib}ecpg-devel < %{version}-%{release}
211 Provides: %{bname}-devel = %{version}-%{release}
212 Conflicts: %{bname}-devel < %{version}-%{release}
213 Obsoletes: %{bname}9.1-devel < 9.1.15-2
214 Obsoletes: %{bname}9.2-devel < 9.2.10-2
215
216 %description devel
217 The postgresql-devel package contains the header files and libraries needed to
218 compile C or C++ applications which will directly interact with a PostgreSQL
219 database management server and the ecpg Embedded C Postgres preprocessor. You
220 need to install this package if you want to develop applications which will
221 interact with a PostgreSQL server. If you're installing postgresql-server, you
222 need to install this package.
223
224 %package pl
225 Summary: Procedurals languages for PostgreSQL
226 Group: Databases
227 Conflicts: libpgsql2
228 Requires: %{name}-plpython = %{version}-%{release}
229 Requires: %{name}-plperl = %{version}-%{release}
230 Requires: %{name}-pltcl = %{version}-%{release}
231 Requires: %{name}-plpgsql = %{version}-%{release}
232 Provides: %{bname}-pl-virtual = %{current_major_version}
233 Conflicts: %{bname}-pl-virtual < %{current_major_version}
234 Conflicts: %{bname}-pl < %{version}-%{release}
235 Provides: %{bname}-pl = %{version}-%{release}
236 Obsoletes: %{bname}9.1-pl < 9.1.15-2
237 Obsoletes: %{bname}9.2-pl < 9.2.10-2
238
239 %description pl
240 PostgreSQL is an advanced Object-Relational database management system. The
241 postgresql-pl will install the the PL/Perl, PL/Tcl, and PL/Python procedural
242 languages for the backend. PL/Pgsql is part of the core server package.
243
244 %package plpython
245 Summary: The PL/Python procedural language for PostgreSQL
246 Group: Databases
247 Requires: postgresql%{current_major_version}-server = %{version}
248 Conflicts: postgresql-pl < %version-%release
249 Requires: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
250 Provides: %{bname}-plpython-virtual = %{current_major_version}
251 Conflicts: %{bname}-plpython-virtual < %{current_major_version}
252 Conflicts: %{bname}-plpython < %{version}-%{release}
253 Provides: %{bname}-plpython = %{version}-%{release}
254 Obsoletes: %{bname}9.1-plpython < 9.1.15-2
255 Obsoletes: %{bname}9.2-plpython < 9.2.10-2
256
257 %description plpython
258 PostgreSQL is an advanced Object-Relational database management system. The
259 postgresql-plpython package contains the the PL/Python procedural languages for
260 the backend. PL/Python is part of the core server package.
261
262 %package plperl
263 Summary: The PL/Perl procedural language for PostgreSQL
264 Group: Databases
265 Requires: postgresql%{current_major_version}-server = %{version}
266 Requires: perl-base = %{perl_epoch}:%{perl_version}
267 Conflicts: postgresql-pl < %version-%release
268 Requires: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
269 Provides: %{bname}-plperl-virtual = %{current_major_version}
270 Conflicts: %{bname}-plperl-virtual < %{current_major_version}
271 Conflicts: %{bname}-plperl < %{version}-%{release}
272 Provides: %{bname}-plperl = %{version}-%{release}
273 Obsoletes: %{bname}9.1-plperl < 9.1.15-2
274 Obsoletes: %{bname}9.2-plperl < 9.2.10-2
275
276 %description plperl
277 PostgreSQL is an advanced Object-Relational database management system. The
278 postgresql-plperl package contains the the PL/Perl procedural languages for the
279 backend. PL/Perl is part of the core server package.
280
281 %package pltcl
282 Summary: The PL/Tcl procedural language for PostgreSQL
283 Group: Databases
284 Requires: postgresql%{current_major_version}-server = %{version}
285 Conflicts: postgresql-pl < %version-%release
286 Requires: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
287 Provides: %{bname}-pltcl-virtual = %{current_major_version}
288 Conflicts: %{bname}-pltcl-virtual < %{current_major_version}
289 Conflicts: %{bname}-pltcl < %{version}-%{release}
290 Provides: %{bname}-pltcl = %{version}-%{release}
291 Obsoletes: %{bname}9.1-pltcl < 9.1.15-2
292 Obsoletes: %{bname}9.2-pltcl < 9.2.10-2
293
294 %description pltcl
295 PostgreSQL is an advanced Object-Relational database management system. The
296 postgresql-pltcl package contains the the PL/Tcl procedural languages for the
297 backend. PL/Tcl is part of the core server package.
298
299 %package plpgsql
300 Summary: The PL/PgSQL procedural language for PostgreSQL
301 Group: Databases
302 Requires: postgresql%{current_major_version}-server = %{version}
303 Conflicts: postgresql-pl < %version-%release
304 Requires: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
305 Provides: %{bname}-plpgsql-virtual = %{current_major_version}
306 Conflicts: %{bname}-plpgsql-virtual < %{current_major_version}
307 Conflicts: %{bname}-plpgsql < %{version}-%{release}
308 Provides: %{bname}-plpgsql = %{version}-%{release}
309 Obsoletes: %{bname}9.1-plpgsql < 9.1.15-2
310 Obsoletes: %{bname}9.2-plpgsql < 9.2.10-2
311
312 %description plpgsql
313 PostgreSQL is an advanced Object-Relational database management system. The
314 postgresql-plpgsql package contains the the PL/PgSQL procedural languages for
315 the backend. PL/PgSQL is part of the core server package.
316
317 %prep
318 %setup -q -n %{bname}-%{version}%{?beta}
319 %apply_patches
320
321 %build
322
323 %serverbuild
324
325 # -fPIC is only needed for shared objects, should not be in optflags
326 export CFLAGS=$(echo "$CFLAGS"|sed -e 's/-fPIC//')
327 export CXXFLAGS=$(echo "$CXXFLAGS"|sed -e 's/-fPIC//')
328 export RPM_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS"|sed -e 's/-fPIC//')
329
330 %configure2_5x \
331 --disable-rpath \
332 --with-perl \
333 --with-python \
334 --with-tcl --with-tclconfig=%{_libdir} \
335 --with-openssl \
336 --with-pam \
337 --with-libxml \
338 --with-libxslt \
339 --libdir=%{_libdir} \
340 --mandir=%{_mandir} \
341 --prefix=%_prefix \
342 --sysconfdir=%{_sysconfdir}/pgsql \
343 --enable-nls \
344 %if %{withuuid}
345 --with-ossp-uuid
346 %endif
347
348 # $(rpathdir) come from Makefile
349 perl -pi -e 's|^all:|LINK.shared=\$(COMPILER) -shared -Wl,-rpath,\$(rpathdir),-soname,\$(soname)\nall:|' src/pl/plperl/GNUmakefile
350
351 %make world
352
353 pushd src/test
354 make all
355 popd
356
357 %check
358 make check
359
360 %install
361 make DESTDIR=%{buildroot} install-world install-docs
362
363 # install odbcinst.ini
364 mkdir -p %{buildroot}%{_sysconfdir}/pgsql
365
366 # copy over Makefile.global to the include dir....
367 #install -m755 src/Makefile.global %{buildroot}%{_includedir}/pgsql/
368
369 # PGDATA needs removal of group and world permissions due to pg_pwd hole.
370 install -d -m 700 %{buildroot}/var/lib/pgsql/data
371
372 # backups of data go here...
373 install -d -m 700 %{buildroot}/var/lib/pgsql/backups
374
375 # Create the multiple postmaster startup directory
376 install -d -m 700 %{buildroot}/etc/sysconfig/pgsql
377
378 # install systemd units
379 mkdir -p %{buildroot}%{_unitdir}
380 install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{bname}.service
381
382 # Create the directory for sockets.
383 install -d -m 755 %{buildroot}/var/run/postgresql
384
385 # ... and make a tmpfiles script to recreate it at reboot.
386 mkdir -p %{buildroot}%{_tmpfilesdir}
387 install -m 0644 %{SOURCE15} %{buildroot}%{_tmpfilesdir}/postgresql.conf
388
389 # install helper script for env initialisation
390 mkdir -p %{buildroot}%{_libexecdir}
391 install -m 755 %{SOURCE14} %{buildroot}%{_libexecdir}/
392
393 mkdir -p %{buildroot}/var/log/postgres
394
395 mkdir -p %{buildroot}%{logrotatedir}
396 cat > %{buildroot}%{logrotatedir}/%{bname} <<EOF
397 /var/log/postgres/postgresql {
398 notifempty
399 missingok
400 copytruncate
401 }
402 EOF
403
404 mv %{buildroot}%{_docdir}/%{bname}/html %{buildroot}%{_docdir}/%{name}-docs-%{version}
405
406 echo -n '' > main.lst
407 for i in \
408 pg_ctl initdb pg_config psql pg_dump pgscripts libpq libecpg \
409 ecpg libpq%{major} ecpglib%{major_ecpg}; do
410 %find_lang $i-%{current_major_version}
411 cat $i-%{current_major_version}.lang >> main.lst
412 %find_lang $i
413 cat $i.lang >> main.lst
414 done
415 echo -n '' > server.lst
416 for i in postgres pg_resetxlog pg_controldata plpgsql plpython plperl pltcl pg_basebackup; do
417 %find_lang $i
418 cat $i.lang >> server.lst
419 %find_lang $i-%{current_major_version}
420 cat $i-%{current_major_version}.lang >> server.lst
421 done
422
423 # pg_ctl.lang initdb.lang pg_config.lang psql.lang pg_dump.lang pgscripts.lang \
424 # postgres.lang pg_resetxlog.lang pg_controldata.lang \
425 # libpq.lang libecpg.lang \
426
427 # taken directly in build dir.
428 rm -fr %{buildroot}%{_datadir}/doc/postgresql/contrib/
429 rm -fr %{buildroot}%{_datadir}/doc/postgresql/extension/
430 rm -fr %{buildroot}%{_docdir}/%{name}-%{version}
431
432 mkdir -p %{buildroot}/%{_sys_macros_dir}
433 cat > %{buildroot}/%{_sys_macros_dir}/%{name}.macros <<EOF
434 %%postgresql_version %{version}
435 %%postgresql_major %{current_major_version}
436 %%postgresql_minor %{current_minor_version}
437 %%pgmodules_req Requires: %{?arch_tagged:%arch_tagged %{bname}-server-ABI}%{?!arch_tagged:%{bname}-server-ABI} = %{current_major_version}
438 EOF
439
440 cat %{SOURCE13} > postgresql.%{_vendor}.releasenote
441 cat > README.urpmi <<EOF
442 You just installed or updated %{bname} server.
443 You can find important information about %{distribution} %{bname} rpms and database
444 management in:
445
446 %{_defaultdocdir}/%{name}-server/postgresql.%{_vendor}.releasenote
447
448 Please read it.
449 EOF
450
451 # postgres' .profile and .bashrc
452 install -D -m 700 %{SOURCE10} %{buildroot}/var/lib/pgsql/.profile
453 (
454 cd %{buildroot}/var/lib/pgsql/
455 ln -s .profile .bashrc
456 )
457
458 cat > %{buildroot}%{_sysconfdir}/sysconfig/postgresql <<EOF
459 # Olivier Thauvin <nanardon@mandriva.org>
460
461 # The database location:
462 # You probably won't change this
463 # PGDATA=/var/lib/pgsql/data
464
465 # What is the based locales for postgresql
466 # Setting locales to C allow to use any encoding
467 # ISO or UTF, any other choice will restrict you
468 # either ISO or UTF.
469 LC_ALL=C
470
471 # These are additional to pass to pg_ctl when starting/restarting postgresql.
472 # PGOPTIONS=
473 EOF
474
475 %pre server
476 %_pre_useradd postgres /var/lib/pgsql /bin/bash
477
478 [ ! -f %{pgdata}/data/PG_VERSION ] && exit 0
479 mypgversion=`cat %{pgdata}/data/PG_VERSION`
480 [ $mypgversion = %{current_major_version} ] && exit 0
481
482 echo ""
483 echo "You currently have database tree for Postgresql $mypgversion"
484 echo "You must use postgresql${mypgversion}-server"
485 echo "To update you Postgresql server, dump your databases"
486 echo "delete /var/lib/pgsql/data/ content, upgrade the server, then"
487 echo "restore your databases from your backup"
488 echo ""
489
490 exit 1
491
492 %post server
493 %_post_service %{bname}
494
495 %_tmpfilescreate %{_tmpfilesdir}/%{bname}
496
497 %preun server
498 %_preun_service %{bname}
499
500 %postun server
501 %_postun_userdel postgres
502
503 %files -f main.lst
504 %doc doc/KNOWN_BUGS doc/MISSING_FEATURES
505 %doc COPYRIGHT README HISTORY doc/bug.template
506 %{_bindir}/clusterdb
507 %{_bindir}/createdb
508 %{_bindir}/createlang
509 %{_bindir}/createuser
510 %{_bindir}/dropdb
511 %{_bindir}/droplang
512 %{_bindir}/dropuser
513 %{_bindir}/pg_dump
514 %{_bindir}/pg_dumpall
515 %{_bindir}/pg_isready
516 %{_bindir}/pg_restore
517 %{_bindir}/psql
518 %{_bindir}/reindexdb
519 %{_bindir}/vacuumdb
520 %{_mandir}/man1/clusterdb.*
521 %{_mandir}/man1/createdb.*
522 %{_mandir}/man1/createlang.*
523 %{_mandir}/man1/createuser.*
524 %{_mandir}/man1/dropdb.*
525 %{_mandir}/man1/droplang.*
526 %{_mandir}/man1/dropuser.*
527 %{_mandir}/man1/pg_dump.*
528 %{_mandir}/man1/pg_dumpall.*
529 %{_mandir}/man1/pg_isready.*
530 %{_mandir}/man1/pg_restore.*
531 %{_mandir}/man1/psql.*
532 %{_mandir}/man1/vacuumdb.*
533 %{_mandir}/man1/reindexdb.*
534 %{_mandir}/man7/*
535 %{_sys_macros_dir}/%{name}.macros
536
537 %files -n %{libname}
538 %{_libdir}/libpq.so.%{major}*
539
540 %files -n %{libecpg}
541 %{_libdir}/libecpg.so.%{major_ecpg}*
542 %{_libdir}/libecpg_compat.so.*
543 %{_libdir}/libpgtypes.so.*
544
545 %files docs
546 %doc %{_docdir}/%{name}-docs-%{version}
547
548 %files contrib
549 # %doc contrib/*/README.* contrib/spi/*.example
550 %{_libdir}/postgresql/_int.so
551 %{_libdir}/postgresql/btree_gist.so
552 %{_libdir}/postgresql/chkpass.so
553 %{_libdir}/postgresql/cube.so
554 %{_libdir}/postgresql/dblink.so
555 %{_libdir}/postgresql/earthdistance.so
556 %{_libdir}/postgresql/fuzzystrmatch.so
557 %{_libdir}/postgresql/insert_username.so
558 %{_libdir}/postgresql/lo.so
559 %{_libdir}/postgresql/ltree.so
560 %{_libdir}/postgresql/moddatetime.so
561 %{_libdir}/postgresql/pgcrypto.so
562 %{_libdir}/postgresql/pgstattuple.so
563 %{_libdir}/postgresql/refint.so
564 %{_libdir}/postgresql/seg.so
565 %{_libdir}/postgresql/tablefunc.so
566 %{_libdir}/postgresql/timetravel.so
567 %{_libdir}/postgresql/pg_trgm.so
568 %{_libdir}/postgresql/autoinc.so
569 %{_libdir}/postgresql/pg_buffercache.so
570 %{_libdir}/postgresql/adminpack.so
571 %{_libdir}/postgresql/hstore.so
572 %{_libdir}/postgresql/isn.so
573 %{_libdir}/postgresql/pg_freespacemap.so
574 %{_libdir}/postgresql/pgrowlocks.so
575 %{_libdir}/postgresql/sslinfo.so
576 %{_libdir}/postgresql/pageinspect.so
577 %{_libdir}/postgresql/tcn.so
578 %{_libdir}/postgresql/postgres_fdw.so
579 %{_libdir}/postgresql/worker_spi.so
580
581 %{_bindir}/oid2name
582 %{_bindir}/pgbench
583 %{_bindir}/vacuumlo
584 %{_bindir}/pg_test_timing
585 %{_bindir}/pg_xlogdump
586 %{_mandir}/man1/oid2name.1*
587 %{_mandir}/man1/pgbench.1*
588 %{_mandir}/man1/pg_test_timing.1*
589 %{_mandir}/man1/pg_xlogdump.1*
590 %{_mandir}/man1/vacuumlo.1*
591
592 %files server -f server.lst
593 %config(noreplace) %{_sysconfdir}/sysconfig/postgresql
594 %doc README.urpmi postgresql.%{_vendor}.releasenote
595 %{_unitdir}/%{bname}.service
596 %{_bindir}/initdb
597 %{_bindir}/pg_archivecleanup
598 %{_bindir}/pg_basebackup
599 %{_bindir}/pg_controldata
600 %{_bindir}/pg_ctl
601 %{_bindir}/pg_receivexlog
602 %{_bindir}/pg_recvlogical
603 %{_bindir}/pg_resetxlog
604 %{_bindir}/pg_standby
605 %{_bindir}/pg_test_fsync
606 %{_bindir}/pg_upgrade
607 %{_bindir}/postgres
608 %{_bindir}/postmaster
609 %{_mandir}/man1/initdb.1*
610 %{_mandir}/man1/pg_archivecleanup.1*
611 %{_mandir}/man1/pg_basebackup.1*
612 %{_mandir}/man1/pg_controldata.*
613 %{_mandir}/man1/pg_ctl.1*
614 %{_mandir}/man1/pg_receivexlog.1*
615 %{_mandir}/man1/pg_recvlogical.1*
616 %{_mandir}/man1/pg_resetxlog.*
617 %{_mandir}/man1/pg_standby.1*
618 %{_mandir}/man1/pg_test_fsync.1*
619 %{_mandir}/man1/pg_upgrade.1*
620 %{_mandir}/man1/postgres.1*
621 %{_mandir}/man1/postmaster.1*
622 %dir %{_libdir}/postgresql
623 %dir %{_datadir}/postgresql
624 %{_tmpfilesdir}/postgresql.conf
625 %attr(755,postgres,postgres) %ghost %dir /var/run/postgresql
626 %config(noreplace) /var/lib/pgsql/.bashrc
627 %attr(-,postgres,postgres) /var/lib/pgsql/.profile
628 %attr(700,postgres,postgres) %dir %{pgdata}
629 %attr(-,postgres,postgres) %{pgdata}/data
630 %attr(700,postgres,postgres) %dir %{pgdata}/backups
631 %{_libdir}/postgresql/*_and_*.so
632 %{_libdir}/postgresql/auth_delay.so
633 %{_libdir}/postgresql/auto_explain.so
634 %{_libdir}/postgresql/btree_gin.so
635 %{_libdir}/postgresql/citext.so
636 %{_libdir}/postgresql/dict_int.so
637 %{_libdir}/postgresql/dict_snowball.so
638 %{_libdir}/postgresql/dict_xsyn.so
639 %{_libdir}/postgresql/dummy_seclabel.so
640 %{_libdir}/postgresql/file_fdw.so
641 %{_libdir}/postgresql/pg_prewarm.so
642 %{_libdir}/postgresql/pg_stat_statements.so
643 %{_libdir}/postgresql/pgxml.so
644 %{_libdir}/postgresql/test_decoding.so
645 %{_libdir}/postgresql/test_parser.so
646 %{_libdir}/postgresql/test_shm_mq.so
647 %{_libdir}/postgresql/tsearch2.so
648 %{_libexecdir}/postgresql_initdb.sh
649 %if %{withuuid}
650 %{_libdir}/postgresql/uuid-ossp.so
651 %endif
652 %{_libdir}/postgresql/euc2004_sjis2004.so
653 %{_libdir}/postgresql/libpqwalreceiver.so
654 %{_libdir}/postgresql/passwordcheck.so
655 %{_libdir}/postgresql/pg_upgrade_support.so
656 %{_libdir}/postgresql/unaccent.so
657 %{_datadir}/postgresql/postgres.bki
658 %{_datadir}/postgresql/postgres.description
659 %{_datadir}/postgresql/*.sample
660 %{_datadir}/postgresql/timezone
661 %{_datadir}/postgresql/system_views.sql
662 %{_datadir}/postgresql/conversion_create.sql
663 %{_datadir}/postgresql/information_schema.sql
664 %{_datadir}/postgresql/snowball_create.sql
665 %{_datadir}/postgresql/sql_features.txt
666 %{_datadir}/postgresql/postgres.shdescription
667 %dir %{_datadir}/postgresql/timezonesets
668 %{_datadir}/postgresql/timezonesets/Africa.txt
669 %{_datadir}/postgresql/timezonesets/America.txt
670 %{_datadir}/postgresql/timezonesets/Antarctica.txt
671 %{_datadir}/postgresql/timezonesets/Asia.txt
672 %{_datadir}/postgresql/timezonesets/Atlantic.txt
673 %{_datadir}/postgresql/timezonesets/Australia
674 %{_datadir}/postgresql/timezonesets/Australia.txt
675 %{_datadir}/postgresql/timezonesets/Default
676 %{_datadir}/postgresql/timezonesets/Etc.txt
677 %{_datadir}/postgresql/timezonesets/Europe.txt
678 %{_datadir}/postgresql/timezonesets/India
679 %{_datadir}/postgresql/timezonesets/Indian.txt
680 %{_datadir}/postgresql/timezonesets/Pacific.txt
681 %{_datadir}/postgresql/tsearch_data
682 %{_datadir}/postgresql/extension
683
684 %attr(700,postgres,postgres) %dir /var/log/postgres
685 %{logrotatedir}/%{bname}
686
687 %files devel
688 # %doc doc/TODO doc/TODO.detail
689 %{_includedir}/*
690 %{_bindir}/ecpg
691 %{_libdir}/lib*.so
692 %{_libdir}/lib*.a
693 %{_libdir}/pkgconfig/*.pc
694 %{_libdir}/postgresql/pgxs/
695 %{_mandir}/man1/ecpg.1*
696 %{_bindir}/pg_config
697 %{_mandir}/man1/pg_config.1*
698 %{_mandir}/man3/SPI_*.3*
699 %{_mandir}/man3/dblink*.3*
700
701 %files pl
702
703 %files plpython
704 %{_libdir}/postgresql/plpython2.so
705
706 %files plperl
707 %{_libdir}/postgresql/plperl.so
708
709 %files pltcl
710 %{_libdir}/postgresql/pltcl.so
711 %{_bindir}/pltcl_delmod
712 %{_bindir}/pltcl_listmod
713 %{_bindir}/pltcl_loadmod
714 %{_datadir}/postgresql/unknown.pltcl
715
716 %files plpgsql
717 %{_libdir}/postgresql/plpgsql.so

  ViewVC Help
Powered by ViewVC 1.1.28