## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 npm_name aw-webui %global commit f38b119f0ad628dd8af6ddfaaaf89700b9290c06 %global short_commit %(c=%{commit}; echo ${c:0:7}) Name: nodejs-%{npm_name} Version: 0^20251016.%{short_commit} Release: %autorelease Summary: A web-based UI for ActivityWatch, built with Vue.js # The aw-webui is released under the MPL-2.0 license. Other licenses: # src/visualizations/sunburst-clock.ts: Apache-2.0 # src/visualizations/ForceGraph.vue: ISC License: MPL-2.0 AND Apache-2.0 AND ISC URL: https://github.com/ActivityWatch/%{npm_name} Source0: %{url}/archive/%{commit}/%{npm_name}-%{short_commit}.tar.gz # prepared with "nodejs-packaging-bundler %%{npm_name} %%{short_commit} %%{SOURCE0}" Source1: %{npm_name}-%{short_commit}-nm-prod.tgz Source2: %{npm_name}-%{short_commit}-nm-dev.tgz Source3: %{npm_name}-%{short_commit}-bundled-licenses.txt Source4: https://raw.githubusercontent.com/ActivityWatch/media/cb597f7c2e2b135505fe5d6b3042960a638892cf/logo/logo.png Source5: https://raw.githubusercontent.com/ActivityWatch/media/cb597f7c2e2b135505fe5d6b3042960a638892cf/logo/logo.svg BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-npm BuildRequires: nodejs-devel BuildRequires: fdupes %description %{summary} %prep %autosetup -n %{npm_name}-%{commit} -p1 # copy license cp -p %{SOURCE3} . # copy icons cp -p %{SOURCE4} %{SOURCE5} -t static # it's not a git repository, so querying git would fail sed -ri 's/git rev-parse --short HEAD/echo %{short_commit}/' vue.config.js sed -ri '/typeface-varela-round/d' src/main.js # unpack npm prod dependencies straight to node_modules, because # building fails when symlinking from node_modules_prod to node_modules mkdir -p node_modules tar xfz %{SOURCE1} --strip-components 2 -C node_modules # unpack npm dev dependencies too, because cannot find vue-cli-service # when building tar xfz %{SOURCE2} --strip-components 2 -C node_modules %build npm run build %install mkdir -p %{buildroot}%{_datadir}/%{npm_name} cp -pr dist -t %{buildroot}%{_datadir}/%{npm_name} %fdupes %{buildroot}%{_datadir}/%{npm_name}/dist/css %check npm test %files %license LICENSE.txt %{npm_name}-%{short_commit}-bundled-licenses.txt %doc README.md %{_datadir}/%{npm_name} %changelog ## START: Generated by rpmautospec * Thu Oct 16 2025 Łukasz Wojniłowicz - 0^20251016.f38b119-1 - Uncommitted changes * Wed May 07 2025 Łukasz Wojniłowicz - 0^20250507.9259df7-2 - Fix missing regenerator * Wed May 07 2025 Łukasz Wojniłowicz - 0^20250507.9259df7-1 - Update to cb9a7ec * Sun Mar 23 2025 Łukasz Wojniłowicz - 0^20250323.cb9a7ec-1 - Update to cb9a7ec * Fri Jan 17 2025 Fedora Release Engineering - 0^20241103.291da6f-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Nov 03 2024 Łukasz Wojniłowicz - 0^20241103.291da6f-1 - Update to commit 291da6f * Thu Jul 18 2024 Fedora Release Engineering - 0^20240518.05c25c9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 15 2024 Łukasz Wojniłowicz - 0^20240518.05c25c9-1 - Initial import (fedora#2279057). ## END: Generated by rpmautospec