%global commit 0d0b96010764992077e45e644ca390d9f2f4a5c8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global source_version %%(echo "%version" | tr '^' '-') Name: libbraille-input Version: 1.2.99^%{shortcommit} Release: %autorelease Epoch: 1 Summary: A common braille-input library for IBus-Braille and Sharada-Braille-Write Group: Applications/Editors License: GPLv3+ URL: https://zendalona.com/sbw/ Source0: https://github.com/zendalona/%{name}/archive/%{shortcommit}/%{name}-%{commit}.tar.gz#/%{name}-%{source_version}.tar.gz Patch0: %{name}-build.patch BuildArch: noarch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: libtool BuildRequires: python3-devel Requires: python3-louis %description Braille input engine for IBus-Braille and Sharada-Braille-Writer This engine can convert braille input events to text and call asociated callback functions. Here braille input means inputing text in Perkins-like way, i.e. braille patterns. It supports several braille tables, contracted braille and abbreviations. %prep %autosetup -p 1 -n %{name}-%{commit} %build ./autogen.sh %{make_build} %install %{make_install} %files %doc README README.md %license COPYING %{_datadir}/braille-input %{python3_sitelib}/brailleinput %changelog %autochangelog