Пакет pgpool-II: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | %define pg_ver 11 %def_with devel %def_with lib %define pgpool_configdir %_sysconfdir/pgpool.d %define pgpool_piddir %_var/run/pgpool %define pgpool_logdir %_logdir/pgpool %define PGSQL pgsql Name: pgpool-II Version: 4.0.2 Release: alt1 Summary: Pgpool is a connection pooling/replication server for PostgreSQL License: BSD Group: Databases Url: http://www.pgpool.net Source: %name-%version.tar Source1: pgpool.service Source2: pgpool.tmpfiles Source3: pgpool.init Patch: 0001-pgpool-alt-config.patch BuildRequires: flex BuildRequires: postgresql-devel BuildRequires: pam-devel BuildRequires: libmemcached-devel BuildRequires: libssl-devel Requires: libpcp = %EVR Requires: postgresql%pg_ver-%name = %EVR %description pgpool-II is a inherited project of pgpool (to classify from pgpool-II, it is sometimes called as pgpool-I). For those of you not familiar with pgpool-I, it is a multi-functional middle ware for PostgreSQL that features connection pooling, replication and load balancing functions. pgpool-I allows a user to connect at most two PostgreSQL servers for higher availability or for higher search performance compared to a single PostgreSQL server. %package -n libpcp Summary: lib files for %name Group: System/Libraries Provides: %name-lib = %EVR Obsoletes: %name-lib < %EVR %description -n libpcp lib files for %name. %package -n libpcp-devel Summary: The development files for pgpool-II Group: Development/C Provides: %name-devel = %EVR Obsoletes: %name-devel < %EVR Requires: libpcp = %EVR %description -n libpcp-devel Development headers and libraries for pgpool-II. %package -n postgresql%pg_ver-%name Summary: Postgresql extensions for pgpool-II Group: Databases Requires: postgresql%pg_ver-server %description -n postgresql%pg_ver-%name Postgresql extensions libraries and sql files for pgpool-II. %prep %setup -q %patch -p2 %build %autoreconf %configure \ --disable-static \ --with-pam \ --with-openssl \ --disable-rpath \ --with-memcached=%_includedir/libmemcached %make_build %make_build -C src/sql/pgpool-recovery %make_build -C src/sql/pgpool-regclass %install %make DESTDIR=%buildroot install %make DESTDIR=%buildroot install -C src/sql/pgpool-recovery %make DESTDIR=%buildroot install -C src/sql/pgpool-regclass mkdir -p %buildroot{%pgpool_piddir,%pgpool_logdir,%_unitdir,%_initdir,%_tmpfilesdir,%_man1dir,%_man8dir} install -p -m644 %SOURCE1 %buildroot%_unitdir/pgpool.service install -p -m644 %SOURCE2 %buildroot%_tmpfilesdir/pgpool.conf install -p -m755 %SOURCE3 %buildroot%_initdir/pgpool mv %buildroot%_sysconfdir/pcp.conf.sample %buildroot%_sysconfdir/pcp.conf mv %buildroot%_sysconfdir/pgpool.conf.sample %buildroot%_sysconfdir/pgpool.conf mv %buildroot%_sysconfdir/pool_hba.conf.sample %buildroot%_sysconfdir/pool_hba.conf rm -f %buildroot%_sysconfdir/pgpool.conf.sample-* # Copy man pages cp doc/src/sgml/man1/* %buildroot%_man1dir/ cp doc/src/sgml/man8/* %buildroot%_man8dir/ mkdir %buildroot%_sysconfdir/cron.d /bin/cat << __EOF__ > %buildroot%_sysconfdir/cron.d/pgpool 20 10 * * * root find /var/log/pgpool/ -type f -mtime +90 -delete __EOF__ %post %post_service pgpool %preun %preun_service pgpool %files %doc NEWS COPYING src/sample %_bindir/* %_datadir/%name %_initdir/pgpool %_unitdir/pgpool.service %_tmpfilesdir/pgpool.conf %config(noreplace) %_sysconfdir/pgpool.conf %config(noreplace) %_sysconfdir/pcp.conf %config(noreplace) %_sysconfdir/pool_hba.conf %config %_sysconfdir/cron.d/pgpool %_man1dir/* %_man8dir/* %attr(775,root,postgres) %dir %pgpool_piddir %attr(775,root,postgres) %dir %pgpool_logdir %files -n libpcp-devel %_includedir/* %_libdir/libpcp.so %files -n libpcp %_libdir/libpcp.so.* %files -n postgresql%pg_ver-%name %_libdir/pgsql/pgpool-recovery.so %_libdir/pgsql/pgpool-regclass.so %_datadir/pgsql/extension/* %changelog * Tue Jan 22 2019 Alexey Shabalin <shaba@altlinux.org> 4.0.2-alt1 - 4.0.2 - build for postgresql11 * Wed Aug 29 2018 Grigory Ustinov <grenka@altlinux.org> 3.7.4-alt1.1 - NMU: Rebuild with new openssl 1.1.0. * Tue Jul 24 2018 Alexey Shabalin <shaba@altlinux.org> 3.7.4-alt1 - 3.7.4 - rename package pgpool-II-lib to libpcp - rename package pgpool-II-devel to libpcp-devel - add package postgresql10-pgpool-II with postgresql extension * Mon Feb 06 2012 Alexander V Openkin <open@altlinux.ru> 3.1.2-alt2 - 3.1.2 init script fixed * Thu Feb 02 2012 Alexander V Openkin <open@altlinux.ru> 3.1.2-alt1 - 3.1.2 release * Thu Jul 28 2011 Alexander V Openkin <open@altlinux.ru> 3.0.4-alt1 - 3.0.4 release * Wed Mar 09 2011 Alexander V Openkin <open@altlinux.ru> 3.0.3-alt1 - 3.0.3 release * Fri Sep 24 2010 Konstantin Pavlov <thresh@altlinux.org> 2.3.3-alt0.M40.7 - Apply patch fixing EINTR problem with pgpool health check. - Log to /var/log/pgpool instead of slow syslog. * Fri Jul 30 2010 Alexander V Openkin <open@altlinux.ru> 2.2.5-alt0.M40.2 - 2.3.3 release * Wed Oct 14 2009 Alexander V Openkin <open@altlinux.ru> 2.2.5-alt1 - 2.2.5 release * Fri May 22 2009 Alexander V Openkin <open@altlinux.ru> 2.2.2-alt2 - New init script read the /etc/pgpool.d directory and running many pgpool instance * Tue May 05 2009 Alexander V Openkin <open@altlinux.ru> 2.2.2-alt1 - 2.2.2 release, new init script. * Wed Oct 22 2008 Alexander V Openkin <open@altlinux.ru> 2.1-alt1 - 2.1 release * Wed Sep 05 2007 Alexander V Openkin <open@altlinux.ru> 1.2-alt1 - changed init script (logging to syslog) * Tue Aug 28 2007 Alexander V Openkin <open@altlinux.ru> 1.2-alt0.4 - 1.2 release * Fri Jul 20 2007 Alexander V Openkin <open@altlinux.ru> 1.1.1-alt0.2 - pool_process_query.c: Fix kind mismatch error when load_balance_mode is true |