]> git.pld-linux.org Git - packages/ddcutil.git/blob - ddcutil.spec
up to 1.0.1
[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.0.1
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:  b48779ff4a06ede254ed657dc61af766
11 URL:            http://www.ddcutil.com/
12 BuildRequires:  autoconf >= 2.69
13 BuildRequires:  automake >= 1:1.11
14 BuildRequires:  glib2-devel >= 1:2.32
15 BuildRequires:  gobject-introspection-devel >= 1.30.0
16 BuildRequires:  libdrm-devel >= 2.4.67
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  libusb-devel >= 1.0.15
19 BuildRequires:  pkgconfig
20 BuildRequires:  udev-devel
21 BuildRequires:  xorg-lib-libX11-devel
22 BuildRequires:  xorg-lib-libXrandr-devel
23 BuildRequires:  zlib-devel
24 Requires:       libdrm >= 2.4.67
25 Requires:       libusb >= 1.0.15
26 Obsoletes:      python-cyddc < 0.9.9
27 Obsoletes:      python3-cyddc < 0.9.9
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
37 is also support for monitors (such as Apple Cinema and Eizo
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
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
62 %package devel
63 Summary:        ddcutil header files
64 Summary(pl.UTF-8):      Pliki nagłówkowe ddcutil
65 Group:          X11/Development/Libraries
66 Requires:       %{name} = %{version}-%{release}
67 Requires:       glib2-devel >= 1:2.32
68 Requires:       xorg-lib-libX11-devel
69 Requires:       xorg-lib-libXrandr-devel
70
71 %description devel
72 ddcutil header files.
73
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe ddcutil.
76
77 %prep
78 %setup -q
79
80 %build
81 %{__libtoolize}
82 %{__aclocal} -I m4
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 # no --enable-gobject-api: "GObject implementation has been mothballed. TODO: delete or comment out this section"
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.087516 seconds and 3 git commands to generate.