1 Summary: Query and change Linux monitor settings using DDC/CI and USB
6 Group: X11/Applications
7 Source0: https://github.com/rockowitz/ddcutil/archive/v%{version}.tar.gz
8 # Source0-md5: d676ec9ca9f6488fa5888bb39175f2d5
9 URL: http://www.ddcutil.com/
10 BuildRequires: autoconf >= 2.69
11 BuildRequires: automake >= 1:1.11
12 BuildRequires: libdrm-devel >= 2.4.67
13 BuildRequires: libtool
14 BuildRequires: libusb-devel >= 1.0.15
15 BuildRequires: pkgconfig
16 BuildRequires: xorg-lib-libXrandr-devel
17 Requires: libdrm >= 2.4.67
18 Requires: libusb >= 1.0.15
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 ddcutil is a program for querying and changing monitor settings, such
23 as brightness and color levels.
25 ddcutil uses DDC/CI to communicate with monitors implementing MCCS
26 (Monitor Control Command Set) over I2C. Normally, the video driver for
27 the monitor exposes the I2C channel as devices named /dev/i2c-n. There
28 is also psupport for monitors (such as Apple Cinema and Eizo
29 ColorEdge) that implement MCCS using a USB connection.
31 A particular use case for ddcutil is as part of color profile
32 management. Monitor calibration is relative to the monitor color
33 settings currently in effect, e.g. red gain. ddcutil allows color
34 related settings to be saved at the time a monitor is calibrated, and
35 then restored when the calibration is applied.
38 Summary: ddcutil header files
39 Group: X11/Development/Libraries
40 Requires: %{name} = %{version}-%{release}
55 --disable-silent-rules \
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %doc AUTHORS NEWS.md README.md
77 %attr(755,root,root) %{_bindir}/ddcutil
78 %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.*
79 %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.0
80 %{_mandir}/man1/ddcutil.1*
81 %dir %{_datadir}/%{name}
82 %dir %{_datadir}/%{name}/data
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libddcutil.so
87 %{_includedir}/ddcutil*.h
88 %{_pkgconfigdir}/ddcutil.pc
89 %{_datadir}/%{name}/data/FindDDCUtil.cmake