Package pgbouncer: 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 | %define pgb_runtimedir /var/run/pgbouncer Name: pgbouncer Version: 1.9.0 Release: alt1 Summary: Lightweight connection pooler for PostgreSQL License: BSD Group: Databases Url: https://github.com/pgbouncer/pgbouncer Source: %name-%version.tar Source1: pgbouncer.init Source2: pgbouncer.ini Source3: users.txt Source4: pgbouncer.conf BuildRequires: libevent-devel libssl-devel # Need /usr/bin/rst2man for building BuildRequires: python-module-docutils # That was a pkg with an ugly temporary name: Obsoletes: pgbouncer17 %prep %setup -q %build touch lib/mk/install-sh ./autogen.sh %configure %make %install %make DESTDIR=%buildroot install %__install -d -m 1770 %buildroot/var/log/pgbouncer %__install -d -m 1770 %buildroot%pgb_runtimedir %__install -p -m755 -D %SOURCE1 %buildroot%_initdir/pgbouncer %__install -p -m755 -D %SOURCE2 %buildroot%_sysconfdir/pgbouncer.ini %__install -d -m750 %buildroot%_sysconfdir/pgbouncer %__install -p -m750 -D %SOURCE3 %buildroot%_sysconfdir/pgbouncer/users.txt %__install -p -m750 -D %SOURCE4 %buildroot%_sysconfdir/tmpfiles.d/pgbouncer.conf %files %_bindir/pgbouncer %_man1dir/* %_man5dir/* %config(noreplace) %_sysconfdir/pgbouncer.ini %attr(750,root,postgres) %dir %_sysconfdir/pgbouncer %attr(750,root,postgres) %config(noreplace) %_sysconfdir/pgbouncer/users.txt %_initdir/pgbouncer %attr(1770,root,postgres) %dir /var/log/pgbouncer %attr(1770,root,postgres) %dir %pgb_runtimedir %doc doc/* %_defaultdocdir/* /etc/tmpfiles.d/pgbouncer.conf %description Several levels of brutality when rotating connections: Session pooling - Most polite method. When client connects, a server connection will be assigned to it for the whole duration it stays connected. When client disconnects, the server connection will be put back into pool. Transaction pooling - Server connection is assigned to client only during a transaction. When PgBouncer notices that transaction is over, the server will be put back into pool. This is a hack as it breaks application expectations of backend connection. You can use it only when application cooperates with such usage by not using features that can break. See the table below for breaking features. Statement pooling - Most aggressive method. This is transaction pooling with a twist - multi-statement transactions are disallowed. This is meant to enforce "autocommit" mode on client, mostly targeted for PL/Proxy. %changelog * Thu Jan 31 2019 Grigory Ustinov <grenka@altlinux.org> 1.9.0-alt1 - Build new version. * Wed May 10 2017 Ivan Zakharyaschev <imz@altlinux.org> 1.7.2-alt8 - %%config(noreplace) modifiers used where needed * Fri Apr 21 2017 Ivan Zakharyaschev <imz@altlinux.org> 1.7.2-alt7 - Our own dir (/etc/pgbouncer/) is used to hold the additional conf (like in other distros). Less mess in /etc/ * Wed Apr 19 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt6 - NMU merged pgbouncer17 updates * Mon Apr 17 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt5 - fix perms for pid file and its location * Mon Apr 17 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt4 - fix typo * Mon Apr 17 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt3 - fix tmpfiles place * Fri Apr 14 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt2 - conflicts with open's pgbouncer * Thu Apr 13 2017 Denis Medvedev <nbr@altlinux.org> 1.7.2-alt1 - bumped to 1.7.2 * Thu Jul 28 2011 Alexander V Openkin <open@altlinux.ru> 1.4.2-alt1 - 1.4.2 * Fri Apr 30 2010 Alexander V Openkin <open@altlinux.ru> 1.3.2-alt0.M50p.1 - 1.3.2 * Thu Oct 15 2009 Alexander V Openkin <open@altlinux.ru> 1.3.1-alt1 - 1.3.1 release * Wed Apr 15 2009 Alexander V Openkin <open@altlinux.ru> 1.3-alt1 - 1.3 release * Tue Apr 14 2009 Alexander V Openkin <open@altlinux.ru> 1.2.3-alt2 - init script fixed * Tue Sep 23 2008 Alexander V Openkin <open@altlinux.ru> 1.2.3-alt1 - 1.2.3 release. * Sat Feb 16 2008 Alexander V Openkin <open@altlinux.ru> 1.1.2-alt1 - 1.1.2 release. |