ddcutil/ddcutil.spec

137 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: ddcutil
Version: 2.1.4
Release: 1mamba
Summary: Query and change Linux monitor settings using DDC/CI and USB
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.ddcutil.com
Source: https://github.com/rockowitz/ddcutil.git/v%{version}/ddcutil-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdrm-devel
BuildRequires: libglib-devel
BuildRequires: libjansson-devel
BuildRequires: libudev-devel
BuildRequires: libusb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Query and change Linux monitor settings using DDC/CI and USB.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/ddcutil
%dir %{_datadir}/ddcutil
%dir %{_datadir}/ddcutil/data
%{_datadir}/ddcutil/data/*.conf
%{_datadir}/ddcutil/data/*.rules
%{_modulesloaddir}/ddcutil.conf
%{_udevrulesdir}/60-ddcutil-*.rules
%{_mandir}/man1/ddcutil.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libddcutil.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/ddcutil*.h
%{_libdir}/libddcutil.so
%{_libdir}/pkgconfig/ddcutil.pc
%dir %{_libdir}/cmake/ddcutil
%{_libdir}/cmake/ddcutil/FindDDCUtil.cmake
%doc README.md
%changelog
* Sat Feb 24 2024 Automatic Build System <autodist@openmamba.org> 2.1.4-1mamba
- automatic version update by autodist
* Wed Feb 07 2024 Automatic Build System <autodist@openmamba.org> 2.1.3-1mamba
- automatic version update by autodist
* Mon Jan 29 2024 Automatic Build System <autodist@openmamba.org> 2.1.2-1mamba
- automatic version update by autodist
* Sat Jan 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- apply upstream patches to fix crash with powerdevil
* Thu Jan 18 2024 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
- automatic version update by autodist
* Mon Oct 02 2023 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Sun Jan 22 2023 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic version update by autodist
* Mon Jul 25 2022 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
- automatic version update by autodist
* Sat Jan 29 2022 Automatic Build System <autodist@mambasoft.it> 1.2.2-1mamba
- automatic version update by autodist
* Tue Dec 07 2021 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic version update by autodist
* Fri Oct 22 2021 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
- automatic version update by autodist
* Fri Apr 09 2021 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Mon Feb 08 2021 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
- automatic version update by autodist
* Fri Feb 05 2021 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Fri Jun 26 2020 Automatic Build System <autodist@mambasoft.it> 0.9.9-1mamba
- automatic version update by autodist
* Fri Dec 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.8-1mamba
- package created using the webbuild interface