## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 forgeurl0 https://github.com/carlbyington2/dupeguru %global version0 4.3.1 %global date 20261120 %global commit c1af49cd9dc023567ebbcaa43cbe7f63612c4d61 %forgemeta Summary: GUI tool to find duplicate files by content Name: dupeguru Version: %forgeversion Release: %autorelease Source: %forgesource URL: %forgeurl # The upstream should be https://github.com/arsenetar/dupeguru but # that version is almost dormant. The last release was four years ago, # and there are many critical outstanding pull requests that have # not been merged. # # https://github.com/carlbyington2/dupeguru/tree/fedora-build is a # fork with most of the open pull requests from arsenetar applied. # the source code in the tarball is GPL-3.0-only # the Sphinx generated HTML static assets use the other licenses License: GPL-3.0-only AND BSD-2-Clause AND BSD-3-Clause AND MIT AND LicenseRef-Fedora-Public-Domain # remove the about box check for new releases - that should be done via dnf Patch0: remove-check-for-updates.patch # tools to build the project BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: make BuildRequires: pyside6-tools BuildRequires: python3-devel BuildRequires: python3-polib BuildRequires: python3-setuptools BuildRequires: python3-sphinx # for % check section BuildRequires: desktop-file-utils BuildRequires: python3-defusedxml BuildRequires: python3-mutagen BuildRequires: python3-pytest BuildRequires: python3-pytest-qt BuildRequires: python3-semantic_version BuildRequires: python3-send2trash # for %check section to run tests in dupeguru/qt BuildRequires: libxkbcommon-x11 BuildRequires: xcb-util-cursor BuildRequires: xcb-util-wm BuildRequires: xcb-util-keysyms BuildRequires: google-noto-sans-fonts # packages required at runtime # since we have icons Requires: hicolor-icon-theme %description dupeGuru is a cross-platform (Linux and OS X) GUI tool to find duplicate files. It is written mostly in Python 3 and uses Qt6 for the UI. %prep %forgeautosetup -p1 %py3_shebang_fix . # put the full fedora version in the about box fn=dupeguru/core/__init__.py sed -i -e 's/__version__.*/__version__ = "%{version0}"/' $fn sed -i -e 's/__full_version__.*/__full_version__ = "%{version}-%{release}"/' $fn %generate_buildrequires %pyproject_buildrequires %build # create one source file make %{?_smp_mflags} dupeguru/qt/dg_rc.py # build the python code %pyproject_wheel # build the locale files make %{?_smp_mflags} i18n # build the help files %{python3} build.py --alldoc # remove sphinx artifacts rm -rf build/help/*/.buildinfo rm -rf build/help/*/.doctrees %install %pyproject_install %pyproject_save_files dupeguru # install in the proper places mkdir -p %{buildroot}%{_datadir}/%{name} cp -a locale %{buildroot}%{_datadir}/%{name} cp -a build/help %{buildroot}%{_datadir}/%{name} install -p -m 644 -D pkg/dupeguru.desktop %{buildroot}%{_datadir}/applications/dupeguru.desktop install -p -m 644 -D images/dgse_logo_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png install -p -m 755 -D run.py %{buildroot}%{_bindir}/%{name} install -p -m 644 -D README.md %{buildroot}%{_pkgdocdir}/README.md install -p -m 644 help/changelog %{buildroot}%{_pkgdocdir}/changelog install -p -m 644 notes.txt %{buildroot}%{_pkgdocdir}/notes.txt ## symlinks since dupeguru wants locale and help in %%{python3_sitearch}/%%{name} ## but we want those in installed in %%{_datadir}/%%{name} ln -sf %{_datadir}/%{name}/locale %{buildroot}%{python3_sitearch}/%{name}/locale ln -sf %{_datadir}/%{name}/help %{buildroot}%{python3_sitearch}/%{name}/help # remove installed but unpackaged files find %{buildroot} -name '*.po' -delete find %{buildroot} -name '*.pot' -delete rm %{buildroot}%{_includedir}/python%{python3_version}/%{name}/common.h find %{buildroot}%{python3_sitearch}/%{name} -name '*.c' -delete %find_lang columns %find_lang core %find_lang ui # combine the language files into one file for the files section # pyproject_files contains some .c files that should not be packaged and were removed above cat columns.lang core.lang ui.lang %{pyproject_files} | grep -v '\.c$' | sort >dupeguru.lang %check desktop-file-validate %{buildroot}%{_datadir}/applications/dupeguru.desktop %pyproject_check_import export QT_QPA_PLATFORM=offscreen %pytest --import-mode=importlib %{buildroot}%{python3_sitearch}/dupeguru %files -f dupeguru.lang %{_bindir}/%{name} %license LICENSE %license pkg/debian/copyright %{python3_sitearch}/%{name}/help %{python3_sitearch}/%{name}/locale %{_datadir}/applications/dupeguru.desktop %{_datadir}/icons/*/*/*/%{name}.png %dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/locale %dir %{_datadir}/%{name}/locale/* %dir %{_datadir}/%{name}/locale/*/LC_MESSAGES %{_datadir}/%{name}/help/ %docdir %{_pkgdocdir} %{_pkgdocdir} %changelog ## START: Generated by rpmautospec * Fri Nov 20 2026 Carl Byington - 4.3.1^20261120gitc1af49c-1 - Add bulk folder-state changes using Ctrl/Shift selection - Preserve selected rows and expanded folders when changing Normal, Reference, or Excluded - Add tested Windows installer and portable release builds - new translations by transifex - finish changing github arsenetar references to carlbyington2 * Fri Nov 06 2026 Carl Byington - 4.3.1^20261106git7a2c79f-1 - patch github issues references from arsenetar to carlbyington2/dupeguru/issues - patch github discussions references from arsenetar to carlbyington2/dupeguru/discussions * Sun Nov 01 2026 Carl Byington - 4.3.1^20261101git7a2c79f-1 - cleanup packaging requirements, remove references to OSX cocoa - remove obsolete hscommon license file - allow sphinx 9.1.0 in f45+ * Fri Oct 30 2026 Carl Byington - 4.3.1^20261030gitcd95e68-1 - allow xxhash 4.0.2 in f45+ - don't package sphinx and pyproject_install artifacts * Fri Oct 30 2026 Carl Byington - 4.3.1^20261030git521590f-1 - cleanup 2015 license change from BSD to GPLv3 - about box version matches fedora rpm - remove check for updates from about box * Thu Oct 29 2026 Carl Byington - 4.3.1^20261029git58f91ef-1 - Pick the same reference in every scan when files tie on every rule - Allow marking reference files, and confirm actions on them - Select the revealed file even in a folder Explorer has not listed * Tue Oct 20 2026 Carl Byington - 4.3.1^20261020git62ea00a-1 - cleanup an old 4-Clause BSD License * Mon Oct 19 2026 Carl Byington - 4.3.1^20261019git7b004af-1 - better forge automation in the spec file * Sun Oct 18 2026 Carl Byington - 4.3.1^20261018git7b004af-1 - Add alphabetical and natural filename order criteria to the Filename category of Re-Prioritize Results. - Fully hash big files whose samples match before matching them. - Walk directories iteratively to avoid RecursionError during scans. - Fix picture scans crashing on incompatible cache schemas. * Wed Sep 09 2026 Carl Byington - 4.3.1^20260909gitddc8077-1 - Only treat files as hardlinks when the device matches too - fix: Report a problem instead of crashing on relative copy/move * Tue Sep 01 2026 Carl Byington - 4.3.1^20260901gitdfd190f-1 - Don't crash on startup when a saved folder is unreachable * Sun Aug 02 2026 Carl Byington - 4.3.1^20260802gitd6e2978-1 - Initial Fedora spec file - includes fixes beyond 4.3.1 which was released in 2022 - guard copy_or_move when no location path matches dupe parent - the application name in the dock is "dupeguru" - use Qt6 rather than Qt5 - fix to show dupeguru icon in the launcher - configurable scan speed for picture mode (up to 16x faster) - fix SQL injection in cache modules - fix XXE vulnerabilities in XML parsing - fix command injection in Custom Command - updated Polish, French, Russian translations - force Qt6 to use the X11 interfaces since Fedora now runs wayland and under wayland, Qt6 application window does not use the proper styling. - allow send2trash 2.1.0 which is in Fedora 45 - move core,hscommon,qt down one level to add dupeguru namespace ## END: Generated by rpmautospec