1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: elogind |
---|
4 | Summary: The systemd project's "logind", extracted to a standalone package |
---|
5 | Summary(ja): systemdプロジェクトのlogindを単独で動作するようにしたソフトウェア |
---|
6 | Version: 246.9.2 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: system |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | Packager: tomop |
---|
12 | |
---|
13 | License: GPL2/LGPL2.1 |
---|
14 | URL: https://wiki.gentoo.org/wiki/Elogind |
---|
15 | |
---|
16 | Source0: https://github.com/elogind/elogind/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
17 | Source1: elogind.init |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | |
---|
21 | Requires: util-linux |
---|
22 | Requires: polkit |
---|
23 | Requires: dbus |
---|
24 | Requires: elogind-libs = %{version}-%{release} |
---|
25 | |
---|
26 | BuildRequires: meson |
---|
27 | BuildRequires: ninja |
---|
28 | BuildRequires: gperf |
---|
29 | BuildRequires: audit-libs-devel |
---|
30 | BuildRequires: libacl-devel |
---|
31 | BuildRequires: libblkid-devel |
---|
32 | BuildRequires: libcap-devel |
---|
33 | BuildRequires: libmount-devel |
---|
34 | BuildRequires: libxcrypt-devel |
---|
35 | BuildRequires: dbus-devel |
---|
36 | BuildRequires: eudev-libudev-devel |
---|
37 | BuildRequires: glib2-devel |
---|
38 | BuildRequires: pam-devel |
---|
39 | BuildRequires: pkgconfig |
---|
40 | BuildRequires: python3-devel |
---|
41 | BuildRequires: libxslt |
---|
42 | BuildRequires: docbook-style-xsl |
---|
43 | |
---|
44 | %description |
---|
45 | elogind is the systemd project's logind, extracted to a standalone package. It's designed for users who prefer a non-systemd init system, but still want to use popular software such as KDE/Wayland or GNOME that otherwise hard-depends on systemd. |
---|
46 | |
---|
47 | %description -l ja |
---|
48 | eloginは、systemdプロジェクトのlogindを単体で抽出したものです。これは |
---|
49 | systemdを利用していないシステム上で、KDE、Wayland、GNOMEのようにsystemd |
---|
50 | に強く依存しているソフトウェアを使用したいユーザのために設計されています。 |
---|
51 | |
---|
52 | |
---|
53 | %package libs |
---|
54 | Summary: shared libraries for elogind |
---|
55 | Summary(ja): eloginのための共有ライブラリファイル |
---|
56 | Group: system |
---|
57 | |
---|
58 | %description libs |
---|
59 | This package contains shared libraries for elogind |
---|
60 | |
---|
61 | %description libs -l ja |
---|
62 | このパッケージにはeloginを用いた開発のための共有ライブラリファイル |
---|
63 | が含まれています。 |
---|
64 | |
---|
65 | |
---|
66 | %package devel |
---|
67 | Summary: headers and libraries for elogind |
---|
68 | Summary(ja): eloginを用いた開発のためのヘッダ・ライブラリファイル |
---|
69 | Group: programming |
---|
70 | Requires: elogind-libs = %{version}-%{release} |
---|
71 | |
---|
72 | %description devel |
---|
73 | This package contains headers and libraries for elogind |
---|
74 | |
---|
75 | %description devel -l ja |
---|
76 | このパッケージにはeloginを用いた開発のためのヘッダ・ライブラリファイル |
---|
77 | が含まれています。 |
---|
78 | |
---|
79 | |
---|
80 | %package -n compat32-elogind-libs |
---|
81 | Summary: shared libraries for elogind |
---|
82 | Summary(ja): eloginのための共有ライブラリファイル |
---|
83 | Group: system |
---|
84 | |
---|
85 | %description -n compat32-elogind-libs |
---|
86 | This package contains shared libraries for elogind |
---|
87 | |
---|
88 | %description -n compat32-elogind-libs -l ja |
---|
89 | このパッケージにはeloginを用いた開発のための共有ライブラリファイル |
---|
90 | が含まれています。 |
---|
91 | |
---|
92 | |
---|
93 | %debug_package |
---|
94 | |
---|
95 | |
---|
96 | %prep |
---|
97 | %autosetup -p1 |
---|
98 | |
---|
99 | |
---|
100 | %build |
---|
101 | export LANG=ja_JP.UTF-8 |
---|
102 | %meson \ |
---|
103 | -Dman=true |
---|
104 | %meson_build |
---|
105 | |
---|
106 | |
---|
107 | %install |
---|
108 | export LANG=ja_JP.UTF-8 |
---|
109 | %{__rm} -rf %{buildroot} |
---|
110 | %meson_install |
---|
111 | |
---|
112 | install -m755 -d %{buildroot}%{_initdir} |
---|
113 | install -m755 %{SOURCE1} %{buildroot}%{_initdir}/%{name} |
---|
114 | |
---|
115 | rm -f %{buildroot}/%{_lib}/libelogind.so |
---|
116 | ln -s ../../%{_lib}/libelogind.so.0 %{buildroot}%{_libdir}/libelogind.so |
---|
117 | perl -pi -e 's|^libdir=.*$|libdir=%{_libdir}|' %{buildroot}%{_libdir}/pkgconfig/libelogind.pc |
---|
118 | |
---|
119 | rm -rf %{buildroot}%{_datadir}/factory |
---|
120 | |
---|
121 | %find_lang %{name} |
---|
122 | |
---|
123 | |
---|
124 | %check |
---|
125 | export LANG=ja_JP.UTF-8 |
---|
126 | %meson_test |
---|
127 | |
---|
128 | |
---|
129 | %clean |
---|
130 | %{__rm} -rf %{buildroot} |
---|
131 | |
---|
132 | |
---|
133 | %pre |
---|
134 | if [ $1 -gt 1 ]; then |
---|
135 | if [ -e /etc/rc2.d/S03elogind ]; then |
---|
136 | /sbin/chkconfig elogind off |
---|
137 | touch /tmp/chkconfig-elogind-on |
---|
138 | fi |
---|
139 | fi |
---|
140 | |
---|
141 | %post |
---|
142 | /sbin/chkconfig --add elogind |
---|
143 | if [ $1 -eq 1 ]; then |
---|
144 | /sbin/chkconfig elogind on |
---|
145 | else |
---|
146 | if [ -e /tmp/chkconfig-elogind-on ]; then |
---|
147 | /sbin/chkconfig elogind on |
---|
148 | rm -f /tmp/chkconfig-elogind-on |
---|
149 | fi |
---|
150 | fi |
---|
151 | |
---|
152 | %preun |
---|
153 | if [ $1 -eq 0 ]; then |
---|
154 | /sbin/chkconfig elogind off |
---|
155 | /sbin/chkconfig --add elogind |
---|
156 | fi |
---|
157 | |
---|
158 | %post libs -p /sbin/ldconfig |
---|
159 | %postun libs -p /sbin/ldconfig |
---|
160 | |
---|
161 | |
---|
162 | %files -f %{name}.lang |
---|
163 | %defattr(-,root,root) |
---|
164 | %license LICENSE* |
---|
165 | %doc NEWS README |
---|
166 | %config(noreplace) %{_sysconfdir}/elogind/logind.conf |
---|
167 | %config(noreplace) %{_sysconfdir}/pam.d/elogind-user |
---|
168 | %{_initdir}/elogind |
---|
169 | /bin/* |
---|
170 | %{_bindir}/* |
---|
171 | /lib/elogind |
---|
172 | /lib/udev/rules.d/* |
---|
173 | /%{_lib}/security/* |
---|
174 | %{_datadir}/dbus-1/system-services/* |
---|
175 | %{_datadir}/dbus-1/system.d/* |
---|
176 | %{_datadir}/polkit-1/actions/* |
---|
177 | %dir %{_datadir}/zsh |
---|
178 | %{_datadir}/zsh/site-functions/* |
---|
179 | %dir %{_datadir}/bash-completion |
---|
180 | %dir %{_datadir}/bash-completion/completions |
---|
181 | %{_datadir}/bash-completion/completions/* |
---|
182 | %{_mandir}/man1/* |
---|
183 | %{_mandir}/man5/* |
---|
184 | %{_mandir}/man7/* |
---|
185 | %{_mandir}/man8/* |
---|
186 | |
---|
187 | %files libs |
---|
188 | /%{_lib}/*.so.* |
---|
189 | |
---|
190 | %files devel |
---|
191 | %defattr(-,root,root) |
---|
192 | %{_libdir}/libelogind.so |
---|
193 | %{_includedir}/elogind |
---|
194 | %{_libdir}/pkgconfig/libelogind.pc |
---|
195 | %{_mandir}/man3/* |
---|
196 | |
---|
197 | %if %{build_compat32} |
---|
198 | %files -n compat32-elogind-libs |
---|
199 | /%{_lib}/*.so.* |
---|
200 | %endif |
---|
201 | |
---|
202 | |
---|
203 | %changelog |
---|
204 | * Sat Feb 13 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 246.9.2-1 |
---|
205 | - new upstream release. |
---|
206 | - updated Source1. |
---|
207 | |
---|
208 | * Sat May 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 241.3-2 |
---|
209 | - added a initscript. |
---|
210 | |
---|
211 | * Fri May 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 241.3-1 |
---|
212 | - new upstream release. |
---|
213 | - dropped Patch0: fixed in upstream. |
---|
214 | - added BR:libxcrypt-devel. |
---|
215 | - fixed %%post and %%postun scripts. |
---|
216 | - added BR:audit-libs-devel. |
---|
217 | - added BR:dbus-devel. |
---|
218 | - added BR:glib2-devel. |
---|
219 | |
---|
220 | * Sun Jan 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-3 |
---|
221 | - added compat32-elogind-libs. |
---|
222 | |
---|
223 | * Wed Jan 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-2 |
---|
224 | - separated libs. |
---|
225 | - built manuals. |
---|
226 | |
---|
227 | * Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-1 |
---|
228 | - initial build for Vine Linux. |
---|