]>
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 |
4ea0c039 | 4 | Version: 1.0.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 |
4ea0c039 | 10 | # Source0-md5: b48779ff4a06ede254ed657dc61af766 |
ee308c4a JP |
11 | URL: http://www.ddcutil.com/ |
12 | BuildRequires: autoconf >= 2.69 | |
13 | BuildRequires: automake >= 1:1.11 | |
d7783ebb | 14 | BuildRequires: glib2-devel >= 1:2.32 |
a83d27f8 | 15 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
ee308c4a | 16 | BuildRequires: libdrm-devel >= 2.4.67 |
d7783ebb | 17 | BuildRequires: libtool >= 2:2 |
ee308c4a JP |
18 | BuildRequires: libusb-devel >= 1.0.15 |
19 | BuildRequires: pkgconfig | |
a83d27f8 | 20 | BuildRequires: udev-devel |
d7783ebb | 21 | BuildRequires: xorg-lib-libX11-devel |
ee308c4a | 22 | BuildRequires: xorg-lib-libXrandr-devel |
d7783ebb | 23 | BuildRequires: zlib-devel |
ee308c4a JP |
24 | Requires: libdrm >= 2.4.67 |
25 | Requires: libusb >= 1.0.15 | |
f9511457 JP |
26 | Obsoletes: python-cyddc < 0.9.9 |
27 | Obsoletes: python3-cyddc < 0.9.9 | |
ee308c4a JP |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | ddcutil is a program for querying and changing monitor settings, such | |
32 | as brightness and color levels. | |
33 | ||
34 | ddcutil uses DDC/CI to communicate with monitors implementing MCCS | |
35 | (Monitor Control Command Set) over I2C. Normally, the video driver for | |
36 | the monitor exposes the I2C channel as devices named /dev/i2c-n. There | |
d7783ebb | 37 | is also support for monitors (such as Apple Cinema and Eizo |
ee308c4a JP |
38 | ColorEdge) that implement MCCS using a USB connection. |
39 | ||
40 | A particular use case for ddcutil is as part of color profile | |
41 | management. Monitor calibration is relative to the monitor color | |
42 | settings currently in effect, e.g. red gain. ddcutil allows color | |
43 | related settings to be saved at the time a monitor is calibrated, and | |
44 | then restored when the calibration is applied. | |
45 | ||
d7783ebb JB |
46 | %description -l pl.UTF-8 |
47 | ddcutil to program do odczytu i zmiany ustawień monitora, takich jak | |
48 | jasność i poziomy kolorów. | |
49 | ||
50 | ddcutil wykorzystuje DDC/CI do komunikacji z monitorami obsługującymi | |
51 | MCCS (Monitor Control Command Set) po I2C. Zwykle sterownik obrazu dla | |
52 | monitora udostępnia kanał I2C jako urządzenia o nazwie /dev/i2c-n. | |
53 | Jest także obsługa monitorów obsługujących MCCS po połączeniu USB (jak | |
54 | Apple Cinema czy Eizo ColorEdge). | |
55 | ||
56 | Szczególnym przypadkiem użycia ddcutil jest część zarządzania | |
57 | profilami kolorów. Kalibracja monitora jest względem obecnych ustawień | |
58 | kolorów monitora, np. współczynnika czerwieni. ddcutil pozwala na | |
59 | zapisanie ustawień związanych z kolorami w czasie kalibracji monitora, | |
60 | a następnie odtwarzanie ich przy aplikowaniu kalibracji. | |
61 | ||
ee308c4a JP |
62 | %package devel |
63 | Summary: ddcutil header files | |
d7783ebb | 64 | Summary(pl.UTF-8): Pliki nagłówkowe ddcutil |
ee308c4a JP |
65 | Group: X11/Development/Libraries |
66 | Requires: %{name} = %{version}-%{release} | |
d7783ebb JB |
67 | Requires: glib2-devel >= 1:2.32 |
68 | Requires: xorg-lib-libX11-devel | |
69 | Requires: xorg-lib-libXrandr-devel | |
ee308c4a JP |
70 | |
71 | %description devel | |
72 | ddcutil header files. | |
73 | ||
d7783ebb JB |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe ddcutil. | |
76 | ||
ee308c4a JP |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
d7783ebb | 82 | %{__aclocal} -I m4 |
ee308c4a JP |
83 | %{__autoconf} |
84 | %{__autoheader} | |
85 | %{__automake} | |
d7783ebb | 86 | # no --enable-gobject-api: "GObject implementation has been mothballed. TODO: delete or comment out this section" |
ee308c4a JP |
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 |