]> git.pld-linux.org Git - packages/ddcutil.git/blob - ddcutil.spec
up to 1.3.0
[packages/ddcutil.git] / ddcutil.spec
1 Summary:        Query and change Linux monitor settings using DDC/CI and USB
2 Summary(pl.UTF-8):      Odczyt i zmiana ustawień monitora spod Linuksa przy użyciu DDC/CI i USB
3 Name:           ddcutil
4 Version:        1.3.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 #Source0Download: https://github.com/rockowitz/ddcutil/releases
9 Source0:        https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  eee7b69263917992bd80340c318ddec9
11 URL:            http://www.ddcutil.com/
12 BuildRequires:  autoconf >= 2.69
13 BuildRequires:  automake >= 1:1.13
14 BuildRequires:  glib2-devel >= 1:2.40
15 BuildRequires:  kmod-devel
16 BuildRequires:  libdrm-devel >= 2.4.67
17 BuildRequires:  libi2c-devel
18 BuildRequires:  libtool >= 2:2
19 BuildRequires:  libusb-devel >= 1.0.15
20 BuildRequires:  pkgconfig
21 BuildRequires:  udev-devel
22 BuildRequires:  xorg-lib-libX11-devel
23 BuildRequires:  xorg-lib-libXrandr-devel
24 BuildRequires:  zlib-devel
25 Requires:       libdrm >= 2.4.67
26 Requires:       libusb >= 1.0.15
27 Obsoletes:      python-cyddc < 0.9.9
28 Obsoletes:      python3-cyddc < 0.9.9
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
38 is also support for monitors (such as Apple Cinema and Eizo
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
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
63 %package devel
64 Summary:        ddcutil header files
65 Summary(pl.UTF-8):      Pliki nagłówkowe ddcutil
66 Group:          X11/Development/Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Requires:       glib2-devel >= 1:2.40
69 Requires:       xorg-lib-libX11-devel
70 Requires:       xorg-lib-libXrandr-devel
71
72 %description devel
73 ddcutil header files.
74
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe ddcutil.
77
78 %prep
79 %setup -q
80
81 %build
82 %{__libtoolize}
83 %{__aclocal} -I m4
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 \
99         DESTDIR=$RPM_BUILD_ROOT \
100         resfiles=
101
102 # distribute "resfiles" over destinations
103 install -d $RPM_BUILD_ROOT/etc/{X11/xorg.conf.d,udev/rules.d}
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
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)
117 %doc AUTHORS NEWS.md README.md data/etc/udev/rules.d/*.rules data/etc/X11/xorg.conf.d/*.conf
118 %attr(755,root,root) %{_bindir}/ddcutil
119 %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.4
121 %{_mandir}/man1/ddcutil.1*
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
128 %dir %{_libdir}/cmake/ddcutil
129 %{_libdir}/cmake/ddcutil/FindDDCUtil.cmake
This page took 0.083946 seconds and 3 git commands to generate.