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