## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} %bcond frontend 0 Name: owncast Version: 0.2.5 Release: %autorelease Summary: Take control over your live stream video by running it yourself. License: MIT URL: https://github.com/owncast/owncast Source0: https://github.com/owncast/owncast/archive/refs/tags/v%{version}.tar.gz Source1: owncast.sysusers.conf Source2: owncast.service Source3: owncast-nginx.conf BuildRequires: golang BuildRequires: glibc-devel BuildRequires: gcc BuildRequires: systemd-rpm-macros %if %{with frontend} BuildRequires: nodejs BuildRequires: nodejs-npm %endif Requires: /usr/bin/ffmpeg %description Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server for running your own live streams similar in style to the large mainstream options. It offers complete ownership over your content, interface, moderation and audience. %files %license LICENSE %doc README.md CONTRIBUTING.md %attr(755, root, root) %{_bindir}/owncast %attr(755, owncast, owncast) %{_sharedstatedir}/owncast/ %{_sysusersdir}/owncast.conf %{_unitdir}/owncast.service %if %{with frontend} %package frontend Summary: Owncast Frontend ExclusiveArch: %{nodejs_arches} Requires: nginx-filesystem %description frontend Frontend version fo the app %files frontend %license LICENSE %doc README.md CONTRIBUTING.md %config(noreplace) %{_sysconfdir}/nginx/default.d/owncast.conf %{_datadir}/owncast/ %endif %prep %setup -q %build %if %{with frontend} pushd web npm install node_modules/.bin/next build mv ./out ../static/web popd %endif go mod download export GO_LDFLAGS=" \ -s -w \ -X github.com/owncast/owncast/config.GitCommit=00000000 \ -X github.com/owncast/owncast/config.VersionNumber=%{version} \ -X github.com/owncast/owncast/config.BuildPlatform=Fedora \ " CGO_ENABLED=1 \ go build \ -ldflags "$GO_LDFLAGS"\ -o ./bin/owncast . %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysusersdir} mkdir -p %{buildroot}%{_sharedstatedir}/owncast/ install -m 755 bin/owncast %{buildroot}%{_bindir}/owncast install -m 644 %{S:1} %{buildroot}%{_sysusersdir}/owncast.conf install -m 644 %{S:2} %{buildroot}%{_unitdir}/owncast.service %if %{with frontend} mkdir -p %{buildroot}%{_datadir}/owncast/web/ mkdir -p %{buildroot}%{_sysconfdir}/nginx/default.d/ cp -Rp ./static/web/. %{buildroot}%{_datadir}/owncast/web/ install -m 644 %{S:3} %{buildroot}%{_sysconfdir}/nginx/default.d/owncast.conf %endif %pre %sysusers_create_compat %{S:1} %post %systemd_post owncast.service %preun %systemd_preun owncast.service %postun %systemd_postun_with_restart owncast.service %changelog ## START: Generated by rpmautospec * Wed Apr 15 2026 Grillo del Mal - 0.2.5-1 - Update to 0.2.5 * Mon Mar 09 2026 Grillo del Mal - 0.2.4-1 - Initial commit ## END: Generated by rpmautospec