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