2023-08-04 21:29:01 +00:00
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
|
|
|
|
Name: tecla
|
2023-09-19 13:23:22 +00:00
|
|
|
Version: 45.0
|
2023-08-04 21:29:01 +00:00
|
|
|
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
|
2023-08-11 09:45:35 +00:00
|
|
|
BuildRequires: gettext
|
2023-08-04 21:29:01 +00:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig(gtk4)
|
|
|
|
BuildRequires: pkgconfig(gtk4-wayland)
|
|
|
|
BuildRequires: pkgconfig(libadwaita-1)
|
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
2023-08-07 12:38:23 +00:00
|
|
|
BuildRequires: /usr/bin/desktop-file-validate
|
2023-08-04 21:29:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Tecla is a keyboard layout viewer. It uses GTK/Libadwaita for UI, and
|
|
|
|
libxkbcommon to deal with keyboard maps.
|
|
|
|
|
|
|
|
|
2023-09-06 10:24:47 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains a pkg-config file for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
2023-08-04 21:29:01 +00:00
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n tecla-%{tarball_version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%meson
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
2023-08-11 09:45:35 +00:00
|
|
|
%find_lang tecla
|
|
|
|
|
2023-08-04 21:29:01 +00:00
|
|
|
|
2023-08-07 12:38:23 +00:00
|
|
|
%check
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Tecla.desktop
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
|
2023-08-11 09:45:35 +00:00
|
|
|
%files -f tecla.lang
|
2023-08-04 21:29:01 +00:00
|
|
|
%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
|
|
|
|
|
|
|
|
|
2023-09-06 10:24:47 +00:00
|
|
|
%files devel
|
|
|
|
%{_datadir}/pkgconfig/tecla.pc
|
|
|
|
|
|
|
|
|
2023-08-04 21:29:01 +00:00
|
|
|
%changelog
|
|
|
|
%autochangelog
|