Name: tuber Version: 0.0.git.407.a2432e4 Release: 1%{?dist} Summary: Event Management System License: MIT URL: https://tuber.hackafe.net/ VCS: git+https://github.com/magfest/tuber.git#a2432e493a3d097793c9eac57c8a49392827f6cf:contrib/ Source: tuber-0.0.git.407.a2432e4.tar.gz BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: npm BuildRequires: git Requires: python3-passlib Requires: python3-flask Requires: python3-requests Requires: python3-gunicorn Requires: python3-flask-sqlalchemy Requires: python3-flask-migrate %define debug_package %{nil} %{?python_enable_dependency_generator} %description Tuber is an event management system. %prep %setup -q -n tuber-0.0.git.407.a2432e4 %build cd backend %py3_build cd ../frontend npm install npm run build %install cd backend %py3_install cd .. mkdir -p %{buildroot}/usr/lib/systemd/system mkdir -p %{buildroot}/var/lib/tuber/ mkdir -p %{buildroot}/usr/share/tuber/web/js/ mkdir -p %{buildroot}/usr/share/tuber/web/css/ mkdir -p %{buildroot}/usr/share/tuber/migrations/ mkdir -p %{buildroot}/etc/tuber mkdir -p %{buildroot}/etc/default cp contrib/nginx.conf.rhel %{buildroot}/usr/share/tuber/nginx.conf cp contrib/tuber.service %{buildroot}/usr/lib/systemd/system/ cp contrib/tuber %{buildroot}/etc/default/ cp frontend/dist/js/app.*.js %{buildroot}/usr/share/tuber/web/js/ cp frontend/dist/js/chunk-vendors.*.js %{buildroot}/usr/share/tuber/web/js/ cp frontend/dist/css/app.*.css %{buildroot}/usr/share/tuber/web/css/ cp frontend/dist/css/chunk-vendors.*.css %{buildroot}/usr/share/tuber/web/css/ cp frontend/dist/index.html %{buildroot}/usr/share/tuber/web/ cp frontend/dist/favicon.ico %{buildroot}/usr/share/tuber/web/ cp -r backend/migrations/* %{buildroot}/usr/share/tuber/migrations/ %files %config /etc/default/tuber /usr/lib/systemd/system/tuber.service /usr/bin/tuber /usr/share/tuber %{python3_sitelib}/tuber/ %{python3_sitelib}/tuber-*.egg-info/ %dir /var/lib/tuber %changelog