## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global modname lib%{name} Name: mat2 Version: 0.14.0 Release: %autorelease Summary: Metadata removal tool, supporting a wide range of commonly used file formats # License file provided by Python module, see: # rpm -q --licensefiles {python3_sitelib}/{name}-{version}.dist-info/LICENSE License: LGPL-3.0-or-later URL: https://github.com/jvoisin/mat2 VCS: git:%{url}.git Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{url}/releases/download/%{version}/%{version}.tar.gz.asc Source2: gpgkey-9FCDEE9E1A381F311EA62A7404D041E8171901CC.gpg # Skip two tests that fail on Fedora. At least one is, and possibly both are, # related to the glycin changes in Fedora 43+. One JPEG test fails because # glycin fails when reading a DAC format inside a JPEG. One TIFF test fails for # unknown reasons; it simply fails to clean the metadata. This implies that # this package fails, in part, to fulfill its purpose on F43+. Patch: %{name}-skip-broken-tests.patch BuildArch: noarch BuildSystem: pyproject BuildOption(install): -l %{modname} BuildRequires: gdk-pixbuf2 BuildRequires: gnupg2 BuildRequires: gobject-introspection BuildRequires: librsvg2 BuildRequires: mailcap BuildRequires: pkgconfig(pygobject-3.0) BuildRequires: poppler-glib # Test dependencies BuildRequires: ffmpeg-free BuildRequires: perl-Image-ExifTool Requires: python3-%{modname} = %{version}-%{release} Suggests: %{name}-dolphin = %{version}-%{release} %py_provides python3-%{name} %global _description %{expand: Metadata consist of information that characterizes data. Metadata are used to provide documentation for data products. In essence, metadata answer who, what, when, where, why, and how about every facet of the data that are being documented. Metadata within a file can tell a lot about you. Cameras record data about when a picture was taken and what camera was used. Office documents like PDF or Office automatically adds author and company information to documents and spreadsheets. Maybe you don't want to disclose those information. This is precisely the job of mat2: getting rid, as much as possible, of metadata. mat2 provides: - a library called 'libmat2'; - a command line tool called 'mat2', - a service menu for Dolphin, KDE's default file manager If you prefer a regular graphical user interface, you might be interested in 'Metadata Cleaner', which uses mat2 under the hood.} %description %_description # Library package %package -n python3-%{modname} Summary: Library for %{name} Requires: gdk-pixbuf2 Requires: librsvg2 Requires: mailcap Requires: poppler-glib # To avoid conflicts with 'ffmpeg-free' vs 'ffmpeg' from RPM Fusion Recommends: %{_bindir}/ffmpeg Recommends: perl-Image-ExifTool Recommends: %{name} = %{version}-%{release} %description -n python3-%{modname} %_description Library for %{name}. # Dolphin package %package dolphin Summary: Dolphin integration for %{name} Requires: dolphin # For Dolphin integration icon: mat2.svg Requires: hicolor-icon-theme Requires: kdialog Requires: kf5-filesystem Requires: python3-%{modname} = %{version}-%{release} %description dolphin %_description Dolphin integration for %{name}. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 %install -a # E: non-executable-script chmod 0755 %{buildroot}%{python3_sitelib}/%{modname}/__init__.py # Install Dolphin integration install -D -p dolphin/%{name}.desktop -t \ %{buildroot}%{_datadir}/kservices5/ # Install Dolphin integration icon install -D -p -m 644 data/%{name}.svg -t \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ %check %{py3_test_envvars} %{python3} -m unittest discover %files %{_bindir}/%{name} %{_mandir}/man1/*.1* %files -n python3-%{modname} -f %{pyproject_files} %doc README.md CHANGELOG.md doc/*.md %files dolphin %doc dolphin/README.md %{_datadir}/icons/hicolor/scalable/*/*.svg # No need to validate .desktop file for KDE services. # https://develop.kde.org/docs/apps/dolphin/service-menus/ %{_datadir}/kservices5/%{name}.desktop %changelog ## START: Generated by rpmautospec * Fri Nov 14 2025 Jerry James - 0.14.0-1 - Version 0.14.0 - Switch to new upstream URLs - Depend on gdk-pixbuf2 instead of gdk-pixbuf2-modules - Upstream removed bubblewrap dep, so remove mentions of it - Use the pyproject declarative buildsystem - Enable the tests (except for 2 that fail) - Figure out Requires/Recommends again - Clean and modernize the spec file * Fri Sep 19 2025 Python Maint - 0.13.5-6 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 0.13.5-5 - Rebuilt for Python 3.14.0rc2 bytecode * Thu Jul 24 2025 Fedora Release Engineering - 0.13.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 0.13.5-3 - Rebuilt for Python 3.14 * Fri Mar 28 2025 Miro HronĨok - 0.13.5-2 - Don't needlessly try to generate test requirements by tox - Fixes: rhbz#2354085 * Tue Mar 04 2025 Artem Polishchuk - 0.13.5-1 - chore: Update to 0.13.5 * Fri Jan 17 2025 Fedora Release Engineering - 0.13.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.13.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.13.4-8 - Rebuilt for Python 3.13 * Wed Apr 24 2024 Artem Polishchuk - 0.13.4-7 - test: Disable for now * Wed Apr 24 2024 Artem Polishchuk - 0.13.4-6 - build: Add python3-mutagen dep * Thu Jan 25 2024 Fedora Release Engineering - 0.13.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.13.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Oct 10 2023 Artem Polishchuk - 0.13.4-3 - build: Conform Fedora packaging guidelines for official repo - build: Add 'dolphin' sub-package and split into app and library sub-package - build: Use automatically generated dependencies for Python deps - build: Use new Python macros https://docs.fedoraproject.org/en-US/packaging-guidelines/Python - license: Convert to SPDX - test: Use {py3_test_envvars} for tests - style: Convert identations to spaces * Thu Aug 03 2023 Antoine Tenart - 0.13.4-2 - Add librsvg2 as a dependency. * Thu Aug 03 2023 Antoine Tenart - 0.13.4-1 - Bump to 0.13.4. - See https://0xacab.org/jvoisin/mat2/-/releases/0.13.4 * Mon Jan 30 2023 Antoine Tenart - 0.13.2-1 - Bump to 0.13.2. - See https://0xacab.org/jvoisin/mat2/-/releases/0.13.2 * Mon Jan 09 2023 Antoine Tenart - 0.13.1-1 - Bump to 0.13.1. - Due to upstream removal, removed the mat2-nautilus package. - See https://0xacab.org/jvoisin/mat2/-/releases/0.13.1 * Mon Jul 11 2022 Antoine Tenart - 0.13.0-1 - Bump to 0.13.0. - See https://0xacab.org/jvoisin/mat2/-/releases/0.13.0 * Wed May 11 2022 Antoine Tenart - 0.12.4-1 - Bump to 0.12.4. - See https://0xacab.org/jvoisin/mat2/-/releases/0.12.4 * Sat Feb 05 2022 Antoine Tenart - 0.12.3-1 - Bump to 0.12.3. - See https://0xacab.org/jvoisin/mat2/-/releases/0.12.3 * Tue Aug 31 2021 Antoine Tenart - 0.12.2-1 - Bump to 0.12.2. - See https://0xacab.org/jvoisin/mat2/-/releases/0.12.2 * Mon Mar 22 2021 Antoine Tenart - 0.12.1-1 - Bump to 0.12.1. - See https://0xacab.org/jvoisin/mat2/-/releases/0.12.1 * Sat Dec 19 2020 Antoine Tenart - 0.12.0-1 - Bump to 0.12.0. - See https://0xacab.org/jvoisin/mat2/-/blob/master/CHANGELOG.md#0120-2020-12-18 * Sun Mar 29 2020 Antoine Tenart - 0.11.0-1 - Bump to 0.11.0. - See https://0xacab.org/jvoisin/mat2/-/blob/master/CHANGELOG.md#0110-2020-03-29 * Mon Feb 10 2020 Antoine Tenart - 0.10.1-1 - Bump to 0.10.1. - See https://0xacab.org/jvoisin/mat2/tags/0.10.1 * Mon Dec 02 2019 Antoine Tenart - 0.10.0-1 - Bump to 0.10.0. - See https://0xacab.org/jvoisin/mat2/tags/0.10.0 * Sat May 11 2019 Antoine Tenart - 0.9.0-1 - Bump to 0.9.0. - See https://0xacab.org/jvoisin/mat2/tags/0.9.0 * Wed Apr 24 2019 Antoine Tenart - 0.8.0-3 - Enable tarball verification. - Add build time checks. * Wed Mar 27 2019 Antoine Tenart - 0.8.0-2 - Install mat2's man page and docs. - Stop listing ffmpeg as a mandatory dependency. * Fri Mar 22 2019 Antoine Tenart - 0.8.0-1 - Bump to 0.8.0. - See https://0xacab.org/jvoisin/mat2/tags/0.8.0 - See https://0xacab.org/jvoisin/mat2/tags/0.7.0 * Sat Nov 10 2018 Antoine Tenart - 0.6.0-1 - Bump to 0.6.0. - See https://0xacab.org/jvoisin/mat2/tags/0.6.0 * Wed Oct 24 2018 Antoine Tenart - 0.5.0-1 - Bump to 0.5.0. - See https://0xacab.org/jvoisin/mat2/tags/0.5.0 * Thu Oct 11 2018 Antoine Tenart - 0.4.0-1 - Bump to 0.4.0. - See https://0xacab.org/jvoisin/mat2/tags/0.4.0 * Sat Sep 01 2018 Antoine Tenart - 0.3.1-1 - Bump to 0.3.1. - See https://0xacab.org/jvoisin/mat2/tags/0.3.1 * Thu Aug 23 2018 Antoine Tenart - 0.3.0-1 - Bump to 0.3.0. - See https://0xacab.org/jvoisin/mat2/tags/0.3.0 * Wed Jul 11 2018 Antoine Tenart - 0.2.0-1 - Bump to 0.2.0. - See https://0xacab.org/jvoisin/mat2/tags/0.2.0 * Fri Jul 06 2018 Antoine Tenart - 0.1.3-1 - Bump to 0.1.3. - See https://0xacab.org/jvoisin/mat2/tags/0.1.3 - See https://0xacab.org/jvoisin/mat2/tags/0.1.2 * Tue Jun 12 2018 Antoine Tenart - 0.1.1-1 - First mat2 package. ## END: Generated by rpmautospec