## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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 srcname obs-catpion %global commit c4f4f7a6dc5fb404d910fc6061f78c11a6691c00 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20230920 Name: obs-studio-plugin-catpion Version: 0~git%{commitdate}.%{shortcommit} Release: %autorelease Summary: OBS text display plugin with many advanced features License: GPL-2.0-or-later URL: https://github.com/grillo-delmal/obs-catpion Source0: %{url}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz BuildRequires: cmake BuildRequires: g++ BuildRequires: pkgconfig(libobs) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(april-asr) BuildRequires: qt-devel BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qttools-devel BuildRequires: qt6-qtbase-gui Supplements: obs-studio%{?_isa} %description Speech to text plugin for OBS. %prep %autosetup -n %{srcname}-%{commit} %build %cmake \ -D CMAKE_INSTALL_LIBDIR=/usr/lib64/ \ -D CMAKE_INSTALL_PREFIX=/usr \ -D LINUX_PORTABLE=OFF \ -DCMAKE_SKIP_RPATH:BOOL=ON %cmake_build %install %cmake_install %files %license LICENSE %{_libdir}/obs-plugins/%{srcname}* %{_datadir}/obs/obs-plugins/%{srcname}/ %changelog * Wed Sep 20 2023 Diego Herrera <94992171+dherrerace@users.noreply.github.com> - 0~git20230920.c4f4f7a-1 - Update obs-catpion to latest commit * Sun Sep 17 2023 Diego Herrera - 0~git20230917.1345a08-1 - Initial packaging