diff --git a/README.md b/README.md index ff09a10..2d10423 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ddcutil +Query and change Linux monitor settings using DDC/CI and USB. + diff --git a/ddcutil.spec b/ddcutil.spec new file mode 100644 index 0000000..890f823 --- /dev/null +++ b/ddcutil.spec @@ -0,0 +1,96 @@ +Name: ddcutil +Version: 0.9.8 +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 +URL: http://www.ddcutil.com +## GITSOURCE https://github.com/rockowitz/ddcutil.git v0.9.8 +Source: https://github.com/rockowitz/ddcutil.git/v%{version}/ddcutil-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXrandr-devel +BuildRequires: libXrender-devel +BuildRequires: libbsd-devel +BuildRequires: libdrm-devel +BuildRequires: libglib-devel +BuildRequires: libudev-devel +BuildRequires: libusb-devel +BuildRequires: libxcb-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Query and change Linux monitor settings using DDC/CI and USB. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%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 +./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 +%{_mandir}/man1/ddcutil.1* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libddcutil.so.* +%dir %{_datadir}/ddcutil +%dir %{_datadir}/ddcutil/data +%{_datadir}/ddcutil/data/*.conf +%{_datadir}/ddcutil/data/*.rules +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/ddcutil*.h +%{_libdir}/libddcutil.so +%{_libdir}/pkgconfig/ddcutil.pc +%{_datadir}/cmake/Modules/FindDDCUtil.cmake +%doc ChangeLog README.md + +%changelog +* Fri Dec 27 2019 Silvan Calarco 0.9.8-1mamba +- package created using the webbuild interface