]> git.pld-linux.org Git - packages/ddcutil.git/blob - ddcutil.spec
up to 0.9.3
[packages/ddcutil.git] / ddcutil.spec
1 Summary:        Query and change Linux monitor settings using DDC/CI and USB
2 Name:           ddcutil
3 Version:        0.9.3
4 Release:        1
5 License:        GPL v2+
6 Group:          X11/Applications
7 Source0:        https://github.com/rockowitz/ddcutil/archive/v%{version}.tar.gz
8 # Source0-md5:  d676ec9ca9f6488fa5888bb39175f2d5
9 URL:            http://www.ddcutil.com/
10 BuildRequires:  autoconf >= 2.69
11 BuildRequires:  automake >= 1:1.11
12 BuildRequires:  libdrm-devel >= 2.4.67
13 BuildRequires:  libtool
14 BuildRequires:  libusb-devel >= 1.0.15
15 BuildRequires:  pkgconfig
16 BuildRequires:  xorg-lib-libXrandr-devel
17 Requires:       libdrm >= 2.4.67
18 Requires:       libusb >= 1.0.15
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ddcutil is a program for querying and changing monitor settings, such
23 as brightness and color levels.
24
25 ddcutil uses DDC/CI to communicate with monitors implementing MCCS
26 (Monitor Control Command Set) over I2C. Normally, the video driver for
27 the monitor exposes the I2C channel as devices named /dev/i2c-n. There
28 is also psupport for monitors (such as Apple Cinema and Eizo
29 ColorEdge) that implement MCCS using a USB connection.
30
31 A particular use case for ddcutil is as part of color profile
32 management. Monitor calibration is relative to the monitor color
33 settings currently in effect, e.g. red gain. ddcutil allows color
34 related settings to be saved at the time a monitor is calibrated, and
35 then restored when the calibration is applied.
36
37 %package devel
38 Summary:        ddcutil header files
39 Group:          X11/Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 ddcutil header files.
44
45 %prep
46 %setup -q
47
48 %build
49 %{__libtoolize}
50 %{__aclocal}
51 %{__autoconf}
52 %{__autoheader}
53 %{__automake}
54 %configure \
55         --disable-silent-rules \
56         --enable-drm \
57         --enable-lib \
58         --enable-usb \
59         --enable-x11
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
73
74 %files
75 %defattr(644,root,root,755)
76 %doc AUTHORS NEWS.md README.md
77 %attr(755,root,root) %{_bindir}/ddcutil
78 %attr(755,root,root) %{_libdir}/libddcutil.so.*.*.*
79 %attr(755,root,root) %ghost %{_libdir}/libddcutil.so.0
80 %{_mandir}/man1/ddcutil.1*
81 %dir %{_datadir}/%{name}
82 %dir %{_datadir}/%{name}/data
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libddcutil.so
87 %{_includedir}/ddcutil*.h
88 %{_pkgconfigdir}/ddcutil.pc
89 %{_datadir}/%{name}/data/FindDDCUtil.cmake
This page took 0.079757 seconds and 4 git commands to generate.