Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
oncall-admin
_service:set_version:oncall-admin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:oncall-admin.spec of Package oncall-admin
# # spec file for package oncall # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # Name: oncall-admin Version: 0.0.gc297b54 Release: 0 Summary: User bootstrap/editor script for oncall License: BSD-2-Clause Group: Productivity/Networking/Web/Frontends URL: https://github.com/dwang159/oncall-admin Source: %{name}-%{version}.tar.gz Source1: oncall-admin_config_nginx Source2: oncall-admin.service Source3: oncall-admin.sysconfig Source4: oncall-admin.tmpfile Source5: oncall-admin.logrotate Source6: oncall-admin-rpmlintrc BuildRequires: mariadb BuildRequires: openldap2-devel BuildRequires: python-devel BuildRequires: python-ldap BuildRequires: python-rpm-macros BuildRequires: python-appdirs BuildRequires: python-configparser BuildRequires: python-enum34 BuildRequires: python-falcon BuildRequires: python-flake8 BuildRequires: python-gevent, BuildRequires: python-greenlet, BuildRequires: python-gunicorn BuildRequires: python-mccabe BuildRequires: python-packaging BuildRequires: python-pycodestyle BuildRequires: python-pyflakes BuildRequires: python-PyMySQL BuildRequires: python-pyparsing BuildRequires: python-python-mimeparse BuildRequires: python-PyYAML BuildRequires: python-six BuildRequires: python-SQLAlchemy BuildRequires: python-phonenumbers BuildRequires: python-ujson BuildRequires: python2-setuptools BuildRequires: systemd-rpm-macros Requires: http_daemon Requires: mariadb-client Requires: python-ldap Requires: python-sasl Requires: python-PyMySQL Requires: python-PyYAML Requires: python-cryptography >= 2.3 Requires: python-falcon Requires: python-falcon-cors Requires: python-gevent Requires: python-gunicorn Requires: python-icalendar Requires: python-irisclient Requires: python-jinja2 Requires: python-ldap Requires: python-phonenumbers Requires: python-pytz Requires: python-setuptools Requires: python-slackclient Requires: python-sqlalchemy Requires: python-streql Requires: python-ujson Requires: python-virtualenv Requires: python-webassets Requires(pre): pwdutils Requires(pre): %fillup_prereq Recommends: logrotate BuildArch: noarch %{?systemd_requires} %define oncall_admin_user _oncall-admin %define oncall_admin_group _oncall-admin %description Oncall is a calendar tool designed for scheduling and managing on-call shifts. It offers highly customizable scheduling for on-call shifts, as well as a streamlined UI for editing, swapping, and overriding on-call shifts. Oncall-admin allows to create and edit users. %package config-nginx Summary: Oncall-admin running with nginx as proxy Group: Productivity/Networking/Web/Frontends Requires: nginx Recommends: apache2-utils %description config-nginx If you want to run %{name} via nginx, just install this package to get some easy to understand/adaptable configuration files that make it easy to setup %{name} with Nginx. Please note: the configuration reads a file called /etc/nginx/oncall-admin.pass Please create this file before your start your nginx via: htpasswd -c /etc/nginx/oncall-admin.pass $your_admin_user %files config-nginx %dir %{_sysconfdir}/nginx %dir %{_sysconfdir}/nginx/conf.d %config(noreplace) %{_sysconfdir}/nginx/conf.d/%{name}.conf %ghost %attr(0640,nginx,nginx) %{_sysconfdir}/nginx/oncall-admin.pass %prep %setup -q %build LANG="en_US.UTF8" \ CFLAGS="%{optflags}" \ CXXFLAGS="%{optflags}" \ OVERRIDE_CFLAGS="%{optflags}" \ python setup.py build %install python setup.py install --prefix %{_prefix} --root=%{buildroot} for file in $(find %{buildroot}/%{python_sitelib} -type f -name "*.svg"); do chmod -x "$file" done # install nginx configuration install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/conf.d/%{name}.conf # ghost the password file touch %{buildroot}%{_sysconfdir}/nginx/oncall-admin.pass # install template configuration files in /etc/oncall mkdir -p %{buildroot}%{_sysconfdir}/oncall cp configs/*.yaml %{buildroot}%{_sysconfdir}/oncall/oncall-admin.config.yaml # install static files cp -a src/oncall_admin/static %{buildroot}%{python_sitelib}/oncall_admin/ # install service file install -Dm644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service sed -i "s|__HOMEDIR__|%{python_sitelib}/oncall_admin|g" %{buildroot}%{_unitdir}/%{name}.service mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} # install tmpfile install -D -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf # sysconfig script install -D -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.%{name} # install logrotate file install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} mkdir -p %{buildroot}/var/log/%{name} %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service # systemd-tmpfiles --create %%{_tmpfilesdir}/%%{name}.conf %fillup_only /usr/sbin/groupadd -r %{oncall_admin_group} 2>/dev/null || : /usr/sbin/useradd -r -g %{oncall_admin_group} -d %{python_sitelib}/oncall_admin -s /bin/false -c "Oncall-Admin System User" %{oncall_admin_user} 2>/dev/null || : %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %doc *.md %license LICENSE %dir %{_sysconfdir}/oncall %dir %attr(0750,%{oncall_admin_user},%{oncall_admin_group}) /var/log/%{name} %ghost %dir /run/%{name} %config(noreplace) %{_sysconfdir}/oncall/*.yaml %{_unitdir}/%{name}.service %{_tmpfilesdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_sbindir}/rc%{name} %dir %{python_sitelib}/oncall_admin %{python_sitelib}/oncall_admin/* %dir %{python_sitelib}/oncall_admin*egg-info %{python_sitelib}/oncall_admin*egg-info/* %{_fillupdir}/sysconfig.%{name} %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