]> git.pld-linux.org Git - packages/seatd.git/commitdiff
new
authorJan Palus <atler@pld-linux.org>
Wed, 23 Jun 2021 23:45:50 +0000 (23:45 +0000)
committerJan Palus <atler@pld-linux.org>
Wed, 23 Jun 2021 23:45:50 +0000 (23:45 +0000)
seatd.spec [new file with mode: 0644]

diff --git a/seatd.spec b/seatd.spec
new file mode 100644 (file)
index 0000000..97ae6d7
--- /dev/null
@@ -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
This page took 0.124643 seconds and 4 git commands to generate.