From 8514c4faafdad029d0db518e711d9f52be7565a8 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 23 Jun 2021 23:45:50 +0000 Subject: [PATCH] new --- seatd.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 seatd.spec diff --git a/seatd.spec b/seatd.spec new file mode 100644 index 0000000..97ae6d7 --- /dev/null +++ b/seatd.spec @@ -0,0 +1,95 @@ +Summary: Seat management daemon +Name: seatd +Version: 0.5.0 +Release: 1 +License: MIT +Group: Applications +Source0: https://git.sr.ht/~kennylevinsen/seatd/archive/%{version}.tar.gz +# Source0-md5: 264a36907f4be34efa400fb6e1b26f5f +URL: https://git.sr.ht/~kennylevinsen/seatd +BuildRequires: meson >= 0.56.0 +BuildRequires: ninja +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.736 +BuildRequires: scdoc >= 1.9.7 +BuildRequires: systemd-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +A seat management daemon, that does everything it needs to do. Nothing +more, nothing less. Depends only on libc. + +%package -n libseat +Summary: Seat management library +Group: Libraries + +%description -n libseat +A seat management library allowing applications to use whatever seat +management is available. + +Supports: +- seatd +- (e)logind +- embedded seatd for standalone operation + +Each backend can be compile-time included and is runtime auto-detected +or manually selected with the LIBSEAT_BACKEND environment variable. + +Which backend is in use is transparent to the application, providing a +simple common interface. + +%package -n libseat-devel +Summary: Header files for libseat library +Group: Development/Libraries +Requires: libseat = %{version}-%{release} +Requires: systemd-devel + +%description -n libseat-devel +Header files for libseat library. + +%package -n libseat-static +Summary: Static libseat library +Group: Development/Libraries +Requires: libseat-devel = %{version}-%{release} + +%description -n libseat-static +Static libseat library. + +%prep +%setup -q + +%build +%meson build \ + -Dlogind=enabled +%ninja_build -C build + +%install +rm -rf $RPM_BUILD_ROOT + +%ninja_install -C build + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -n libseat -p /sbin/ldconfig +%postun -n libseat -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{_bindir}/seatd +%{_mandir}/man1/seatd.1* + +%files -n libseat +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libseat.so.1 + +%files -n libseat-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libseat.so +%{_includedir}/libseat.h +%{_pkgconfigdir}/libseat.pc + +%files -n libseat-static +%defattr(644,root,root,755) +%{_libdir}/libseat.a -- 2.44.0