]>
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 |
16257431 | 4 | Version: 1.3.0 |
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 |
16257431 | 10 | # Source0-md5: eee7b69263917992bd80340c318ddec9 |
ee308c4a JP |
11 | URL: http://www.ddcutil.com/ |
12 | BuildRequires: autoconf >= 2.69 | |
37a19fde | 13 | BuildRequires: automake >= 1:1.13 |
16257431 | 14 | BuildRequires: glib2-devel >= 1:2.40 |
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} | |
16257431 | 68 | Requires: glib2-devel >= 1:2.40 |
d7783ebb JB |
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} | |
87 | %configure \ | |
88 | --disable-silent-rules \ | |
89 | --enable-drm \ | |
90 | --enable-lib \ | |
91 | --enable-usb \ | |
92 | --enable-x11 | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
d7783ebb JB |
99 | DESTDIR=$RPM_BUILD_ROOT \ |
100 | resfiles= | |
101 | ||
102 | # distribute "resfiles" over destinations | |
f9511457 | 103 | install -d $RPM_BUILD_ROOT/etc/{X11/xorg.conf.d,udev/rules.d} |
d7783ebb JB |
104 | # need customization if ever used |
105 | #cp -p data/etc/udev/rules.d/*.rules $RPM_BUILD_ROOT/etc/udev/rules.d | |
106 | # xorg-driver-* package? | |
107 | #cp -p data/etc/X11/xorg.conf.d/*.conf $RPM_BUILD_ROOT/etc/X11/xorg.conf.d | |
108 | ||
ee308c4a JP |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
d7783ebb | 117 | %doc AUTHORS NEWS.md README.md data/etc/udev/rules.d/*.rules data/etc/X11/xorg.conf.d/*.conf |
ee308c4a JP |
118 | %attr(755,root,root) %{_bindir}/ddcutil |
119 | %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.* | |
a83d27f8 | 120 | %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.4 |
ee308c4a | 121 | %{_mandir}/man1/ddcutil.1* |
ee308c4a JP |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_libdir}/libddcutil.so | |
126 | %{_includedir}/ddcutil*.h | |
127 | %{_pkgconfigdir}/ddcutil.pc | |
289d05eb | 128 | %dir %{_libdir}/cmake/ddcutil |
f9511457 | 129 | %{_libdir}/cmake/ddcutil/FindDDCUtil.cmake |