## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec %global srcname termynal %global source_name js-%{srcname} %global source_summary Lightweight and modern terminal animations using async/await %global source_version 0.0.1 %global source_release %autorelease -b 6 -s %{date}git%{shortcommit0} %global source_license MIT %global source_description %{expand: Typing animations are nothing new and Termynal isn’t particularly revolutionary. The author wrote it because they needed a modern and lightweight version with minimal JavaScript and without messy, nested setTimeout calls. Most of the existing libraries rely on JavaScript for both the rendering, styling and animation, or even require jQuery. This is inconvenient, especially if you’re using the animation as part of your software’s documentation. If a user has JavaScript disabled, they will only see a blank window. Termynal uses async and await, which is now supported pretty much across all major browsers. Termynal lets you write all input and output in plain HTML, and all styling in plain CSS. Non-JS users will still see the complete code, just no animation. The width and height of the terminal window is read off the original container. This means you won’t have to worry about sizing or layout reflows. Termynal also comes with a flexible HTML API, so you can use it without having to write a single line of JavaScript yourself. } %global forge_url0 https://github.com/ines/%{srcname}/ %global forge_commit0 9b301892db6f8d403abfce7adf65888dffed72ea %global shortcommit0 %(c=%{forge_commit0}; echo ${c:0:7}) %global date 20211220 %global source_tags %{expand: BuildArch: noarch BuildRequires: web-assets-devel BuildRequires: golang-github-evanw-esbuild Requires: web-assets-filesystem } %forgeauto_init %forgeauto_pkg %sourcelist %forgeauto_sources %prep %forgeauto_prep # Remove pre-minified JavaScript per Fedora guidelines rm -f *.min.* %build esbuild \ --platform=browser \ --sourcemap \ --minify \ --out-extension:.js=.min.js \ --outdir=%{_vpath_builddir} \ %{srcname}.js %install install -t '%{buildroot}%{_jsdir}/%{srcname}' -m 0644 -p -D \ %{srcname}.* %{_vpath_builddir}/%{srcname}.* # There are no tests. %files %license LICENSE %doc README.md %doc example*.html %{_jsdir}/%{srcname} %changelog * jeu. déc. 30 2021 Robert-André Mauchin %doc_init-1 - Convert to new forge macros * jeu. juil. 22 2021 Fedora Release Engineering 0.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 16 2021 Benjamin A. Beasley - 0.0.1-2 - Remove stray find command * Fri Mar 05 2021 Benjamin A. Beasley - 0.0.1-1 - Initial package