%include /usr/lib/rpm/macros.perl %define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`) %define pythondir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/')"`) %define python_compile_opt python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])" %define python_compile python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])" Summary: PostgreSQL Data Base Management System Summary(de): PostgreSQL Datenbankverwaltungssystem Summary(fr): Sysčme de gestion de base de données PostgreSQL Summary(pl): PostgreSQL - system bazodanowy Summary(tr): Veri Tabaný Yönetim Sistemi Name: postgresql Version: 7.1.2 Release: 7 License: BSD Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}.init Source2: pgsql-Database-HOWTO-html.tar.gz Source3: %{name}.sysconfig Source4: pgaccess.desktop Source5: pgaccess.png Patch0: %{name}-DESTDIR.patch Patch1: %{name}-no_libnsl.patch Patch2: %{name}-configure.patch Patch3: %{name}-install.patch Icon: postgresql.xpm URL: http://www.postgresql.org/ Prereq: /sbin/chkconfig Prereq: rc-scripts BuildRequires: autoconf BuildRequires: tcl-devel >= 8.3.2 BuildRequires: tk-devel >= 8.3.2 BuildRequires: readline-devel >= 4.2 BuildRequires: ncurses-devel >= 5.0 BuildRequires: perl-devel >= 5.6 BuildRequires: python-devel BuildRequires: rpm-perlprov BuildRequires: zlib-devel BuildRequires: openssl-devel >= 0.9.6a BuildRequires: XFree86-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Requires: %{name}-libs = %{version} Requires: %{name} = %{version} Obsoletes: postgresql-server Obsoletes: postgresql-test %define pgsqldir %{_libdir}/pgsql/sql %define pgmoduledir %{_libdir}/pgsql/modules %description PostgreSQL Data Base Management System (formerly known as Postgres, then as Postgres95). PostgreSQL is an enhancement of the POSTGRES database management system, a next-generation DBMS research prototype. While PostgreSQL retains the powerful data model and rich data types of POSTGRES, it replaces the PostQuel query language with an extended subset of SQL. PostgreSQL is free and the complete source is available. PostgreSQL development is being performed by a team of Internet developers who all subscribe to the PostgreSQL development mailing list. The current coordinator is Marc G. Fournier (scrappy@postgreSQL.org). This team is now responsible for all current and future development of PostgreSQL. The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many others have contributed to the porting, testing, debugging and enhancement of the code. The original Postgres code, from which PostgreSQL is derived, was the effort of many graduate students, undergraduate students, and staff programmers working under the direction of Professor Michael Stonebraker at the University of California, Berkeley. The original name of the software at Berkeley was Postgres. When SQL functionality was added in 1995, its name was changed to Postgres95. The name was changed at the end of 1996 to PostgreSQL. PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD, and most flavours of Unix. %description -l de PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als Postgres95 bekannt). PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems, ein DBMS-Forschungsprototyp der nächsten Generation. Während es das leistungsfähige Datenmodell und die reichhaltigen Datentypen von POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist verfügbar. Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G. Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für alle aktuellen und künftigen Entwicklungen von PostgreSQL. Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen. Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden, Studenten und Programmierern unter der Leitung von Professor Michael Stonebraker an der University of California, Berkeley. Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich entschied man sich für PostgreSQL. PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD und den meisten Unix-Systemen. %description -l fr Systčme de gestion de bases de données PostgreSQL (D'abord nommé Postgres, puis Postgres95). PostgreSQL est une amélioration du systčme de gestion de bases de données POSTGRES, un prototype de recherche de la génération suivant DBMS. Tout en conservant le puissant modčle de donnée de et les types de donée riches de Postgres, il remplace le langage de requętes de Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est libre, et ses sources sont disponibles. Le développement de PostgreSQL est actuellement réalisé via internet parune équipe de développeurs inscrits sur la mailing-list de développement de PostgreSQL. Le coordinateur actuel est Marc G Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du développemen actuel et ŕ venir de PostgreSQL. Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen. Beaucoup d'autres ont contribué au portage, au test, au débogage et ŕ l'amélioration du code. Le code original de Postgres, duquel PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de moins haut niveau, et de programmeurs travaillant sous la direction du professeur Michael Stonebraker ŕ l'université de Berkeley Californie. Le nom original du logiciel était Postgres. Quand les fonctionnalitées SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été rebaptisé PostgreSQL en 1996. PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD, et la plupart des Unix. %description -l pl System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako Postgres, następnie jako Postgres95). PostgreSQL może być uruchominy pod następującymi systemami: Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix. %description -l tr PostgreSQL, POSTGRES'den türemiţ bir veri tabaný yönetim sistemidir (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini desteklerken SQL'in geniţletilmiţ bir altkümesi yerine PostQuel sorgulama dilini koyar. %package devel Summary: PostgreSQL development header files and libraries Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries Summary(fr): En-tętes et bibliothčques de développement PostgreSQL Summary(pl): PostgreSQL - pliki nagłówkowe i biblioteki Summary(tr): PostgreSQL baţlýk dosyalarý ve kitaplýklar Group: Development/Libraries Group(de): Entwicklung/Libraries Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Requires: %{name}-libs = %{version} %description devel This package contains header files and libraries required to compile applications that are talking directly to the PostgreSQL backend server. %description -l de devel Dieses Paket enthält die Header-Dateien und Libraries, die zum Kompilieren von Applikationen notwendig sind, die direkt mit dem PostgreSQL-Backend-Server kommunizieren. %description -l fr devel Ce package contient les fichiers d'en-tęte et les bibliothéques nécessaires pour compiler des applications ayant des échanges directs avec le serveur du backend PostgreSQL. %description -l pl devel Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji aplikacji łączących się bezpośrednio z serwerem PostgreSQL. %description -l tr devel Bu paket, PostgreSQL sunucusuyla konuţacak yazýlýmlar geliţtirmek için gereken baţlýk dosyalarýný ve kitaplýklarý içerir. %package clients Summary: Clients needed to access a PostgreSQL server Summary(pl): Klienci wymagani do dostępu do serwera PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-libs = %{version} %description clients This package includes only the clients and client libraries needed to access an PostgreSQL server. The server is included in the main package. If all you need is to connect to another PostgreSQL server, the this is the only package you need to install. In this package there are client libraries available for C and C++, as well as several command-line utilities you can use to manage your databases on a remote PostgreSQL server. %description -l pl clients Pakiet zawiera klientów oraz biblioteki niezbędne dla dostępu do serwera PostgreSQL. Serwer znajduje się w głównym pakiecie. %package perl Summary: Perl interface to PostgreSQL database Summary(pl): Interfejs dla Perla umożliwiający dostęp do baz PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: perl >= 5.004 Requires: %{name}-libs = %{version} %description perl This package includes only perl modules needed to access an PostgreSQL server. %description -l pl perl Pakiet ten zawiera tylko moduły Perla wymagane dla dostępu do serwera PostgreSQL. %package python Summary: The python-based client programs needed for accessing a PostgreSQL server Group: Development/Languages/Python Group(de): Entwicklung/Sprachen/Python Group(pl): Programowanie/Języki/Python Requires: python >= 2.0 Requires: %{name}-libs = %{version} Obsoletes: python-PyGreSQL %description python postgresql-python includes the python-based client programs and client libraries that you'll need to access a PostgreSQL database management system server. %package doc Summary: Documentation for PostgreSQL Summary(pl): Dodatkowa dokumantacja dla PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych %description doc This package includes documentation and HOWTO for programmer, admin etc., in HTML format. %description -l pl doc Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów, administratorów w formacie HTML. %package libs Summary: PostgreSQL libraries Summary(pl): Biblioteki dzielone programu PostgreSQL Group: Libraries Group(de): Libraries Group(es): Bibliotecas Group(fr): Librairies Group(pl): Biblioteki %description libs PostgreSQL libraries. %description libs -l pl Biblioteki dzielone programu PostgreSQL. %package static Summary: PostgreSQL static libraries Summary(pl): Biblioteki statyczne programu PostgreSQL Group: Development/Libraries Group(de): Entwicklung/Libraries Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Requires: %{name}-devel = %{version} %description static PostgreSQL static libraries. %description -l pl static Biblioteki statyczne programu PostgreSQL. %package c++ Summary: C++ interface to PostgreSQL Summary(pl): Interfejs C++ do PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-libs = %{version} %description c++ This package includes library for C++ interface to PostgreSQL. %description -l pl c++ Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL. %package c++-devel Summary: C++ interface to PostgreSQL - development part Summary(pl): Interfejs C++ do PostgreSQL - cześć programistyczna Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-c++ = %{version} Requires: %{name}-devel = %{version} %description c++-devel This package includes library and header files for C++ interface. %description -l pl c++-devel Pakiet ten zawiera biblioteki i pliki nagłówkowe dla interfejsu C++. %package c++-static Summary: C++ interface to PostgreSQL - static libraries Summary(pl): Interfejs C++ do PostgreSQL - biblioteki statyczne Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-c++-devel = %{version} %description c++-static This package includes static library for interface C++. %description -l pl c++-static Pakiet ten zawiera biblioteki statyczne dla interfejsu C++. %package odbc Summary: ODBC interface to PostgreSQL Summary(pl): Interfejs ODBC do PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-libs = %{version} %description odbc This package includes library for interface ODBC. %description -l pl odbc Pakiet ten zawiera biblioteki dla interfejsu ODBC. %package odbc-devel Summary: ODBC interface to PostgreSQL - development part Summary(pl): Interfejs ODBC do PostgreSQL - cześć programistyczna Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-odbc = %{version} Requires: %{name}-devel = %{version} %description odbc-devel This package includes library and header files for interface ODBC. %description -l pl odbc-devel Pakiet ten zawiera biblioteki i pliki nagłówkowe dla interfejsu ODBC. %package odbc-static Summary: ODBC interface to PostgreSQL - static libraries Summary(pl): Interfejs ODBC do PostgreSQL - biblioteki statyczne Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-odbc-devel = %{version} %description odbc-static This package includes static library for interface ODBC. %description -l pl odbc-static Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC. %package -n pgaccess Summary: A free graphical database management tool for PostgreSQL Summary(pl): Graficzne narzędzie do obsługi baz danych PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name}-tcl = %{version} %description -n pgaccess A free graphical database management tool for PostgreSQL. %description -l pl -n pgaccess Graficzne narzędzie do obsługi baz danych PostgreSQL. %package tcl Summary: tcl interface for PostgreSQL Summary(pl): Interfejs tcl dla PostgreSQL Group: Development/Languages/Tcl Group(de): Entwicklung/Sprachen/Tcl Group(pl): Programowanie/Języki/Tcl Requires: %{name}-libs = %{version} %description tcl tcl interface for PostgreSQL. %description tcl -l pl Interfejs tcl dla PostgreSQL. %package tcl-devel Summary: Development part of tcl interface for PostgreSQL Summary(pl): Część dla programistów interfejsu tcl dla PostgreSQL Group: Development/Languages/Tcl Group(de): Entwicklung/Sprachen/Tcl Group(pl): Programowanie/Języki/Tcl Requires: %{name}-tcl = %{version} Requires: %{name}-devel = %{version} %description tcl-devel Development part of tcl interface for PostgreSQL. %description tcl-devel -l pl Część interfejsu tcl dla PostgreSQL przeznaczona dla programistów. %package tcl-static Summary: Static libraries of tcl interface for PostgreSQL Summary(pl): Biblioteki statyczne interfejsu tcl dla PostgreSQL Group: Development/Languages/Tcl Group(de): Entwicklung/Sprachen/Tcl Group(pl): Programowanie/Języki/Tcl Requires: %{name}-tcl-devel = %{version} %description tcl-static Static libraries of tcl interface for PostgreSQL. %description tcl-devel -l pl Biblioteki statyczne interfejsu tcl dla PostgreSQL. %package module-datetime Summary: Some useful datetime functions for PostgreSQL Summary(pl): Kilka użytecznych funkcji operujących na dacie i czasie dla PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name} = %{version} %description module-datetime Some useful datetime function for PostgreSQL such as: - hhmm_in(opaque) - hhmm_out(opaque) - hhmm(time) - time_difference(time,time) - time_hours(time) - time_minutes(time) - time_seconds(time) - as_minutes(time) - as_seconds(time) - date_day(date) - date_month(date) - date_year(date) - currenttime() - currentdate() To enable them you need to execute datetime_function.sql script. You can found it in /usr/share/pgsql/sql directory. %description module-datetime -l pl Kilka użytecznych funkcji operujących na dacie i czasie dla PostgreSQL. - hhmm_in(opaque) - hhmm_out(opaque) - hhmm(time) - time_difference(time,time) - time_hours(time) - time_minutes(time) - time_seconds(time) - as_minutes(time) - as_seconds(time) - date_day(date) - date_month(date) - date_year(date) - currenttime() - currentdate() Po wykonaniu skryptu datetime_function.sql można używać tych funkcji z poziomu zapytań SQL. Skrypt ten znajduje się w katalogu /usr/share/pgsql/sql. %package module-plpgsql Summary: PL/pgSQL - PostgreSQL procedural language Summary(pl): PL/pgSQL język proceduralny bazy danych PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name} = %{version} %description module-plpgsql From PostgreSQL documentation. Postgres supports the definition of procedural languages. In the case of a function or trigger procedure defined in a procedural language, the database has no built-in knowledge about how to interpret the function's source text. Instead, the task is passed to a handler that knows the details of the language. The handler itself is a special programming language function compiled into a shared object and loaded on demand. To enable PL/pgSQL procedural language for your database you have to run createlang command. %description module-plpgsql -l pl Z dokumentacji PostgreSQL. Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy programista zdefiniuje procedurę wyzwalacza lub funkcję w języku proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie potrzeby. Za pomocą komendy createlang można dodać wsparcie dla języka proceduralnego PL/pgSQL dla swojej bazy danych. %package module-pltcl Summary: PL/TCL - PostgreSQL procedural language Summary(pl): PL/TCL - język proceduralny bazy danych PostgreSQL Group: Applications/Databases Group(pl): Aplikacje/Bazy danych Requires: %{name} = %{version} %description module-pltcl From PostgreSQL documentation. Postgres supports the definition of procedural languages. In the case of a function or trigger procedure defined in a procedural language, the database has no built-in knowledge about how to interpret the function's source text. Instead, the task is passed to a handler that knows the details of the language. The handler itself is a special programming language function compiled into a shared object and loaded on demand. To enable PL/TCL procedural language for your database you have to run createlang command. %description module-pltcl -l pl Z dokumentacji PostgreSQL. Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy programista zdefiniuje procedurę wyzwalacza lub funkcję w języku proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu funkcję. Funkcja lub procedura ta jest przekazywana do interpretera, który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie potrzeby. Za pomocą komendy createlang można dodać wsparcie dla języka proceduralnego PL/TCL dla swojej bazy danych. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 tar xzf doc/man*.tar.gz mkdir doc/unpacked tar zxf doc/postgres.tar.gz -C doc/unpacked # Erase all CVS dir rm -fR `find contrib/ -type d -name CVS` %build aclocal -I config autoconf %configure \ %{!?_without_pgsql_locale:--enable-locale} \ %{!?_without_pgsql_multibyte:--enable-multibyte} \ --enable-recode \ --enable-unicode-conversion \ --with-CXX \ --with-tcl \ --with-tk \ --with-perl \ --with-python \ --with-openssl \ --enable-odbc \ --with-odbcinst=%{_sysconfdir} \ --with-template=%{_target_os} \ --with-x \ --enable-syslog %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \ $RPM_BUILD_ROOT/var/{lib/pgsql,log} \ $RPM_BUILD_ROOT%{_libdir}/pgsql/{modules,sql} \ $RPM_BUILD_ROOT%{python_sitepkgsdir} \ $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \ $RPM_BUILD_ROOT%{_mandir} %{__make} -C src install \ DESTDIR=$RPM_BUILD_ROOT touch $RPM_BUILD_ROOT/var/log/pgsql # Move PL/pgSQL procedural language to %{pgmoduledir} ( cd $RPM_BUILD_ROOT%{_libdir} mv -f plpgsql.so $RPM_BUILD_ROOT%{pgmoduledir} ) # Move PL/TCL procedural language to %{pgmoduledir} ( cd $RPM_BUILD_ROOT%{_libdir} mv -f pltcl.so $RPM_BUILD_ROOT%{pgmoduledir} ) install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir} cp -a man? $RPM_BUILD_ROOT%{_mandir} install -d howto ( cd howto tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz ) %python_compile_opt $RPM_BUILD_ROOT%{pythondir} %python_compile $RPM_BUILD_ROOT%{pythondir} gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \ doc/internals.ps* src/interfaces/odbc/readme.txt \ src/interfaces/odbc/notice.txt %pre getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres id postgres >/dev/null 2>&1 || /usr/sbin/useradd -M -o -r -u 88 \ -d /var/lib/pgsql -s /bin/sh -g postgres \ -c "PostgreSQL Server" postgres %post /sbin/chkconfig --add postgresql if [ -r /var/lock/subsys/postmaster ]; then /etc/rc.d/init.d/postgresql restart >&2 else echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/postmaster ]; then /etc/rc.d/init.d/postgresql stop fi /sbin/chkconfig --del postgresql fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post tcl -p /sbin/ldconfig %postun tcl -p /sbin/ldconfig %post clients -p /sbin/ldconfig %postun clients -p /sbin/ldconfig %post c++ -p /sbin/ldconfig %postun c++ -p /sbin/ldconfig %post odbc -p /sbin/ldconfig %postun odbc -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT rm -f /tmp/tmp_perl_info %files %defattr(644,root,root,755) %attr(754,root,root) /etc/rc.d/init.d/* %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/* %attr(755,root,root) %{_bindir}/createdb %attr(755,root,root) %{_bindir}/createuser %attr(755,root,root) %{_bindir}/dropdb %attr(755,root,root) %{_bindir}/dropuser %attr(755,root,root) %{_bindir}/initdb %attr(755,root,root) %{_bindir}/initlocation %attr(755,root,root) %{_bindir}/pg_ctl %attr(755,root,root) %{_bindir}/pg_config %attr(755,root,root) %{_bindir}/pg_encoding %attr(755,root,root) %{_bindir}/pg_passwd %attr(755,root,root) %{_bindir}/postgres %attr(755,root,root) %{_bindir}/postmaster %attr(755,root,root) %{_bindir}/ipcclean %attr(755,root,root) %{_bindir}/createlang %attr(755,root,root) %{_bindir}/droplang %dir %{_libdir}/pgsql %dir %{_libdir}/pgsql/modules %dir %{_libdir}/pgsql/sql %{_datadir}/postgresql/*.bki %{_datadir}/postgresql/*.sample %{_datadir}/postgresql/*.description %attr(700,postgres,postgres) %dir /var/lib/pgsql %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql %{_mandir}/man1/createdb.1* %{_mandir}/man1/createlang.1* %{_mandir}/man1/createuser.1* %{_mandir}/man1/dropdb.1* %{_mandir}/man1/droplang.1* %{_mandir}/man1/dropuser.1* %{_mandir}/man1/initdb.1* %{_mandir}/man1/initlocation.1* %{_mandir}/man1/pg_passwd.1* %{_mandir}/man1/pg_ctl.1* %{_mandir}/man1/pg_config.1* %{_mandir}/man1/postgres.1* %{_mandir}/man1/postmaster.1* %{_mandir}/man1/ipcclean.1* %doc contrib %doc doc/FAQ* doc/README* %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz %files doc %defattr(644,root,root,755) %doc doc/unpacked/* %doc howto %files libs %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpq.so.*.* %attr(755,root,root) %{_libdir}/libpgeasy.so.*.* %attr(755,root,root) %{_libdir}/libecpg.so.*.* %attr(755,root,root) %{_bindir}/pg_id %files devel %defattr(644,root,root,755) %doc doc/internals.ps* %attr(755,root,root) %{_libdir}/libecpg.so %attr(755,root,root) %{_libdir}/libpgeasy.so %attr(755,root,root) %{_libdir}/libpq.so %dir %{_includedir}/postgresql %{_includedir}/postgresql/c.h %{_includedir}/postgresql/config.h %{_includedir}/postgresql/ecpgerrno.h %{_includedir}/postgresql/ecpglib.h %{_includedir}/postgresql/ecpgtype.h %{_includedir}/postgresql/libpgeasy.h %{_includedir}/postgresql/libpq-fe.h %{_includedir}/postgresql/libpq-int.h %{_includedir}/postgresql/os.h %{_includedir}/postgresql/postgres_ext.h %{_includedir}/postgresql/postgres_fe.h %{_includedir}/postgresql/pqexpbuffer.h %{_includedir}/postgresql/sql3types.h %{_includedir}/postgresql/sqlca.h %{_includedir}/postgresql/lib %{_includedir}/postgresql/libpq %attr(755,root,root) %{_bindir}/ecpg %{_mandir}/man1/ecpg.1* %files static %defattr(644,root,root,755) %{_libdir}/libecpg.a %{_libdir}/libpgeasy.a %{_libdir}/libpq.a %files clients %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/pg_dump %attr(755,root,root) %{_bindir}/pg_dumpall %attr(755,root,root) %{_bindir}/pg_restore %attr(755,root,root) %{_bindir}/psql %attr(755,root,root) %{_bindir}/vacuumdb %{_mandir}/man1/pg_dump.1* %{_mandir}/man1/pg_dumpall.1* %{_mandir}/man1/pg_restore.1* %{_mandir}/man1/psql.1* %{_mandir}/man1/vacuumdb.1* %{_mandir}/manl/*.l* %files c++ %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpq++.so.*.* %files c++-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpq++.so %{_includedir}/postgresql/libpq++.h %{_includedir}/postgresql/libpq++ %files c++-static %defattr(644,root,root,755) %{_libdir}/libpq++.a %files perl %defattr(644,root,root,755) %dir %{perl_sitearch}/auto/Pg %{perl_sitearch}/auto/Pg/Pg.bs %{perl_sitearch}/auto/plperl/plperl.bs %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so %attr(755,root,root) %{perl_sitearch}/auto/plperl/plperl.so %{perl_sitearch}/auto/Pg/autosplit.ix %{perl_sitearch}/Pg.pm %{_mandir}/man3/* %files python %defattr(644,root,root,755) %{pythondir}/*.pyc %{pythondir}/*.pyo %attr(755,root,root) %{python_sitepkgsdir}/*.so %files -n pgaccess %defattr(644,root,root,755) %doc src/bin/pgaccess/doc/html/* %attr(755,root,root) %{_bindir}/pgaccess %dir %{_datadir}/postgresql/pgaccess %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl %{_datadir}/postgresql/pgaccess/images %{_datadir}/postgresql/pgaccess/lib %{_applnkdir}/System/pgaccess.desktop %{_pixmapsdir}/pgaccess.png %{_mandir}/man1/pgaccess.1* %files tcl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpgtcl.so.*.* %attr(755,root,root) %{_bindir}/pgtclsh %attr(755,root,root) %{_bindir}/pgtksh %{_mandir}/man1/pgtclsh.1* %{_mandir}/man1/pgtksh.1* %files tcl-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpgtcl.so %{_includedir}/postgresql/libpgtcl.h %files tcl-static %defattr(644,root,root,755) %{_libdir}/libpgtcl.a %files odbc %defattr(644,root,root,755) %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc* %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.* %{_datadir}/postgresql/odbc.sql %files odbc-devel %defattr(644,root,root,755) %{_includedir}/postgresql/iodbc %attr(755,root,root) %{_libdir}/libpsqlodbc.so %files odbc-static %defattr(644,root,root,755) %{_libdir}/libpsqlodbc.a #%files module-datetime #%defattr(644,root,root,755) #%attr(755,root,root) %{pgmoduledir}/datetime_functions.so #%attr(644,root,root) %{pgsqldir}/datetime_functions.sql %files module-plpgsql %defattr(644,root,root,755) %attr(755,root,root) %{pgmoduledir}/plpgsql.so %files module-pltcl %defattr(644,root,root,755) %attr(755,root,root) %{pgmoduledir}/pltcl.so