1 |
%define _with_systemd 1 |
2 |
|
3 |
%define major 0 |
4 |
%define libname %mklibname %name %major |
5 |
|
6 |
%define develname %mklibname -d %name |
7 |
|
8 |
Name: accountsservice |
9 |
Version: 0.6.14 |
10 |
Release: %mkrel 2 |
11 |
Summary: D-Bus interfaces for querying and manipulating user account information |
12 |
|
13 |
Group: System/Libraries |
14 |
License: GPLv3+ |
15 |
URL: http://www.fedoraproject.org/wiki/Features/UserAccountDialog |
16 |
#VCS: git:git://git.freedesktop.org/accountsservice |
17 |
Source0: http://www.freedesktop.org/software/accountsservice/%name-%{version}.tar.xz |
18 |
|
19 |
BuildRequires: glib2-devel |
20 |
BuildRequires: dbus-glib-devel |
21 |
BuildRequires: polkit-1-devel |
22 |
BuildRequires: intltool |
23 |
BuildRequires: gettext |
24 |
%if %_with_systemd |
25 |
BuildRequires: systemd-units |
26 |
Requires(post): rpm-helper >= 0.24.8-1 |
27 |
Requires(preun): rpm-helper >= 0.24.8-1 |
28 |
%endif |
29 |
BuildRequires: gobject-introspection-devel |
30 |
|
31 |
Requires: polkit |
32 |
Requires: ConsoleKit |
33 |
Requires: shadow-utils |
34 |
|
35 |
%description |
36 |
The accountsservice project provides a set of D-Bus interfaces for |
37 |
querying and manipulating user account information and an implementation |
38 |
of these interfaces, based on the useradd, usermod and userdel commands. |
39 |
|
40 |
|
41 |
%files -f accounts-service.lang |
42 |
%defattr(-,root,root,-) |
43 |
%doc COPYING README AUTHORS |
44 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Accounts.conf |
45 |
%{_libexecdir}/accounts-daemon |
46 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml |
47 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml |
48 |
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service |
49 |
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy |
50 |
%dir %{_localstatedir}/lib/AccountsService/ |
51 |
%dir %{_localstatedir}/lib/AccountsService/users |
52 |
%dir %{_localstatedir}/lib/AccountsService/icons |
53 |
%if %_with_systemd |
54 |
/lib/systemd/system/accounts-daemon.service |
55 |
%endif |
56 |
|
57 |
#-------------------------------------------------------------------- |
58 |
|
59 |
%package -n %libname |
60 |
Summary: Client-side library to talk to accountservice |
61 |
Group: System/Libraries |
62 |
Requires: %{name} = %{version}-%{release} |
63 |
|
64 |
%description -n %libname |
65 |
The accountsservice-libs package contains a library that can |
66 |
be used by applications that want to interact with the accountsservice |
67 |
daemon. |
68 |
|
69 |
%files -n %libname |
70 |
%{_libdir}/libaccountsservice.so.* |
71 |
%{_libdir}/girepository-1.0/AccountsService-1.0.typelib |
72 |
|
73 |
#-------------------------------------------------------------------- |
74 |
|
75 |
%package -n %develname |
76 |
Summary: Development files for accountsservice-libs |
77 |
Group: System/Libraries |
78 |
Requires: %{libname} = %{version}-%{release} |
79 |
|
80 |
%description -n %develname |
81 |
The accountsservice-devel package contains headers and other |
82 |
files needed to build applications that use accountsservice-libs. |
83 |
|
84 |
%files -n %develname |
85 |
%{_includedir}/accountsservice-1.0 |
86 |
%{_libdir}/libaccountsservice.so |
87 |
%{_libdir}/pkgconfig/accountsservice.pc |
88 |
%{_datadir}/gir-1.0/AccountsService-1.0.gir |
89 |
|
90 |
#-------------------------------------------------------------------- |
91 |
|
92 |
%prep |
93 |
%setup -q |
94 |
|
95 |
%build |
96 |
autoreconf -fi |
97 |
%configure2_5x \ |
98 |
%if !%{_with_systemd} |
99 |
--without-systemdsystemunitdir \ |
100 |
%endif |
101 |
|
102 |
%make |
103 |
|
104 |
%install |
105 |
rm -fr %buildroot |
106 |
%makeinstall_std |
107 |
|
108 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
109 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
110 |
%find_lang accounts-service |
111 |
|