The package rpms/DisplayCAL.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/DisplayCAL.git/commit/?id=1a3ad0134e....
Change: +%ifarch %{arm32} %{ix86}
Thanks.
Full change: ============
commit 1a3ad0134e0bfa010ff3a65069f66f42c7ec963c Author: Neal Gompa ngompa@fedoraproject.org Date: Sun Jul 28 22:10:06 2024 -0400
Initial import into Fedora
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a5cf70 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/DisplayCAL-3.9.12.tar.gz diff --git a/DisplayCAL.spec b/DisplayCAL.spec new file mode 100644 index 0000000..1bdf7d0 --- /dev/null +++ b/DisplayCAL.spec @@ -0,0 +1,294 @@ +# Use define instead of global to ensure it's evaluated when used +%define lc_name %(echo "%{name}" | tr '[:upper:]' '[:lower:]') + +Name: DisplayCAL +Version: 3.9.12 +Release: 3%{?dist} +Summary: Display calibration and profiling tool focusing on accuracy and versatility +License: GPL-3.0-or-later +URL: https://github.com/eoyilmaz/displaycal-py3 +Source0: %{pypi_source} +Patch0: displaycal-3.9.3-udev-dir.patch +Patch1: displaycal-skip-update-check.patch +Patch2: displaycal-3.9.8-fix-autostart-location.patch + +BuildRequires: gcc +BuildRequires: pkgconfig(xxf86vm) +BuildRequires: pkgconfig(xinerama) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(python3) +BuildRequires: pyproject-rpm-macros +BuildRequires: xdg-user-dirs + +Requires: argyllcms +Requires: hicolor-icon-theme +# workaround for crash with pyglet as sound backend +Requires: SDL2_mixer + +Provides: %{lc_name} = %{version}-%{release} +Provides: dispcalGUI = %{version}-%{release} + +%description +This utility calibrates and characterizes display devices using one +of many supported measurement instruments, with support for +multi-display setups and a variety of available options for advanced +users, such as verification and reporting functionality to evaluate +ICC profiles and display devices, creating video 3D LUTs, as well as +optional CIECAM02 gamut mapping to take into account varying viewing +conditions. + +%prep +%autosetup -p1 -n %{name}-%{version} + +# Delete existing egg +rm -rf DisplayCAL.egg-info +# Delete PKG-INFO that causes inadvertent Python version restrictions +rm PKG-INFO + +# hack to force creating dist/net.displaycal... (missed due pyproject) +sed -i -e 's|create_appdata = |create_appdata = True or |' setup.py + +# drop prebuilt modules +find . -name '*.so' -print -delete + +# fix paths +%ifarch %{arm32} %{ix86} +ln -s ./lib64 DisplayCAL/lib32 +sed -i -e 's/DisplayCAL.lib64/DisplayCAL.lib32/g' DisplayCAL/RealDisplaySizeMM.py +%endif + +%generate_buildrequires +%pyproject_buildrequires + +%build +export CFLAGS="%{build_cflags} -Wno-incompatible-pointer-types" +%pyproject_wheel + +%install +%pyproject_install +mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/ +mv %{buildroot}%{_datadir}/DisplayCAL/z-displaycal-apply-profiles.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/ + +%files +%docdir %{_docdir}/%{name}-%{version}/ +%doc %{_docdir}/%{name}-%{version}/* +%license LICENSE.txt +%{_sysconfdir}/xdg/autostart/z-displaycal-apply-profiles.desktop +%{_bindir}/%{lc_name}* +%{_datadir}/%{name}/ +%{_datadir}/icons/hicolor/*/apps/%{lc_name}*.png +%{_datadir}/applications/%{lc_name}*.desktop +%{_metainfodir}/net.displaycal.%{name}.appdata.xml +%{python3_sitearch}/%{name}/ +%{python3_sitearch}/%{name}-%{version}.dist-info/ +%{_mandir}/man1/%{lc_name}* + +%changelog +* Sat Jul 27 2024 Neal Gompa ngompa@fedoraproject.org - 3.9.12-3 +- Drop unneeded egg data + +* Sat Jul 13 2024 Neal Gompa ngompa@fedoraproject.org - 3.9.12-2 +- Adapt for Fedora + +* Thu Apr 04 2024 David GEIGER daviddavid@mageia.org 3.9.12-1.mga10 ++ Revision: 2054356 +- new version: 3.9.12 + +* Tue Jan 16 2024 papoteur papoteur@mageia.org 3.9.11-3.mga10 ++ Revision: 2031653 +- workaround for crash with pyglet as sound backend, pulling sdl2_mixer which has precedence (mga#32697) + +* Sun Dec 31 2023 David GEIGER daviddavid@mageia.org 3.9.11-2.mga10 ++ Revision: 2024873 +- add py3.12 support + +* Tue Dec 19 2023 David GEIGER daviddavid@mageia.org 3.9.11-1.mga10 ++ Revision: 2019816 +- new version: 3.9.11 + +* Tue Dec 19 2023 papoteur papoteur@mageia.org 3.9.10-3.mga10 ++ Revision: 2019485 +- Mass Rebuild - Python 3.12 ++ David GEIGER daviddavid@mageia.org +- rebuild for py3.12 + +* Thu Dec 01 2022 David GEIGER daviddavid@mageia.org 3.9.10-1.mga9 ++ Revision: 1913674 +- new version: 3.9.10 +- rediff skip-update-check patch + +* Fri Sep 30 2022 papoteur papoteur@mageia.org 3.9.8-1.mga9 ++ Revision: 1893487 +- fix installation location of autostart file +- new version: 3.9.8 + +* Sun May 15 2022 papoteur papoteur@mageia.org 3.9.3-1.mga9 ++ Revision: 1858237 +- new 3.9.3 +- restore displaycal now ported to Python 3 ++ Sysadmin Bot umeabot@mageia.org +- Mageia 8 Mass Rebuild + +* Mon Aug 19 2019 David GEIGER daviddavid@mageia.org 3.8.5.0-1.mga8 ++ Revision: 1429917 +- new version: 3.8.5.0 + +* Mon Jul 08 2019 David GEIGER daviddavid@mageia.org 3.8.3.0-1.mga8 ++ Revision: 1419467 +- new version: 3.8.3.0 + +* Fri Apr 05 2019 David GEIGER daviddavid@mageia.org 3.7.2.0-1.mga7 ++ Revision: 1385912 +- new version: 3.7.2.0 + +* Mon Jan 28 2019 David GEIGER daviddavid@mageia.org 3.7.1.4-1.mga7 ++ Revision: 1361558 +- new version: 3.7.1.4 + +* Tue Dec 25 2018 David GEIGER daviddavid@mageia.org 3.7.1.3-1.mga7 ++ Revision: 1344960 +- new version: 3.7.1.3 + +* Fri Nov 30 2018 David GEIGER daviddavid@mageia.org 3.7.1.2-1.mga7 ++ Revision: 1336811 +- new version: 3.7.1.2 + +* Sun Nov 18 2018 David GEIGER daviddavid@mageia.org 3.7.1.1-1.mga7 ++ Revision: 1330755 +- new version: 3.7.1.1 + +* Sun Oct 21 2018 David GEIGER daviddavid@mageia.org 3.7.0.0-1.mga7 ++ Revision: 1323222 +- new version: 3.7.0.0 +- switch to 55-Argyll.rules to support new udev (mga#23733) + +* Fri Sep 21 2018 David GEIGER daviddavid@mageia.org 3.6.2.0-1.mga7 ++ Revision: 1295897 +- new version: 3.6.2.0 + +* Sat Aug 18 2018 David GEIGER daviddavid@mageia.org 3.6.1.1-1.mga7 ++ Revision: 1252514 +- new version: 3.6.1.1 + +* Mon Apr 30 2018 David GEIGER daviddavid@mageia.org 3.5.3.0-1.mga7 ++ Revision: 1223902 +- new version: 3.5.3.0 + +* Sat Apr 07 2018 David GEIGER daviddavid@mageia.org 3.5.2.0-1.mga7 ++ Revision: 1215879 +- new version: 3.5.2.0 + +* Fri Mar 23 2018 David GEIGER daviddavid@mageia.org 3.5.1.0-1.mga7 ++ Revision: 1211431 +- new version: 3.5.1.0 +- rename and rediff udev-dir patch + +* Mon Feb 26 2018 David GEIGER daviddavid@mageia.org 3.5.0.0-1.mga7 ++ Revision: 1205245 +- new version: 3.5.0.0 + +* Thu Jan 04 2018 David GEIGER daviddavid@mageia.org 3.4.0.0-1.mga7 ++ Revision: 1190081 +- new version: 3.4.0.0 + +* Thu Nov 09 2017 David GEIGER daviddavid@mageia.org 3.3.5.0-1.mga7 ++ Revision: 1176692 +- new version: 3.3.5.0 + +* Sat Sep 23 2017 David GEIGER daviddavid@mageia.org 3.3.4.1-1.mga7 ++ Revision: 1157787 +- new version: 3.3.4.1 + +* Sat Sep 02 2017 David GEIGER daviddavid@mageia.org 3.3.3.0-1.mga7 ++ Revision: 1150723 +- new version: 3.3.3.0 + +* Sun Jul 02 2017 David GEIGER daviddavid@mageia.org 3.3.2.0-1.mga6 ++ Revision: 1108913 +- new version: 3.3.2.0 + +* Sun Jan 15 2017 David GEIGER daviddavid@mageia.org 3.2.3.0-1.mga6 ++ Revision: 1081884 +- new version: 3.2.3.0 + +* Sun Dec 11 2016 David GEIGER daviddavid@mageia.org 3.2.1.0-1.mga6 ++ Revision: 1074203 +- new version: 3.2.1.0 + +* Sun Oct 30 2016 David GEIGER daviddavid@mageia.org 3.1.7.3-1.mga6 ++ Revision: 1064156 +- new version: 3.1.7.3 + +* Fri Oct 14 2016 David GEIGER daviddavid@mageia.org 3.1.7.0-1.mga6 ++ Revision: 1060737 +- new version: 3.1.7.0 + +* Sun Aug 28 2016 David GEIGER daviddavid@mageia.org 3.1.6.0-1.mga6 ++ Revision: 1049349 +- new version: 3.1.6.0 + +* Sat Aug 20 2016 David GEIGER daviddavid@mageia.org 3.1.5.0-1.mga6 ++ Revision: 1047143 +- new version: 3.1.5.0 + +* Sun Jul 24 2016 David GEIGER daviddavid@mageia.org 3.1.4.0-1.mga6 ++ Revision: 1043512 +- new version: 3.1.4.0 + +* Tue May 10 2016 David GEIGER daviddavid@mageia.org 3.1.3.1-1.mga6 ++ Revision: 1012317 +- new version: 3.1.3.1 + +* Mon Feb 22 2016 David GEIGER daviddavid@mageia.org 3.1.0.0-1.mga6 ++ Revision: 976005 +- new version: 3.1.0.0 (fixes mga#17803) +- new upstream URL and Source URL +- rename and rediff udev-dir patch +- use new python macros +- requires python-numpy +- obsoletes/provides old upstream name on dispcalGUI +- update files list +- move to new upstream name on displaycal + +* Fri Feb 05 2016 Sysadmin Bot umeabot@mageia.org 1.2.7.0-9.mga6 ++ Revision: 938821 +- Mageia 6 Mass Rebuild + +* Wed Oct 15 2014 Sysadmin Bot umeabot@mageia.org 1.2.7.0-8.mga5 ++ Revision: 744682 +- Second Mageia 5 Mass Rebuild + +* Sat Sep 27 2014 Thierry Vignaud tv@mageia.org 1.2.7.0-7.mga5 ++ Revision: 726130 +- rebuild for missing pythoneggs deps + +* Tue Sep 16 2014 Sysadmin Bot umeabot@mageia.org 1.2.7.0-6.mga5 ++ Revision: 678756 +- Mageia 5 Mass Rebuild ++ Olav Vitters ovitters@mageia.org +- add gobject-introspection BR for typelib auto BR + +* Sat May 31 2014 Pascal Terjan pterjan@mageia.org 1.2.7.0-5.mga5 ++ Revision: 628160 +- Rebuild for new Python + +* Sat Nov 02 2013 Funda Wang fwang@mageia.org 1.2.7.0-4.mga4 ++ Revision: 548862 +- add requires on python-gi + +* Tue Oct 22 2013 Sysadmin Bot umeabot@mageia.org 1.2.7.0-3.mga4 ++ Revision: 542551 +- Mageia 4 Mass Rebuild + +* Mon Oct 14 2013 Pascal Terjan pterjan@mageia.org 1.2.7.0-2.mga4 ++ Revision: 497727 +- Rebuild to add different pythonegg provides for python 2 and 3 + +* Wed Jul 31 2013 Funda Wang fwang@mageia.org 1.2.7.0-1.mga4 ++ Revision: 461407 +- update file list +- new version 1.2.7.0 + +* Sun Feb 10 2013 Nicolas Lécureuil neoclust@mageia.org 0.8.9.3-1.mga3 ++ Revision: 397779 +- imported package dispcalGUI diff --git a/displaycal-3.9.3-udev-dir.patch b/displaycal-3.9.3-udev-dir.patch new file mode 100644 index 0000000..bf2803e --- /dev/null +++ b/displaycal-3.9.3-udev-dir.patch @@ -0,0 +1,32 @@ +diff -ruN DisplayCAL-3.9.3/DisplayCAL/setup.py DisplayCAL-3.9.3-new/DisplayCAL/setup.py +--- DisplayCAL-3.9.3/DisplayCAL/setup.py 2022-04-30 13:17:33.000000000 +0200 ++++ DisplayCAL-3.9.3-new/DisplayCAL/setup.py 2022-05-13 13:14:54.617154160 +0200 +@@ -748,13 +748,13 @@ + ) + else: + devconf_files = [] +- if os.path.isdir("/etc/udev/rules.d"): ++ if os.path.isdir("/usr/lib/udev/rules.d"): + if safe_glob("/dev/bus/usb/*/*"): + # USB and serial instruments using udev, where udev + # already creates /dev/bus/usb/00X/00X devices + devconf_files.append( + ( +- "/etc/udev/rules.d", ++ "/usr/lib/udev/rules.d", + [ + os.path.join( + pydir, "..", "misc", "55-Argyll.rules" +@@ -767,10 +767,10 @@ + # devices + devconf_files.append( + ( +- "/etc/udev/rules.d", ++ "/usr/lib/udev/rules.d", + [ + os.path.join( +- pydir, "..", "misc", "45-Argyll.rules" ++ pydir, "..", "misc", "55-Argyll.rules" + ) + ], + ) diff --git a/displaycal-3.9.8-fix-autostart-location.patch b/displaycal-3.9.8-fix-autostart-location.patch new file mode 100644 index 0000000..5b0c6f3 --- /dev/null +++ b/displaycal-3.9.8-fix-autostart-location.patch @@ -0,0 +1,31 @@ +diff -ruN DisplayCAL-3.9.8/DisplayCAL/setup.py DisplayCAL-3.9.8.new/DisplayCAL/setup.py +--- DisplayCAL-3.9.8/DisplayCAL/setup.py 2022-09-15 11:51:25.000000000 +0200 ++++ DisplayCAL-3.9.8.new/DisplayCAL/setup.py 2022-09-30 14:08:31.055892853 +0200 +@@ -709,9 +709,7 @@ + ) + data_files.append( + ( +- autostart +- if os.geteuid() == 0 or prefix.startswith("/") +- else autostart_home, ++ "share/DisplayCAL", + [ + os.path.join( + pydir, +@@ -722,6 +720,7 @@ + ], + ) + ) ++ print(f"Fichiers {data_files[-1]}") + data_files.append( + ( + os.path.join(os.path.dirname(data), "man", "man1"), +@@ -977,6 +976,7 @@ + # On Linux the libraries will be built on build step + pass + ++ print(data_files) + attrs = { + "author": author_ascii, + "author_email": author_email, +Les fichiers binaires DisplayCAL-3.9.8/DisplayCAL/.setup.py.kate-swp et DisplayCAL-3.9.8.new/DisplayCAL/.setup.py.kate-swp sont différents diff --git a/displaycal-skip-update-check.patch b/displaycal-skip-update-check.patch new file mode 100644 index 0000000..6ea3602 --- /dev/null +++ b/displaycal-skip-update-check.patch @@ -0,0 +1,106 @@ +diff --git a/DisplayCAL/config.py b/DisplayCAL/config.py +index ff13261..b67afa0 100644 +--- a/DisplayCAL/config.py ++++ b/DisplayCAL/config.py +@@ -1355,7 +1355,7 @@ defaults = { + "untethered.max_delta.chroma": 0.5, + "untethered.min_delta": 1.5, + "untethered.min_delta.lightness": 1.0, +- "update_check": 1, ++ "update_check": 0, + "use_fancy_progress": 1, + "use_separate_lut_access": 0, + "vrml.compress": 1, +diff --git a/DisplayCAL/display_cal.py b/DisplayCAL/display_cal.py +index 3b4661c..dde15bc 100644 +--- a/DisplayCAL/display_cal.py ++++ b/DisplayCAL/display_cal.py +@@ -497,8 +497,8 @@ def app_uptodate(parent=None, appname=ap + dlg.sizer0.SetSizeHints(dlg) + dlg.sizer0.Layout() + dlg.ShowModalThenDestroy() +- if parent and getattr(parent, "menuitem_app_auto_update_check", None): +- parent.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) ++ #if parent and getattr(parent, "menuitem_app_auto_update_check", None): ++ # parent.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) + + + def app_update_confirm( +@@ -584,8 +584,8 @@ def app_update_confirm( + dlg.Center() + result = dlg.ShowModal() + dlg.Destroy() +- if parent and getattr(parent, "menuitem_app_auto_update_check", None): +- parent.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) ++ #if parent and getattr(parent, "menuitem_app_auto_update_check", None): ++ # parent.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) + if result == wx.ID_OK and ( + zeroinstall or (sys.platform in ("darwin", "win32") or argyll) + ): +@@ -3118,17 +3118,17 @@ class MainFrame(ReportFrame, BaseFrame, + menuitem = help.FindItemById(help.FindItem("help_support")) + self.Bind(wx.EVT_MENU, self.help_support_handler, menuitem) + menuitem = help.FindItemById(help.FindItem("bug_report")) +- self.Bind(wx.EVT_MENU, self.bug_report_handler, menuitem) +- self.menuitem_app_auto_update_check = help.FindItemById( +- help.FindItem("update_check.onstartup") +- ) +- self.Bind( +- wx.EVT_MENU, +- self.app_auto_update_check_handler, +- self.menuitem_app_auto_update_check, +- ) +- menuitem = help.FindItemById(help.FindItem("update_check")) +- self.Bind(wx.EVT_MENU, self.app_update_check_handler, menuitem) ++ #self.Bind(wx.EVT_MENU, self.bug_report_handler, menuitem) ++ #self.menuitem_app_auto_update_check = help.FindItemById( ++ # help.FindItem("update_check.onstartup") ++ #) ++ #self.Bind( ++ # wx.EVT_MENU, ++ # self.app_auto_update_check_handler, ++ # self.menuitem_app_auto_update_check, ++ #) ++ #menuitem = help.FindItemById(help.FindItem("update_check")) ++ #self.Bind(wx.EVT_MENU, self.app_update_check_handler, menuitem) + + if sys.platform == "darwin": + wx.GetApp().SetMacAboutMenuItemId(self.menuitem_about.GetId()) +@@ -3257,7 +3257,7 @@ class MainFrame(ReportFrame, BaseFrame, + self.menuitem_show_log.Check(bool(getcfg("log.show"))) + self.menuitem_log_autoshow.Enable(not bool(getcfg("log.show"))) + self.menuitem_log_autoshow.Check(bool(getcfg("log.autoshow"))) +- self.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) ++ #self.menuitem_app_auto_update_check.Check(bool(getcfg("update_check"))) + + def init_controls(self): + """Initialize the main window controls and their event handlers.""" +@@ -19485,7 +19485,7 @@ class StartupFrame(start_cls): + app.process_argv(1) + wx.CallAfter(app.frame.Raise) + # Check for updates if configured +- if getcfg("update_check"): ++ if getcfg("update_check") and False: + # Give time for the main window to gain focus before checking for + # update, otherwise the main window may steal the update + # confirmation dialog's focus which looks weird +diff --git a/DisplayCAL/xrc/mainmenu.xrc b/DisplayCAL/xrc/mainmenu.xrc +index 2735be4..6c86b09 100644 +--- a/DisplayCAL/xrc/mainmenu.xrc ++++ b/DisplayCAL/xrc/mainmenu.xrc +@@ -231,6 +231,7 @@ + <label>bug_report</label> + </object> + <object class="separator"/> ++ <!-- + <object class="wxMenuItem" name="update_check.onstartup"> + <label>update_check.onstartup</label> + <checkable>1</checkable> +@@ -239,6 +240,7 @@ + <label>update_check</label> + </object> + <object class="separator"/> ++ --> + <label>menu.help</label> + </object> + </object> diff --git a/sources b/sources new file mode 100644 index 0000000..15872b4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (DisplayCAL-3.9.12.tar.gz) = f42111359ae63f0d2a2c6239d0a3a43bd5b52a2efed3c8decc186c180811353c48f094724205cb4e06af762f4c209d13f9fb959eab2d17c8425f218c9f913072
arch-excludes@lists.fedoraproject.org