diff --git a/README.md b/README.md index 0257e41..6d88f34 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libdisplay-info +EDID and DisplayID library. + diff --git a/libdisplay-info.spec b/libdisplay-info.spec new file mode 100644 index 0000000..03f92a0 --- /dev/null +++ b/libdisplay-info.spec @@ -0,0 +1,74 @@ +Name: libdisplay-info +Version: 0.1.1 +Release: 1mamba +Summary: EDID and DisplayID library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.freedesktop.org/emersion/libdisplay-info +Source: https://gitlab.freedesktop.org/emersion/libdisplay-info.git/%{version}/libdisplay-info-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: meson + +%description +EDID and DisplayID library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libdisplay-info.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libdisplay-info +%{_includedir}/libdisplay-info/*.h +%{_libdir}/libdisplay-info.so +%{_libdir}/pkgconfig/libdisplay-info.pc +%doc README.md + +%files tools +%defattr(-,root,root) +%{_bindir}/di-edid-decode + +%changelog +* Thu Feb 01 2024 Silvan Calarco 0.1.1-1mamba +- package created using the webbuild interface