]>
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 |
f9511457 | 4 | Version: 0.9.9 |
6ed62b85 | 5 | Release: 1 |
ee308c4a JP |
6 | License: GPL v2+ |
7 | Group: X11/Applications | |
d7783ebb | 8 | #Source0Download: https://github.com/rockowitz/ddcutil/releases |
4ea8e712 | 9 | #TODO: use named tarballs: https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz |
ee308c4a | 10 | Source0: https://github.com/rockowitz/ddcutil/archive/v%{version}.tar.gz |
f9511457 | 11 | # Source0-md5: e11ea284f8dd950459657acdecf08476 |
ee308c4a JP |
12 | URL: http://www.ddcutil.com/ |
13 | BuildRequires: autoconf >= 2.69 | |
14 | BuildRequires: automake >= 1:1.11 | |
d7783ebb | 15 | BuildRequires: glib2-devel >= 1:2.32 |
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 | |
d7783ebb | 20 | BuildRequires: xorg-lib-libX11-devel |
ee308c4a | 21 | BuildRequires: xorg-lib-libXrandr-devel |
d7783ebb | 22 | BuildRequires: zlib-devel |
ee308c4a JP |
23 | Requires: libdrm >= 2.4.67 |
24 | Requires: libusb >= 1.0.15 | |
f9511457 JP |
25 | Obsoletes: python-cyddc < 0.9.9 |
26 | Obsoletes: python3-cyddc < 0.9.9 | |
ee308c4a JP |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | ddcutil is a program for querying and changing monitor settings, such | |
31 | as brightness and color levels. | |
32 | ||
33 | ddcutil uses DDC/CI to communicate with monitors implementing MCCS | |
34 | (Monitor Control Command Set) over I2C. Normally, the video driver for | |
35 | the monitor exposes the I2C channel as devices named /dev/i2c-n. There | |
d7783ebb | 36 | is also support for monitors (such as Apple Cinema and Eizo |
ee308c4a JP |
37 | ColorEdge) that implement MCCS using a USB connection. |
38 | ||
39 | A particular use case for ddcutil is as part of color profile | |
40 | management. Monitor calibration is relative to the monitor color | |
41 | settings currently in effect, e.g. red gain. ddcutil allows color | |
42 | related settings to be saved at the time a monitor is calibrated, and | |
43 | then restored when the calibration is applied. | |
44 | ||
d7783ebb JB |
45 | %description -l pl.UTF-8 |
46 | ddcutil to program do odczytu i zmiany ustawień monitora, takich jak | |
47 | jasność i poziomy kolorów. | |
48 | ||
49 | ddcutil wykorzystuje DDC/CI do komunikacji z monitorami obsługującymi | |
50 | MCCS (Monitor Control Command Set) po I2C. Zwykle sterownik obrazu dla | |
51 | monitora udostępnia kanał I2C jako urządzenia o nazwie /dev/i2c-n. | |
52 | Jest także obsługa monitorów obsługujących MCCS po połączeniu USB (jak | |
53 | Apple Cinema czy Eizo ColorEdge). | |
54 | ||
55 | Szczególnym przypadkiem użycia ddcutil jest część zarządzania | |
56 | profilami kolorów. Kalibracja monitora jest względem obecnych ustawień | |
57 | kolorów monitora, np. współczynnika czerwieni. ddcutil pozwala na | |
58 | zapisanie ustawień związanych z kolorami w czasie kalibracji monitora, | |
59 | a następnie odtwarzanie ich przy aplikowaniu kalibracji. | |
60 | ||
ee308c4a JP |
61 | %package devel |
62 | Summary: ddcutil header files | |
d7783ebb | 63 | Summary(pl.UTF-8): Pliki nagłówkowe ddcutil |
ee308c4a JP |
64 | Group: X11/Development/Libraries |
65 | Requires: %{name} = %{version}-%{release} | |
d7783ebb JB |
66 | Requires: glib2-devel >= 1:2.32 |
67 | Requires: xorg-lib-libX11-devel | |
68 | Requires: xorg-lib-libXrandr-devel | |
ee308c4a JP |
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} | |
d7783ebb | 85 | # no --enable-gobject-api: "GObject implementation has been mothballed. TODO: delete or comment out this section" |
ee308c4a JP |
86 | %configure \ |
87 | --disable-silent-rules \ | |
88 | --enable-drm \ | |
89 | --enable-lib \ | |
90 | --enable-usb \ | |
91 | --enable-x11 | |
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
d7783ebb JB |
98 | DESTDIR=$RPM_BUILD_ROOT \ |
99 | resfiles= | |
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.*.*.* | |
f9511457 | 119 | %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.3 |
ee308c4a | 120 | %{_mandir}/man1/ddcutil.1* |
ee308c4a JP |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libddcutil.so | |
125 | %{_includedir}/ddcutil*.h | |
126 | %{_pkgconfigdir}/ddcutil.pc | |
f9511457 | 127 | %{_libdir}/cmake/ddcutil/FindDDCUtil.cmake |