]> git.pld-linux.org Git - packages/ddcutil.git/blob - ddcutil.spec
up to 0.9.9
[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:        0.9.9
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications
8 #Source0Download: https://github.com/rockowitz/ddcutil/releases
9 #TODO: use named tarballs: https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz
10 Source0:        https://github.com/rockowitz/ddcutil/archive/v%{version}.tar.gz
11 # Source0-md5:  e11ea284f8dd950459657acdecf08476
12 URL:            http://www.ddcutil.com/
13 BuildRequires:  autoconf >= 2.69
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  glib2-devel >= 1:2.32
16 BuildRequires:  libdrm-devel >= 2.4.67
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  libusb-devel >= 1.0.15
19 BuildRequires:  pkgconfig
20 BuildRequires:  xorg-lib-libX11-devel
21 BuildRequires:  xorg-lib-libXrandr-devel
22 BuildRequires:  zlib-devel
23 Requires:       libdrm >= 2.4.67
24 Requires:       libusb >= 1.0.15
25 Obsoletes:      python-cyddc < 0.9.9
26 Obsoletes:      python3-cyddc < 0.9.9
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
36 is also support for monitors (such as Apple Cinema and Eizo
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
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
61 %package devel
62 Summary:        ddcutil header files
63 Summary(pl.UTF-8):      Pliki nagłówkowe ddcutil
64 Group:          X11/Development/Libraries
65 Requires:       %{name} = %{version}-%{release}
66 Requires:       glib2-devel >= 1:2.32
67 Requires:       xorg-lib-libX11-devel
68 Requires:       xorg-lib-libXrandr-devel
69
70 %description devel
71 ddcutil header files.
72
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe ddcutil.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 # no --enable-gobject-api: "GObject implementation has been mothballed. TODO: delete or comment out this section"
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 \
98         DESTDIR=$RPM_BUILD_ROOT \
99         resfiles=
100
101 # distribute "resfiles" over destinations
102 install -d $RPM_BUILD_ROOT/etc/{X11/xorg.conf.d,udev/rules.d}
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
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)
116 %doc AUTHORS NEWS.md README.md data/etc/udev/rules.d/*.rules data/etc/X11/xorg.conf.d/*.conf
117 %attr(755,root,root) %{_bindir}/ddcutil
118 %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.3
120 %{_mandir}/man1/ddcutil.1*
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
127 %{_libdir}/cmake/ddcutil/FindDDCUtil.cmake
This page took 0.058713 seconds and 3 git commands to generate.