Пакет supervisor: 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 _unpackaged_files_terminate_build 1 Name: supervisor Version: 4.2.5 Release: alt1 Summary: A System for Allowing the Control of Process State on UNIX License: ZPLv2.1 and BSD and MIT Group: System/Base Url: http://supervisord.org/ BuildArch: noarch Source: http://pypi.io/packages/source/s/%name/%name-%version%{?prever}.tar Source1: supervisord.service Source2: supervisord.conf Source3: supervisor.logrotate Source4: supervisor.tmpfiles Source5: supervisord.init BuildRequires(pre): rpm-build-python3 rpm-build-intro Requires: python3-module-%name %description The supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems. %package -n python3-module-%name Summary: Python3 module for %name Group: Development/Python3 %description -n python3-module-%name The supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems. %prep %setup sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \ $(find ./ -name '*.py') %build %python3_build %install %python3_install mkdir -p %buildroot/%_sysconfdir mkdir -p %buildroot/%_sysconfdir/supervisord.d mkdir -p %buildroot/%_logrotatedir/ mkdir -p %buildroot/%_unitdir mkdir -p %buildroot/%_logdir/%name mkdir -p %buildroot/%_runtimedir/supervisor chmod 770 %buildroot/%_logdir/%name chmod 770 %buildroot/%_runtimedir/supervisor install -p -m 644 %SOURCE1 %buildroot/%_unitdir/supervisord.service install -p -m 644 %SOURCE2 %buildroot/%_sysconfdir/supervisord.conf install -p -m 644 %SOURCE3 %buildroot/%_logrotatedir/supervisor install -D -p -m 0644 %SOURCE4 %buildroot%_tmpfilesdir/%name.conf %__subst s'/^#!.*//' $( find %buildroot/%python3_sitelibdir/supervisor/ -type f) mkdir -p %buildroot%_sysconfigdir/ touch %buildroot%_sysconfigdir/supervisord mkdir -p %buildroot/%_initdir install -p -m 755 %SOURCE5 %buildroot/%_initdir/supervisord rm -rf %buildroot/%python3_sitelibdir/supervisor/meld3/ rm -f %buildroot%prefix/doc/*.txt %files %doc *.txt *.rst %dir %_logdir/%name %_bindir/supervisor* %_bindir/echo_supervisord_conf %_bindir/pidproxy %_unitdir/supervisord.service %_initdir/supervisord %_runtimedir/supervisor %_tmpfilesdir/%name.conf %config(noreplace) %_sysconfdir/supervisord.conf %dir %_sysconfdir/supervisord.d/ %config(noreplace) %_logrotatedir/supervisor %config(noreplace) %_sysconfigdir/supervisord %files -n python3-module-%name %python3_sitelibdir/* %changelog * Sun Apr 23 2023 Vitaly Lipatov <lav@altlinux.ru> 4.2.5-alt1 - new version 4.2.5 (with rpmrb script) * Tue May 24 2022 Grigory Ustinov <grenka@altlinux.org> 4.1.0-alt2 - The meld3 package is no longer a dependency. * Tue Dec 10 2019 Andrey Bychkov <mrdrew@altlinux.org> 4.1.0-alt1 - version updated to 4.1.0 * Thu May 30 2019 Vitaly Lipatov <lav@altlinux.ru> 3.3.5-alt1 - new version 3.3.5 (with rpmrb script) * Sat Jun 09 2018 Vitaly Lipatov <lav@altlinux.ru> 3.3.4-alt1 - new version 3.3.4 (with rpmrb script) * Mon Dec 11 2017 Vitaly Lipatov <lav@altlinux.ru> 3.3.3-alt1 - new version 3.3.3 (with rpmrb script) * Tue Mar 21 2017 Lenar Shakirov <snejok@altlinux.ru> 3.3.1-alt2 - systemd ready now - Move socket to /var/run/supervisor. Fedora bug #1247877 - use %%_logdir instead %%_localstatedir/log * Tue Dec 06 2016 Vitaly Lipatov <lav@altlinux.ru> 3.3.1-alt1 - new version 3.3.1 (with rpmrb script) * Thu Jul 28 2016 Vitaly Lipatov <lav@altlinux.ru> 3.2.3-alt1 - new version 3.2.3 (with rpmrb script) * Mon Aug 17 2015 Vitaly Lipatov <lav@altlinux.ru> 3.1.3-alt1 - new version 3.1.3 (with rpmrb script) * Mon Aug 17 2015 Vitaly Lipatov <lav@altlinux.ru> 3.0-alt1 - initial build for ALT Linux Sisyphus |