%global forgeurl https://gitlab.com/rmnvgr/%{name} %global tag v%{version} %global appid fr.romainvigier.MetadataCleaner Name: metadata-cleaner Version: 2.5.4 Release: 1%{?dist} Summary: Python GTK application to view and clean metadata in files, using mat2 %forgemeta License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: libappstream-glib BuildRequires: desktop-file-utils BuildRequires: itstool BuildRequires: meson >= 0.59.0 BuildRequires: pkgconfig(gtk4) >= 4.6 Requires: dbus-common Requires: gtk4 >= 4.6 Requires: libadwaita >= 1.2 Requires: mat2 %description Metadata within a file can tell a lot about you. Cameras record data about when and where a picture was taken and which camera was used. Office applications automatically add author and company information to documents and spreadsheets. This is sensitive information and you may not want to disclose it. This tool allows you to view metadata in your files and to get rid of it, as much as possible. Under the hood, it relies on mat2 to parse and remove the metadata. %prep %forgeautosetup -p1 %build %meson %meson_build %install %meson_install # E: files-duplicated-waste 254383 # This comes from help files. Using 'fdupes' not safe. Better try to resolve # this with upstream in future. %find_lang %{appid} --with-gnome %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files -f %{appid}.lang %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/dbus-1/services/*.service %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/icons/hicolor/scalable/*/*.svg %{_datadir}/icons/hicolor/symbolic/*/*.svg %{_metainfodir}/*.xml %changelog * Tue Oct 10 2023 Artem Polishchuk - 2.5.4-1 - Initial