Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
multimedia:color_management
DisplayCAL
DisplayCAL.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File DisplayCAL.spec of Package DisplayCAL
# # spec file for package DisplayCAL (SUSE based distributions only) # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 Florian Hoech # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define numpy_version 1.0 %define wx_minversion 4.1.1 %{?primary_python:%define pythons %primary_python} %{?sle15_python_module_pythons} Summary: Display calibration and profiling with a focus on accuracy and versatility License: GPL-3.0+ Group: Productivity/Graphics/Other Name: DisplayCAL Version: 3.9.11 Release: 0 Url: https://github.com/eoyilmaz/displaycal-py3 Source0: %{url}/archive/refs/tags/%{version}/displaycal-py3-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build Obsoletes: DisplayCAL-0install < 3.8 Provides: DisplayCAL-0install = %{version} Obsoletes: dispcalGUI < 3.1.0.0 Provides: dispcalGUI = %{version} Obsoletes: dispcalGUI-0install < 3.1.0.0 Provides: dispcalGUI-0install = %{version} BuildRequires: %{python_module devel => 3.8} BuildRequires: %{python_module xml} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: gcc BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(xxf86vm) BuildRequires: update-desktop-files Requires: argyllcms Requires: %{python_flavor}-Pillow Requires: %{python_flavor}-PyChromecast Requires: %{python_flavor}-Send2Trash Requires: %{python_flavor}-certifi Requires: %{python_flavor}-distro Requires: %{python_flavor}-dbus-python Requires: %{python_flavor}-gobject Requires: %{python_flavor}-numpy >= %{numpy_version} Requires: %{python_flavor}-psutil Requires: %{python_flavor}-pyglet Requires: %{python_flavor}-wxWidgets >= %{wx_minversion} Requires: %{python_flavor}-xml Requires: %{python_flavor}-zeroconf %python_subpackages %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 displaycal-py3-%{version} dos2unix LICENSE.txt %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Remove doc dir (we will take care of it in files) rm -rf %{buildroot}%{_datadir}/doc/DisplayCAL-0.0.0/ # Move autostart to correct location install -d -m 0755 %{buildroot}/etc/xdg/ cp -av %{buildroot}/home/abuild/.config/autostart %{buildroot}/etc/xdg/ rm -rf %{buildroot}/home/abuild/ # Remove unneeded executable rm -f %{buildroot}%{python_sitearch}/DisplayCAL/__main__.py # Prepare files list: # - Remove traces of RPM_BUILD_ROOT # - Remove unused files from list of installed files and add directories # as well as mark files as executable where needed %python_exec -c "import os f = open('INSTALLED_FILES') paths = [chr(0x22) + path.replace('%{buildroot}', '').strip() + chr(0x22) for path in filter(lambda path: not '/doc/' in path and not '/etc/' in path and not '/man/' in path, f.readlines())] f.close() executables = ['Argyll'] + os.listdir('scripts') for path in list(paths): path = path.strip(chr(0x22)) if os.path.basename(path) == '__main__.py': paths.remove(chr(0x22) + path + chr(0x22)) continue if path.startswith('/home/'): paths.remove(chr(0x22) + path + chr(0x22)) continue if os.path.basename(path) in executables: paths.remove(chr(0x22) + path + chr(0x22)) paths.append('%%attr(755, root, root) ' + chr(0x22) + path + chr(0x22)) while True: path = os.path.dirname(path) if os.path.isdir(path): break else: directory = '%%dir ' + chr(0x22) + path + chr(0x22) if not directory in paths: paths.append(directory) f = open('INSTALLED_FILES', 'w') f.write('\n'.join([*set(paths)])) f.close()" %files -f INSTALLED_FILES %license LICENSE.txt %doc README.html README-fr.html screenshots theme %config %{_sysconfdir}/xdg/autostart/z-displaycal-apply-profiles.desktop %{_mandir}/man1/displaycal-3dlut-maker.1.gz %{_mandir}/man1/displaycal-apply-profiles.1.gz %{_mandir}/man1/displaycal-curve-viewer.1.gz %{_mandir}/man1/displaycal-profile-info.1.gz %{_mandir}/man1/displaycal-scripting-client.1.gz %{_mandir}/man1/displaycal-synthprofile.1.gz %{_mandir}/man1/displaycal-testchart-editor.1.gz %{_mandir}/man1/displaycal-vrml-to-x3d-converter.1.gz %{_mandir}/man1/displaycal.1.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor