]> git.pld-linux.org Git - packages/seatd.git/blob - seatd.spec
up to 0.6.4
[packages/seatd.git] / seatd.spec
1 Summary:        Seat management daemon
2 Name:           seatd
3 Version:        0.6.4
4 Release:        1
5 License:        MIT
6 Group:          Applications
7 Source0:        https://git.sr.ht/~kennylevinsen/seatd/archive/%{version}.tar.gz
8 # Source0-md5:  114604a0b346a40157839d5c8c8b2ce2
9 Patch0:         x32.patch
10 URL:            https://git.sr.ht/~kennylevinsen/seatd
11 BuildRequires:  meson >= 0.56.0
12 BuildRequires:  ninja
13 BuildRequires:  pkgconfig
14 BuildRequires:  rpmbuild(macros) >= 1.736
15 BuildRequires:  scdoc >= 1.9.7
16 BuildRequires:  systemd-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A seat management daemon, that does everything it needs to do. Nothing
21 more, nothing less. Depends only on libc.
22
23 %package -n libseat
24 Summary:        Seat management library
25 Group:          Libraries
26
27 %description -n libseat
28 A seat management library allowing applications to use whatever seat
29 management is available.
30
31 Supports:
32 - seatd
33 - (e)logind
34 - embedded seatd for standalone operation
35
36 Each backend can be compile-time included and is runtime auto-detected
37 or manually selected with the LIBSEAT_BACKEND environment variable.
38
39 Which backend is in use is transparent to the application, providing a
40 simple common interface.
41
42 %package -n libseat-devel
43 Summary:        Header files for libseat library
44 Group:          Development/Libraries
45 Requires:       libseat = %{version}-%{release}
46 Requires:       systemd-devel
47
48 %description -n libseat-devel
49 Header files for libseat library.
50
51 %package -n libseat-static
52 Summary:        Static libseat library
53 Group:          Development/Libraries
54 Requires:       libseat-devel = %{version}-%{release}
55
56 %description -n libseat-static
57 Static libseat library.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62
63 %build
64 %meson build \
65         -Dlibseat-logind=systemd
66 %ninja_build -C build
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %ninja_install -C build
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -n libseat -p /sbin/ldconfig
77 %postun -n libseat -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc README.md
82 %attr(755,root,root) %{_bindir}/seatd
83 %attr(755,root,root) %{_bindir}/seatd-launch
84 %{_mandir}/man1/seatd.1*
85 %{_mandir}/man1/seatd-launch.1*
86
87 %files -n libseat
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libseat.so.1
90
91 %files -n libseat-devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libseat.so
94 %{_includedir}/libseat.h
95 %{_pkgconfigdir}/libseat.pc
96
97 %files -n libseat-static
98 %defattr(644,root,root,755)
99 %{_libdir}/libseat.a
This page took 0.09785 seconds and 3 git commands to generate.