[12012] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[12000] | 3 | Name: elogind |
---|
| 4 | Summary: The systemd project's "logind", extracted to a standalone package |
---|
| 5 | Summary(ja): systemdプロジェクトのlogindを単独で動作するようにしたソフトウェア |
---|
[12528] | 6 | Version: 246.9.2 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Group: system |
---|
[12000] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | Packager: tomop |
---|
| 12 | |
---|
[12528] | 13 | License: GPL2/LGPL2.1 |
---|
| 14 | URL: https://wiki.gentoo.org/wiki/Elogind |
---|
| 15 | |
---|
[12121] | 16 | Source0: https://github.com/elogind/elogind/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
| 17 | Source1: elogind.init |
---|
[12000] | 18 | |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | |
---|
| 21 | Requires: util-linux |
---|
| 22 | Requires: polkit |
---|
| 23 | Requires: dbus |
---|
[12005] | 24 | Requires: elogind-libs = %{version}-%{release} |
---|
[12000] | 25 | |
---|
| 26 | BuildRequires: meson |
---|
| 27 | BuildRequires: ninja |
---|
| 28 | BuildRequires: gperf |
---|
[12074] | 29 | BuildRequires: audit-libs-devel |
---|
[12000] | 30 | BuildRequires: libacl-devel |
---|
| 31 | BuildRequires: libblkid-devel |
---|
| 32 | BuildRequires: libcap-devel |
---|
| 33 | BuildRequires: libmount-devel |
---|
[12074] | 34 | BuildRequires: libxcrypt-devel |
---|
| 35 | BuildRequires: dbus-devel |
---|
[12000] | 36 | BuildRequires: eudev-libudev-devel |
---|
[12074] | 37 | BuildRequires: glib2-devel |
---|
[12000] | 38 | BuildRequires: pam-devel |
---|
| 39 | BuildRequires: pkgconfig |
---|
| 40 | BuildRequires: python3-devel |
---|
[12005] | 41 | BuildRequires: libxslt |
---|
| 42 | BuildRequires: docbook-style-xsl |
---|
[12000] | 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 | |
---|
[12528] | 52 | |
---|
[12005] | 53 | %package libs |
---|
| 54 | Summary: shared libraries for elogind |
---|
| 55 | Summary(ja): eloginのための共有ライブラリファイル |
---|
[12528] | 56 | Group: system |
---|
[12005] | 57 | |
---|
| 58 | %description libs |
---|
| 59 | This package contains shared libraries for elogind |
---|
| 60 | |
---|
| 61 | %description libs -l ja |
---|
| 62 | このパッケージにはeloginを用いた開発のための共有ライブラリファイル |
---|
| 63 | が含まれています。 |
---|
| 64 | |
---|
[12528] | 65 | |
---|
[12000] | 66 | %package devel |
---|
| 67 | Summary: headers and libraries for elogind |
---|
| 68 | Summary(ja): eloginを用いた開発のためのヘッダ・ライブラリファイル |
---|
[12528] | 69 | Group: programming |
---|
[12005] | 70 | Requires: elogind-libs = %{version}-%{release} |
---|
[12000] | 71 | |
---|
| 72 | %description devel |
---|
| 73 | This package contains headers and libraries for elogind |
---|
| 74 | |
---|
| 75 | %description devel -l ja |
---|
| 76 | このパッケージにはeloginを用いた開発のためのヘッダ・ライブラリファイル |
---|
| 77 | が含まれています。 |
---|
| 78 | |
---|
[12528] | 79 | |
---|
[12012] | 80 | %package -n compat32-elogind-libs |
---|
| 81 | Summary: shared libraries for elogind |
---|
| 82 | Summary(ja): eloginのための共有ライブラリファイル |
---|
[12528] | 83 | Group: system |
---|
[12012] | 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 | |
---|
[12528] | 93 | %debug_package |
---|
| 94 | |
---|
| 95 | |
---|
[12000] | 96 | %prep |
---|
| 97 | %autosetup -p1 |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %build |
---|
| 101 | export LANG=ja_JP.UTF-8 |
---|
[12528] | 102 | %meson \ |
---|
| 103 | -Dman=true |
---|
[12000] | 104 | %meson_build |
---|
| 105 | |
---|
[12528] | 106 | |
---|
[12000] | 107 | %install |
---|
| 108 | export LANG=ja_JP.UTF-8 |
---|
| 109 | %{__rm} -rf %{buildroot} |
---|
| 110 | %meson_install |
---|
| 111 | |
---|
[12121] | 112 | install -m755 -d %{buildroot}%{_initdir} |
---|
| 113 | install -m755 %{SOURCE1} %{buildroot}%{_initdir}/%{name} |
---|
[12000] | 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 | |
---|
[12528] | 123 | |
---|
[12000] | 124 | %check |
---|
| 125 | export LANG=ja_JP.UTF-8 |
---|
| 126 | %meson_test |
---|
| 127 | |
---|
[12528] | 128 | |
---|
[12000] | 129 | %clean |
---|
| 130 | %{__rm} -rf %{buildroot} |
---|
| 131 | |
---|
| 132 | |
---|
[12528] | 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 | |
---|
[12121] | 141 | %post |
---|
| 142 | /sbin/chkconfig --add elogind |
---|
[12528] | 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 |
---|
[12121] | 151 | |
---|
| 152 | %preun |
---|
| 153 | if [ $1 -eq 0 ]; then |
---|
| 154 | /sbin/chkconfig elogind off |
---|
| 155 | /sbin/chkconfig --add elogind |
---|
| 156 | fi |
---|
| 157 | |
---|
[12528] | 158 | %post libs -p /sbin/ldconfig |
---|
| 159 | %postun libs -p /sbin/ldconfig |
---|
[12000] | 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 |
---|
[12121] | 168 | %{_initdir}/elogind |
---|
[12000] | 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/* |
---|
[12005] | 182 | %{_mandir}/man1/* |
---|
| 183 | %{_mandir}/man5/* |
---|
| 184 | %{_mandir}/man7/* |
---|
| 185 | %{_mandir}/man8/* |
---|
[12000] | 186 | |
---|
[12005] | 187 | %files libs |
---|
| 188 | /%{_lib}/*.so.* |
---|
| 189 | |
---|
[12000] | 190 | %files devel |
---|
| 191 | %defattr(-,root,root) |
---|
| 192 | %{_libdir}/libelogind.so |
---|
| 193 | %{_includedir}/elogind |
---|
| 194 | %{_libdir}/pkgconfig/libelogind.pc |
---|
[12005] | 195 | %{_mandir}/man3/* |
---|
[12000] | 196 | |
---|
[12012] | 197 | %if %{build_compat32} |
---|
| 198 | %files -n compat32-elogind-libs |
---|
| 199 | /%{_lib}/*.so.* |
---|
| 200 | %endif |
---|
| 201 | |
---|
| 202 | |
---|
[12000] | 203 | %changelog |
---|
[12528] | 204 | * Sat Feb 13 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 246.9.2-1 |
---|
| 205 | - new upstream release. |
---|
| 206 | - updated Source1. |
---|
| 207 | |
---|
[12121] | 208 | * Sat May 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 241.3-2 |
---|
| 209 | - added a initscript. |
---|
| 210 | |
---|
[12074] | 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 | |
---|
[12012] | 220 | * Sun Jan 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-3 |
---|
| 221 | - added compat32-elogind-libs. |
---|
| 222 | |
---|
[12005] | 223 | * Wed Jan 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-2 |
---|
| 224 | - separated libs. |
---|
| 225 | - built manuals. |
---|
| 226 | |
---|
[12000] | 227 | * Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-1 |
---|
| 228 | - initial build for Vine Linux. |
---|