Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:mail
grommunio-admin-api
grommunio-admin-api.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grommunio-admin-api.spec of Package grommunio-admin-api
# # spec file for package grommunio-admin-api # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %if 0%{?centos_version} %global _unpackaged_files_terminate_build 0 %endif %define __python /usr/bin/python3 # hey old suse %define _libexecdir %_prefix/libexec Name: grommunio-admin-api Version: 1.15.0.0f5b1bb Release: 0 Summary: Backend for grommunio management License: AGPL-3.0-or-later Group: Productivity/Networking/Email/Servers URL: https://grommunio.com/ #Git-Clone: https://github.com/grommunio/admin-api Source: %name-%version.tar.xz BuildRequires: cmake BuildRequires: polkit BuildRequires: python-rpm-macros BuildRequires: group(grommunio) BuildRequires: pkgconfig(systemd) BuildRequires: user(grommunio) BuildArch: noarch Requires(pre): user(grommunio) Requires(pre): group(grommunio) Requires(post): coreutils Requires(post): openssl Requires(post): user(grommunio) Requires(post): group(gromox) Requires: grommunio-admin-common Requires: nginx Requires: polkit Requires: python3 Requires: python3-Flask Requires: python3-argcomplete Requires: python3-cryptography Requires: python3-jsonschema Requires: python3-ldap3 >= 2.6 Requires: python3-mattermostdriver Requires: python3-multidict Requires: python3-mysqlclient Requires: python3-openapi-core >= 0.12.0 Requires: python3-openapi-schema-validator Requires: python3-openapi-spec-validator Requires: python3-psutil Requires: python3-pyexmdb >= 1.10.0 Requires: python3-redis Requires: python3-requests Requires: python3-sqlalchemy Requires: python3-systemd Requires: uwsgi %if 0%{?suse_version} Requires: python3-PyJWT Requires: python3-PyYAML Requires: python3-dnspython Requires: python3-websockets Requires: uwsgi-python3 %else Requires: python3-dns Requires: python3-isodate Requires: python3-jwt Requires: python3-lazy-object-proxy Requires: python3-more-itertools Requires: python3-parse Requires: python3-pyyaml Requires: python3-uwsgidecorators Requires: uwsgi-plugin-python3 %endif Suggests: python3-termcolor %description The grommunio admin-api provides a state-of-the-art REST-interface for operations with the grommunio software suite. The primary grommunio client grommunio admin-web uses admin-api for data retrieval, and for administrative tasks, such as creating, deleting and modifying users. %package bash-completion Summary: Shell completion for admin-api Supplements: (%name and bash) BuildArch: noarch %description bash-completion bash completion scripts for admin-api. %prep %autosetup -p1 %build %cmake . %cmake_build %install %cmake_install find "%buildroot" -type f -name "*.py" -exec perl -i -pe 's{#!/usr/bin/env python}{#!/usr/bin/python}'g {} + %global services grommunio-admin-api.service grommunio-admin-api.socket %pre %if 0%{?service_add_pre:1} %service_add_pre %services %endif %post usermod grommunio -aG gromox || : usermod grommunio -aG systemd-journal || : %tmpfiles_create grommunio-admin-api.conf %if 0%{?service_add_post:1} %service_add_post %services %else %systemd_post %services %endif if ! test -x /usr/bin/systemctl; then exit 0 fi if [ ! -e /etc/grommunio-admin-api/jwt-privkey.pem ] || [ ! -e /etc/grommunio-admin-api/jwt-pubkey.pem ] ; then rm -f /etc/grommunio-admin-api/jwt-{priv,pub}key.pem openssl genrsa -out /etc/grommunio-admin-api/jwt-privkey.pem 4096 || : openssl rsa -in /etc/grommunio-admin-api/jwt-privkey.pem -outform PEM -pubout -out /etc/grommunio-admin-api/jwt-pubkey.pem || : chown grommunio:grommunio /etc/grommunio-admin-api/jwt-privkey.pem \ /etc/grommunio-admin-api/jwt-pubkey.pem || : fi %preun %if 0%{?service_del_preun:1} %service_del_preun %services %else %systemd_preun %services %endif %postun %if 0%{?service_del_postun:1} %service_del_postun %services %else %systemd_postun_with_restart %services %endif %files %dir %_sysconfdir/grommunio-admin-api %dir %attr(0750, grommunio, grommunio) %_sysconfdir/grommunio-admin-api/conf.d %dir %_sysconfdir/grommunio-admin-common %dir %attr(0750, grommunio, grommunio) %_sysconfdir/grommunio-admin-common/license %if 0%{?suse_version} %attr(0750,root,root) %dir %_sysconfdir/sudoers.d %endif %attr(0440,root,root) %_sysconfdir/sudoers.d/grommunio-sudo %dir %attr(0700, grommunio, grommunio) %_sharedstatedir/%name %_datadir/polkit-1/rules.d/*.rules %dir %_datadir/grommunio-admin-common %dir %_datadir/grommunio-admin-common/nginx.d %_datadir/grommunio-admin-common/nginx.d/api.conf %_datadir/grommunio-admin-common/portrait.jpg %_datadir/grommunio-admin-api/ %_unitdir/* %_sbindir/grommunio-admin %_tmpfilesdir/*.conf %_mandir/man*/*.[0-9]* %ghost %dir /run/grommunio %license LICENSE.txt %files bash-completion %_datadir/bash-completion/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor