0:5d7b0d5fafde | 1:c70c3d5bb969 |
---|---|
46 Distribution: OpenPKG Community | 46 Distribution: OpenPKG Community |
47 Class: BASE | 47 Class: BASE |
48 Group: Database | 48 Group: Database |
49 License: GPL | 49 License: GPL |
50 Version: %{V_postgresql} | 50 Version: %{V_postgresql} |
51 Release: 20101101 | 51 Release: 20101120 |
52 | 52 |
53 # package options | 53 # package options |
54 %option with_server yes | 54 %option with_server yes |
55 %option with_cxx no | 55 %option with_cxx no |
56 %option with_perl no | 56 %option with_perl no |
79 Source9: pg_migrate | 79 Source9: pg_migrate |
80 Source10: pg_passwd | 80 Source10: pg_passwd |
81 Patch0: postgresql.patch | 81 Patch0: postgresql.patch |
82 | 82 |
83 # build information | 83 # build information |
84 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, flex, bison, gzip | 84 Prefix: %{l_prefix} |
85 PreReq: OpenPKG, openpkg >= 20100101 | 85 BuildRoot: %{l_buildroot} |
86 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, flex, bison, gzip | |
87 PreReq: OpenPKG, openpkg >= 20060823 | |
86 BuildPreReq: readline, zlib, openssl, getopt | 88 BuildPreReq: readline, zlib, openssl, getopt |
87 PreReq: readline, zlib, openssl, getopt | 89 PreReq: readline, zlib, openssl, getopt |
88 %if "%{with_perl}" == "yes" | 90 %if "%{with_perl}" == "yes" |
89 BuildPreReq: perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20061013 | 91 BuildPreReq: perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20061013 |
90 PreReq: perl >= %{V_perl} | 92 PreReq: perl >= %{V_perl} |
625 %endif | 627 %endif |
626 | 628 |
627 %files -f files | 629 %files -f files |
628 | 630 |
629 %clean | 631 %clean |
632 rm -rf $RPM_BUILD_ROOT | |
630 | 633 |
631 %pre | 634 %pre |
632 %if "%{with_server}" == "yes" | 635 %if "%{with_server}" == "yes" |
633 # before upgrade, check migration dump, save status and stop service | 636 # before upgrade, check migration dump, save status and stop service |
634 [ $1 -eq 2 ] || exit 0 | 637 [ $1 -eq 2 ] || exit 0 |