]>
Commit | Line | Data |
---|---|---|
ee308c4a | 1 | Summary: Query and change Linux monitor settings using DDC/CI and USB |
d7783ebb | 2 | Summary(pl.UTF-8): Odczyt i zmiana ustawień monitora spod Linuksa przy użyciu DDC/CI i USB |
ee308c4a | 3 | Name: ddcutil |
1f3f0706 | 4 | Version: 2.1.4 |
a83d27f8 | 5 | Release: 1 |
ee308c4a JP |
6 | License: GPL v2+ |
7 | Group: X11/Applications | |
d7783ebb | 8 | #Source0Download: https://github.com/rockowitz/ddcutil/releases |
a83d27f8 | 9 | Source0: https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz |
1f3f0706 | 10 | # Source0-md5: 1865d840a113aa763f0f60dff67b3a95 |
ee308c4a JP |
11 | URL: http://www.ddcutil.com/ |
12 | BuildRequires: autoconf >= 2.69 | |
59381054 | 13 | BuildRequires: automake >= 1:1.14 |
16257431 | 14 | BuildRequires: glib2-devel >= 1:2.40 |
59381054 | 15 | BuildRequires: jansson-devel >= 2.0 |
ee308c4a | 16 | BuildRequires: libdrm-devel >= 2.4.67 |
3f91e24f | 17 | BuildRequires: libi2c-devel |
d7783ebb | 18 | BuildRequires: libtool >= 2:2 |
ee308c4a JP |
19 | BuildRequires: libusb-devel >= 1.0.15 |
20 | BuildRequires: pkgconfig | |
a83d27f8 | 21 | BuildRequires: udev-devel |
d7783ebb | 22 | BuildRequires: xorg-lib-libX11-devel |
59381054 | 23 | BuildRequires: xorg-lib-libXext-devel |
ee308c4a | 24 | BuildRequires: xorg-lib-libXrandr-devel |
d7783ebb | 25 | BuildRequires: zlib-devel |
ee308c4a JP |
26 | Requires: libdrm >= 2.4.67 |
27 | Requires: libusb >= 1.0.15 | |
f9511457 JP |
28 | Obsoletes: python-cyddc < 0.9.9 |
29 | Obsoletes: python3-cyddc < 0.9.9 | |
ee308c4a JP |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | ddcutil is a program for querying and changing monitor settings, such | |
34 | as brightness and color levels. | |
35 | ||
36 | ddcutil uses DDC/CI to communicate with monitors implementing MCCS | |
37 | (Monitor Control Command Set) over I2C. Normally, the video driver for | |
38 | the monitor exposes the I2C channel as devices named /dev/i2c-n. There | |
d7783ebb | 39 | is also support for monitors (such as Apple Cinema and Eizo |
ee308c4a JP |
40 | ColorEdge) that implement MCCS using a USB connection. |
41 | ||
42 | A particular use case for ddcutil is as part of color profile | |
43 | management. Monitor calibration is relative to the monitor color | |
44 | settings currently in effect, e.g. red gain. ddcutil allows color | |
45 | related settings to be saved at the time a monitor is calibrated, and | |
46 | then restored when the calibration is applied. | |
47 | ||
d7783ebb JB |
48 | %description -l pl.UTF-8 |
49 | ddcutil to program do odczytu i zmiany ustawień monitora, takich jak | |
50 | jasność i poziomy kolorów. | |
51 | ||
52 | ddcutil wykorzystuje DDC/CI do komunikacji z monitorami obsługującymi | |
53 | MCCS (Monitor Control Command Set) po I2C. Zwykle sterownik obrazu dla | |
54 | monitora udostępnia kanał I2C jako urządzenia o nazwie /dev/i2c-n. | |
55 | Jest także obsługa monitorów obsługujących MCCS po połączeniu USB (jak | |
56 | Apple Cinema czy Eizo ColorEdge). | |
57 | ||
58 | Szczególnym przypadkiem użycia ddcutil jest część zarządzania | |
59 | profilami kolorów. Kalibracja monitora jest względem obecnych ustawień | |
60 | kolorów monitora, np. współczynnika czerwieni. ddcutil pozwala na | |
61 | zapisanie ustawień związanych z kolorami w czasie kalibracji monitora, | |
62 | a następnie odtwarzanie ich przy aplikowaniu kalibracji. | |
63 | ||
ee308c4a JP |
64 | %package devel |
65 | Summary: ddcutil header files | |
d7783ebb | 66 | Summary(pl.UTF-8): Pliki nagłówkowe ddcutil |
ee308c4a JP |
67 | Group: X11/Development/Libraries |
68 | Requires: %{name} = %{version}-%{release} | |
69 | ||
70 | %description devel | |
71 | ddcutil header files. | |
72 | ||
d7783ebb JB |
73 | %description devel -l pl.UTF-8 |
74 | Pliki nagłówkowe ddcutil. | |
75 | ||
ee308c4a JP |
76 | %prep |
77 | %setup -q | |
78 | ||
79 | %build | |
80 | %{__libtoolize} | |
d7783ebb | 81 | %{__aclocal} -I m4 |
ee308c4a JP |
82 | %{__autoconf} |
83 | %{__autoheader} | |
84 | %{__automake} | |
85 | %configure \ | |
86 | --disable-silent-rules \ | |
87 | --enable-drm \ | |
88 | --enable-lib \ | |
89 | --enable-usb \ | |
90 | --enable-x11 | |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
d7783ebb | 97 | DESTDIR=$RPM_BUILD_ROOT \ |
d79efabf JP |
98 | resfiles= \ |
99 | rulesdir=/lib/udev/rules.d | |
d7783ebb JB |
100 | |
101 | # distribute "resfiles" over destinations | |
f9511457 | 102 | install -d $RPM_BUILD_ROOT/etc/{X11/xorg.conf.d,udev/rules.d} |
d7783ebb JB |
103 | # need customization if ever used |
104 | #cp -p data/etc/udev/rules.d/*.rules $RPM_BUILD_ROOT/etc/udev/rules.d | |
105 | # xorg-driver-* package? | |
106 | #cp -p data/etc/X11/xorg.conf.d/*.conf $RPM_BUILD_ROOT/etc/X11/xorg.conf.d | |
107 | ||
ee308c4a JP |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post -p /sbin/ldconfig | |
112 | %postun -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
d7783ebb | 116 | %doc AUTHORS NEWS.md README.md data/etc/udev/rules.d/*.rules data/etc/X11/xorg.conf.d/*.conf |
ee308c4a JP |
117 | %attr(755,root,root) %{_bindir}/ddcutil |
118 | %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.* | |
59381054 JP |
119 | %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.5 |
120 | /lib/udev/rules.d/60-ddcutil-i2c.rules | |
121 | /lib/udev/rules.d/60-ddcutil-usb.rules | |
122 | %{_prefix}/lib/modules-load.d/ddcutil.conf | |
ee308c4a | 123 | %{_mandir}/man1/ddcutil.1* |
ee308c4a JP |
124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libddcutil.so | |
128 | %{_includedir}/ddcutil*.h | |
129 | %{_pkgconfigdir}/ddcutil.pc | |
289d05eb | 130 | %dir %{_libdir}/cmake/ddcutil |
f9511457 | 131 | %{_libdir}/cmake/ddcutil/FindDDCUtil.cmake |