1 | %bcond_with systemd |
---|
2 | |
---|
3 | %define _unpackaged_files_terminate_build 1 |
---|
4 | %global __global_cflags %{optflags} |
---|
5 | %global __global_ldflags "" |
---|
6 | |
---|
7 | Summary: D-Bus interfaces for querying and manipulating user account information |
---|
8 | Summary(ja): ユーザーアカウント情報の照会・処理を行うための D-Bus I/F |
---|
9 | Name: accountsservice |
---|
10 | Version: 0.6.55 |
---|
11 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | |
---|
15 | Group: System Environment/Daemons |
---|
16 | License: GPLv3+ |
---|
17 | URL: https://www.freedesktop.org/wiki/Software/AccountsService/ |
---|
18 | #VCS: git:git://git.freedesktop.org/accountsservice |
---|
19 | Source0: https://www.freedesktop.org/software/accountsservice/accountsservice-%{version}.tar.xz |
---|
20 | |
---|
21 | # upstream patch |
---|
22 | |
---|
23 | # for Vine Linux |
---|
24 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
26 | BuildRequires: meson |
---|
27 | BuildRequires: glib2-devel |
---|
28 | BuildRequires: dbus-glib-devel |
---|
29 | BuildRequires: polkit-devel |
---|
30 | BuildRequires: intltool |
---|
31 | # BuildRequires: systemd-units |
---|
32 | BuildRequires: gobject-introspection-devel |
---|
33 | BuildRequires: python3-setuptools |
---|
34 | %if %{with systemd} |
---|
35 | BuildRequires: systemd-devel |
---|
36 | %{?systemd_requires} |
---|
37 | %else |
---|
38 | BuildRequires: elogind-devel |
---|
39 | %endif |
---|
40 | |
---|
41 | Requires: polkit |
---|
42 | Requires: shadow-utils |
---|
43 | |
---|
44 | |
---|
45 | %description |
---|
46 | The accountsservice project provides a set of D-Bus interfaces for |
---|
47 | querying and manipulating user account information and an implementation |
---|
48 | of these interfaces, based on the useradd, usermod and userdel commands. |
---|
49 | |
---|
50 | |
---|
51 | %package libs |
---|
52 | Summary: Client-side library to talk to accountsservice |
---|
53 | Summary(ja): accountsservice と対話するためのクライアント側ライブラリ |
---|
54 | Group: System Environment/Libraries |
---|
55 | Requires: %{name} = %{version}-%{release} |
---|
56 | |
---|
57 | %description libs |
---|
58 | The accountsservice-libs package contains a library that can |
---|
59 | be used by applications that want to interact with the accountsservice |
---|
60 | daemon. |
---|
61 | |
---|
62 | |
---|
63 | %package devel |
---|
64 | Summary: Development files for accountsservice-libs |
---|
65 | Summary(ja): accountsservice-libs の開発用ファイル |
---|
66 | Group: Development/Libraries |
---|
67 | Requires: %{name}-libs = %{version}-%{release} |
---|
68 | |
---|
69 | %description devel |
---|
70 | The accountsservice-devel package contains headers and other |
---|
71 | files needed to build applications that use accountsservice-libs. |
---|
72 | |
---|
73 | |
---|
74 | %package doc |
---|
75 | Summary: Documentation for %{name} |
---|
76 | Summary(ja): %{name} 用のドキュメント |
---|
77 | Group: Documentation |
---|
78 | Requires: %{name} = %{version}-%{release} |
---|
79 | BuildArch: noarch |
---|
80 | |
---|
81 | %description doc |
---|
82 | This package contains documentation for %{name}. |
---|
83 | |
---|
84 | |
---|
85 | %prep |
---|
86 | %autosetup -p1 |
---|
87 | sed -i -e '/"gnome-initial-setup",/a "selfbuild",' src/user-classify.c |
---|
88 | |
---|
89 | |
---|
90 | %build |
---|
91 | %meson \ |
---|
92 | %if %{with systemd} |
---|
93 | -Dsystemd=true \ |
---|
94 | -Delogind=false \ |
---|
95 | -Dsystemdsystemunitdir=%{_unitdir} \ |
---|
96 | %else |
---|
97 | -Dsystemd=false \ |
---|
98 | -Delogind=true \ |
---|
99 | -Dsystemdsystemunitdir=no \ |
---|
100 | %endif |
---|
101 | -Dadmin_group=wheel \ |
---|
102 | -Dminimum_uid=500 \ |
---|
103 | -Dgtk_doc=true |
---|
104 | |
---|
105 | %meson_build |
---|
106 | |
---|
107 | |
---|
108 | %install |
---|
109 | rm -rf $RPM_BUILD_ROOT |
---|
110 | %meson_install |
---|
111 | |
---|
112 | %find_lang accounts-service |
---|
113 | |
---|
114 | |
---|
115 | %clean |
---|
116 | rm -rf $RPM_BUILD_ROOT |
---|
117 | |
---|
118 | |
---|
119 | %if %{with systemd} |
---|
120 | %post |
---|
121 | %systemd_post accounts-daemon.service |
---|
122 | |
---|
123 | %preun |
---|
124 | %systemd_preun accounts-daemon.service |
---|
125 | |
---|
126 | %postun |
---|
127 | %systemd_postun accounts-daemon.service |
---|
128 | %endif |
---|
129 | |
---|
130 | %post libs -p /sbin/ldconfig |
---|
131 | %postun libs -p /sbin/ldconfig |
---|
132 | |
---|
133 | |
---|
134 | %files -f accounts-service.lang |
---|
135 | %defattr(-,root,root,-) |
---|
136 | %license COPYING |
---|
137 | %doc README* AUTHORS |
---|
138 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf |
---|
139 | %{_libexecdir}/accounts-daemon |
---|
140 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml |
---|
141 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml |
---|
142 | %{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service |
---|
143 | %{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy |
---|
144 | %dir %{_localstatedir}/lib/AccountsService/ |
---|
145 | %dir %{_localstatedir}/lib/AccountsService/users |
---|
146 | %dir %{_localstatedir}/lib/AccountsService/icons |
---|
147 | %if %{with systemd} |
---|
148 | %{_unitdir}/accounts-daemon.service |
---|
149 | %endif |
---|
150 | |
---|
151 | %files libs |
---|
152 | %defattr(-,root,root,-) |
---|
153 | %{_libdir}/libaccountsservice.so.* |
---|
154 | %{_libdir}/girepository-1.0/AccountsService-1.0.typelib |
---|
155 | |
---|
156 | %files devel |
---|
157 | %defattr(-,root,root,-) |
---|
158 | %{_includedir}/accountsservice-1.0 |
---|
159 | %{_libdir}/libaccountsservice.so |
---|
160 | %{_libdir}/pkgconfig/accountsservice.pc |
---|
161 | %{_datadir}/gir-1.0/AccountsService-1.0.gir |
---|
162 | |
---|
163 | %files doc |
---|
164 | %defattr(-,root,root,-) |
---|
165 | %{_datadir}/gtk-doc/html/libaccountsservice/ |
---|
166 | |
---|
167 | %changelog |
---|
168 | * Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.55-1 |
---|
169 | - new upstream release. |
---|
170 | - added systemd support (disabled as default). |
---|
171 | - dropped Patch1 and 2: fixed in upstream. |
---|
172 | - dropped Patch1000: got a same effect by sed. |
---|
173 | |
---|
174 | * Fri Dec 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.54-1 |
---|
175 | - new upstream release. |
---|
176 | - added elogind support. |
---|
177 | - updated Patch1000. |
---|
178 | |
---|
179 | * Mon Apr 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.40-1 |
---|
180 | - new upstream release |
---|
181 | |
---|
182 | * Mon Nov 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.39-1 |
---|
183 | - new upstream release |
---|
184 | |
---|
185 | * Sat Nov 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.6.37-2 |
---|
186 | - moved libs package to System Environment/Libraries |
---|
187 | - added %%post, %%postun and %%clean section |
---|
188 | - added Japanese summary |
---|
189 | |
---|
190 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.37-1 |
---|
191 | - new upstream release |
---|
192 | - add Patch1000 (accountsservice-0.6.37-vine-environment.patch) |
---|
193 | |
---|
194 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.31-2 |
---|
195 | - rebuild with VineSeed environment |
---|
196 | |
---|
197 | * Wed Apr 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.31-1 |
---|
198 | - new upstream release |
---|
199 | |
---|
200 | * Sun Jan 13 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.30-1 |
---|
201 | - new upstream release |
---|
202 | - create subpackage (%{name}-doc) |
---|
203 | |
---|
204 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.25-1 |
---|
205 | - new upstream release |
---|
206 | |
---|
207 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.18-1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-1 |
---|
211 | - new upstream release |
---|
212 | |
---|
213 | * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.13-1 |
---|
214 | - initial build for Vine Linux |
---|
215 | |
---|
216 | |
---|
217 | * Mon Jun 06 2011 Ray Strode <rstrode@redhat.com> 0.6.12-1 |
---|
218 | - Update to latest release |
---|
219 | |
---|
220 | * Wed May 18 2011 Matthias Clasen <mclasen@redhat.com> 0.6.11-1 |
---|
221 | - Update to 0.6.11 |
---|
222 | |
---|
223 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2 |
---|
224 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
225 | |
---|
226 | * Wed Feb 02 2011 Ray Strode <rstrode@redhat.com> 0.6.3-1 |
---|
227 | - Update to 0.6.3 |
---|
228 | |
---|
229 | * Thu Jan 27 2011 Matthias Clasen <mclasen@redhat.com> 0.6.2-1 |
---|
230 | - Update to 0.6.2 |
---|
231 | |
---|
232 | * Wed Jul 21 2010 Matthias Clasen <mclasen@redhat.com> 0.6.1-1 |
---|
233 | - Update to 0.6.1 |
---|
234 | - Install systemd unit file |
---|
235 | |
---|
236 | * Mon Apr 5 2010 Matthias Clasen <mclasen@redhat.com> 0.6-2 |
---|
237 | - Always emit changed signal on icon change |
---|
238 | |
---|
239 | * Tue Mar 30 2010 Matthias Clasen <mclasen@redhat.com> 0.6-1 |
---|
240 | - Update to 0.6 |
---|
241 | |
---|
242 | * Mon Mar 22 2010 Matthias Clasen <mclasen@redhat.com> 0.5-1 |
---|
243 | - Update to 0.5 |
---|
244 | |
---|
245 | * Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-3 |
---|
246 | - Fix directory ownership |
---|
247 | |
---|
248 | * Mon Feb 22 2010 Bastien Nocera <bnocera@redhat.com> 0.4-2 |
---|
249 | - Add missing directories to the filelist |
---|
250 | |
---|
251 | * Fri Jan 29 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1 |
---|
252 | - Initial packaging, based on work by Richard Hughes |
---|