Пакет openuds-server: 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 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | %add_python3_lib_path %_datadir/openuds %allow_python3_import_path %_datadir/openuds %add_findreq_skiplist %_datadir/openuds/uds/transports/*/scripts/windows/* %_datadir/openuds/uds/transports/*/scripts/macosx/* %add_python3_req_skip uds.forward %filter_from_provides /^python3(manage)/d %filter_from_provides /^python3(server)/d %filter_from_provides /^python3(server\.settings)/d %filter_from_provides /^python3(server\.urls)/d %filter_from_provides /^python3(server\.wsgi)/d Name: openuds-server Version: 3.0.0 Release: alt12.p9 Summary: Universal Desktop Services (UDS) Broker License: BSD-3-Clause and MIT and Apache-2.0 Group: Networking/Remote access URL: https://github.com/dkmstr/openuds AutoReqProv: yes, nopython Source0: %name-%version.tar Source10: openuds-httpd.conf Source11: openuds-httpd-ssl.conf Source12: openuds.logrotate Source13: openuds-nginx-sites.conf Source15: openuds-taskmanager.service Source16: openuds-web.service Source17: openuds-web.socket #Patch: %name-%version.patch Requires: python3-module-django >= 2.2 Requires: python3-module-django-dbbackend-mysql >= 2.2 Requires: python3-module-django-dbbackend-sqlite3 >= 2.2 Requires: openssl Requires: logrotate Requires: openuds-installers Conflicts: openuds-tunnel openuds-guacamole-tunnel BuildArch: noarch BuildRequires(pre): rpm-build-python3 BuildRequires(pre): webserver-common rpm-build-webserver-common rpm-macros-apache2 BuildRequires: python3-module-django %description OpenUDS (Universal Desktop Services) is a multiplatform connection broker for: - VDI: Windows and Linux virtual desktops administration and deployment - App virtualization - Desktop services consolidation This package provides the required components to allow this machine to work as UDS Broker. %package apache2 Group: Networking/WWW BuildArch: noarch Summary: apache2 configs for %name Requires: %name = %version-%release Requires: apache2-httpd-prefork-like Requires: apache2-base Requires: apache2-mod_wsgi-py3 %description apache2 %summary %package nginx Group: Networking/WWW BuildArch: noarch Summary: nginx configs for %name Requires: %name = %version-%release Requires: nginx Requires: python3-module-gunicorn Requires: cert-sh-functions %description nginx %summary %prep %setup #%patch -p1 sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|' \ $(find . -name '*.py') %build # Compile localization files django-admin compilemessages #find src/uds/locale -name \*.po -delete %install mkdir -p %buildroot{%_datadir,%_logdir,%_sysconfdir,%_sharedstatedir}/openuds cp -r src/* %buildroot%_datadir/openuds/ mkdir -p %buildroot%_datadir/openuds/uds/static/clients mkdir -p %buildroot%_datadir/openuds/uds/osmanagers/WindowsOsManager/files mv %buildroot%_datadir/openuds/server/settings.py.sample %buildroot%_sysconfdir/openuds/settings.py ln -r -s %buildroot%_logdir/openuds %buildroot%_datadir/openuds/log ln -r -s %buildroot%_sysconfdir/openuds/settings.py %buildroot%_datadir/openuds/server/settings.py # drop httpd-conf snippet install -p -D -m 644 %SOURCE10 %buildroot%apache2_sites_available/openuds.conf install -p -D -m 644 %SOURCE11 %buildroot%apache2_sites_available/openuds-ssl.conf mkdir -p %buildroot%apache2_sites_enabled touch %buildroot%apache2_sites_enabled/openuds.conf install -p -D -m 644 %SOURCE12 %buildroot%_logrotatedir/openuds-server install -p -D -m 644 %SOURCE13 %buildroot%_sysconfdir/nginx/sites-available.d/openuds.conf mkdir -p %buildroot%_sysconfdir/nginx/sites-enabled.d touch %buildroot%_sysconfdir/nginx/sites-enabled.d/openuds.conf install -p -D -m 644 %SOURCE15 %buildroot%_unitdir/openuds-taskmanager.service install -p -D -m 644 %SOURCE16 %buildroot%_unitdir/openuds-web.service install -p -D -m 644 %SOURCE17 %buildroot%_unitdir/openuds-web.socket %pre %_sbindir/groupadd -r -f openuds >/dev/null 2>&1 ||: %_sbindir/useradd -M -r -g openuds -G _webserver -c 'OpenUDS Brocker Daemon' \ -s /bin/false -d %_sharedstatedir/openuds openuds >/dev/null 2>&1 ||: %post if [ $1 -eq 1 ]; then # ugly hack to set a unique SECRET_KEY sed -i "/^SECRET_KEY.*$/{N;s/^.*$/SECRET_KEY='`openssl rand -hex 10`'/}" %_sysconfdir/openuds/settings.py fi %post_service openuds-taskmanager %preun %preun_service openuds-taskmanager %post nginx %post_service openuds-web.socket %post_service openuds-web.service # Create SSL certificate for HTTPS server cert-sh generate nginx-openuds ||: %preun nginx %preun_service openuds-web.service %preun_service openuds-web.socket %files %_datadir/openuds %dir %attr(0750, root, openuds) %_sysconfdir/openuds %config(noreplace) %attr(0640, root, openuds) %_sysconfdir/openuds/settings.py %dir %attr(0770, root, openuds) %_sharedstatedir/openuds %dir %attr(0770, root, openuds) %_logdir/openuds %config(noreplace) %_logrotatedir/openuds-server %_unitdir/openuds-taskmanager.service %files apache2 %config(noreplace) %apache2_sites_available/*.conf %ghost %apache2_sites_enabled/*.conf %files nginx %config(noreplace) %_sysconfdir/nginx/sites-available.d/openuds.conf %ghost %_sysconfdir/nginx/sites-enabled.d/openuds.conf %_unitdir/openuds-web.service %_unitdir/openuds-web.socket %changelog * Tue Dec 21 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt12.p9 - Backport to p9 (switch back %%post macros) * Mon Nov 29 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt13 - Add link for download python 3.9 client. * Thu Oct 28 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt12 - Switch to use macros from rpm-build-systemd for post scripts. * Wed Oct 27 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt11 - Add requires openuds-installers (client and actor windows installers). - Revert "Remove download pages". - Fix client and actor file name on download page. * Mon Sep 06 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt10 - Updated RSA key to 4096 bit in config. * Wed Aug 18 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt9 - v3.0 snapshot 51b0cec5365698dffdb9a3a468d52bbba4656ba4 * Fri Jul 09 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt8 - Fix Russian translation - Update SECRET_KEY config for install only in %%post * Wed Jun 23 2021 Andrey Cherepanov <cas@altlinux.org> 3.0.0-alt7.2 - Compile l10n messages using django-admin - Add Russian language to server config file * Sat Jun 05 2021 Andrey Cherepanov <cas@altlinux.org> 3.0.0-alt7.1 - NMU: package compiled localization files (ALT #40161) * Fri Apr 23 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt7 - Fix create home dir for user openuds * Thu Apr 22 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt6 - Switch to local memory from memcached by default in settings.py. - Fix openuds-web.service for execute gunicorn.py3 for use python3. - Add conflicts with openuds-tunnel,openuds-guacamole-tunnel. * Wed Apr 21 2021 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt5 - Fix typo in nginx config (ALT #39968) * Wed Apr 14 2021 Mikhail Gordeev <obirvalger@altlinux.org> 3.0.0-alt4 - Remove pages and buttons with downloading clients and actors * Mon Dec 07 2020 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt3 - merge with upstream v3.0 branch (b1c43850908c5c207afa5812edc6c1ce46d8ca78) - update nginx config * Thu Dec 03 2020 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt2 - move apache config to apache2 package - add package with nginx config and service for start django app over gunicorn * Thu Nov 05 2020 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt1 - 3.0.0 Release * Tue Apr 14 2020 Alexey Shabalin <shaba@altlinux.org> 3.0.0-alt0.1.git.d7e30d14 - Initial build for ALT |