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