From 2f7fd6256c043a3084584b9c264352785504a938 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 4 Aug 2023 23:29:01 +0200 Subject: [PATCH] Initial Fedora packaging --- .gitignore | 1 + sources | 1 + tecla.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 tecla.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4a120e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tecla-45.alpha.tar.xz diff --git a/sources b/sources new file mode 100644 index 0000000..b1a4bf6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tecla-45.alpha.tar.xz) = 6a08641e71c9fd4748407fd49ab11da3f8986177bb627a512ac7f54891cc575d696e183b814559c5e98b7e0fcaf46f950b109485083f492a5ef9847391d5737d diff --git a/tecla.spec b/tecla.spec new file mode 100644 index 0000000..149abca --- /dev/null +++ b/tecla.spec @@ -0,0 +1,48 @@ +%global tarball_version %%(echo %{version} | tr '~' '.') + +Name: tecla +Version: 45~alpha +Release: %autorelease +Summary: Keyboard layout viewer + +License: GPL-2.0-or-later +URL: https://gitlab.gnome.org/GNOME/tecla +Source: https://download.gnome.org/sources/tecla/45/tecla-%{tarball_version}.tar.xz + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(gtk4-wayland) +BuildRequires: pkgconfig(libadwaita-1) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(xkbcommon) + +%description +Tecla is a keyboard layout viewer. It uses GTK/Libadwaita for UI, and +libxkbcommon to deal with keyboard maps. + + +%prep +%autosetup -p1 -n tecla-%{tarball_version} + + +%build +%meson +%meson_build + + +%install +%meson_install + + +%files +%license LICENSE +%doc NEWS README.md +%{_bindir}/tecla +%{_datadir}/applications/org.gnome.Tecla.desktop +%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Tecla.svg +%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Tecla-symbolic.svg + + +%changelog +%autochangelog