## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without build_lib Name: ddcutil Version: 2.1.4 Release: %autorelease Summary: Query and update monitor settings # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: http://www.ddcutil.com Source0: https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz # Excluding arch s390/s390x due to i2c-tools does so ExcludeArch: s390 s390x BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(glib-2.0) >= 2.40 BuildRequires: pkgconfig(libusb-1.0) >= 1.0.15 BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(libdrm) >= 2.4.67 BuildRequires: pkgconfig(libkmod) BuildRequires: pkgconfig(jansson) >= 2.0 Requires: hwdata Requires: i2c-tools # file that may be used at runtime Recommends: /usr/bin/lsusb Recommends: /usr/bin/modprobe Recommends: pkg-config Recommends: /usr/bin/lscpu Recommends: /usr/bin/lsb_release Recommends: xrandr %description Query and change monitor settings ddcutil communicates with monitors implementing MCCS (Monitor Control Command Set), using either the DDC/CI protocol on the I2C bus or as a Human Interface Device on USB. In general, anything that can be controlled using a monitor's on-screen display can be controlled by this program. Examples include changing a monitor's input source and adjusting its brightness. # libddcutil can be installed separately %if %{with build_lib} %package -n libddcutil Summary: Shared library to query and update monitor settings %description -n libddcutil Shared library version of ddcutil, exposing a C API. %package -n libddcutil-devel Summary: Development files for libddcutil # FindDDCUtils.cmake has BSD license header License: GPLv2+ and BSD Requires: libddcutil%{?_isa} = %{version}-%{release} Requires: cmake-filesystem%{?_isa} %description -n libddcutil-devel Development files for libddcutil %endif %prep %setup -q %build NOCONFIGURE=1 ./autogen.sh %configure \ %if %{with build_lib} --enable-lib=yes %else --enable-lib=no %endif %make_build %install %make_install %files %doc AUTHORS NEWS.md README.md CHANGELOG.md %license COPYING %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1.* %{_udevrulesdir}/60-ddcutil-i2c.rules %{_udevrulesdir}/60-ddcutil-usb.rules %{_modulesloaddir}/ddcutil.conf %if %{with build_lib} %files -n libddcutil %doc AUTHORS NEWS.md README.md CHANGELOG.md %license COPYING %{_libdir}/lib%{name}.so.5* %files -n libddcutil-devel %{_libdir}/lib%{name}.so %{_includedir}/%{name}*.h %{_libdir}/cmake/%{name} %{_libdir}/pkgconfig/%{name}.pc %endif %changelog ## START: Generated by rpmautospec * Sat Nov 30 2024 Qiyu Yan - 2.1.4-1 - update to version 2.1.4 * Thu Jul 25 2024 Miroslav Suchý - 2.1.2-3 - convert GPLv2+ license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jan 28 2024 Qiyu Yan - 2.1.2-1 - update to 2.1.2 upstream release * Wed Jan 24 2024 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Sep 29 2023 Qiyu Yan - 2.0.0-1 - Update to 2.0.0 upstream release * Wed Jul 19 2023 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Feb 28 2023 Qiyu Yan - 1.4.1-1 - update to 1.4.1 * Thu Jan 19 2023 Fedora Release Engineering - 0.9.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.9.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.9.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.9.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.9.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 10 18:38:55 CST 2020 Qiyu Yan - 0.9.9-3 - Change to review suggestions * Wed Dec 2 21:56:57 CST 2020 Qiyu Yan - 0.9.9-2 - Change to review suggestions * Thu Sep 17 2020 Qiyu Yan - 0.9.9-1 - Initial Package ## END: Generated by rpmautospec