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