Name: length Version: 0.8.1 Release: %autorelease Summary: Measure objects on screen License: GPL-3.0-or-later URL: https://github.com/herve4m/length Source0: https://github.com/herve4m/%{name}/archive/refs/tags/%{version}.tar.gz BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gettext BuildRequires: itstool BuildRequires: meson BuildRequires: python3-devel BuildRequires: desktop-file-utils BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gnome-desktop-4) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(pangocairo) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: /usr/bin/appstream-util BuildRequires: /usr/bin/desktop-file-validate Requires: gtk4 Requires: python3 # For /usr/share/dbus-1/services directory Requires: dbus # For hicolor icon theme directories Requires: hicolor-icon-theme %description Length is a GNOME application for measuring distances on screen to help you design and inspect layouts and graphics. Includes the following features: · Pixels, centimeters, inches, pica, points, or percentages as units · Horizontal or vertical orientation · Left-to-right or right-to-left orientation · Transparency levels · Track pointer position %prep %autosetup -p1 -n %{name}-%{version} # Fix rpmlint E: non-standard-executable-perm /usr/bin/length 555 chmod a-x src/length.in # remove when fix is included in new release %build %meson %meson_build %install %meson_install %find_lang %{name} --with-gnome chmod u+w %{buildroot}%{_bindir}/%{name} %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/io.github.herve4m.Length.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files -f %{name}.lang %doc README.md CONTRIBUTING.md %license COPYING %{_bindir}/length %{_datadir}/applications/io.github.herve4m.Length.desktop %{_datadir}/dbus-1/services/io.github.herve4m.Length.service %{_datadir}/glib-2.0/schemas/io.github.herve4m.Length.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/io.github.herve4m.Length.svg %{_datadir}/icons/hicolor/symbolic/apps/io.github.herve4m.Length-symbolic.svg %{_metainfodir}/io.github.herve4m.Length.metainfo.xml %{_datadir}/length/ %changelog %autochangelog