]>
Commit | Line | Data |
---|---|---|
f0522f98 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with elogind # elogind support (instead of systemd) | |
4 | %bcond_without systemd # systemd support | |
5 | %bcond_without static_libs # static library | |
6 | ||
7 | %if %{with elogind} | |
8 | %undefine with_systemd | |
9 | %endif | |
4baa78bc | 10 | Summary: D-Bus interface for user accounts management |
7a647270 | 11 | Summary(pl.UTF-8): Interfejs D-Bus do zarządzania kontami użytkowników |
4baa78bc | 12 | Name: accountsservice |
9c61e5a9 | 13 | Version: 0.6.55 |
a4cb2d48 | 14 | Release: 1 |
02295a42 | 15 | License: GPL v3+ |
4baa78bc | 16 | Group: Applications/System |
02295a42 | 17 | Source0: https://www.freedesktop.org/software/accountsservice/%{name}-%{version}.tar.xz |
9c61e5a9 | 18 | # Source0-md5: 6e4c6fbd490260cfe17de2e76f5d803a |
02295a42 | 19 | URL: https://cgit.freedesktop.org/accountsservice/ |
4e60aced | 20 | BuildRequires: docbook-dtd412-xml |
f0522f98 | 21 | %{?with_elogind:BuildRequires: elogind-devel >= 229.4} |
90a0387f | 22 | BuildRequires: gettext-tools |
f0522f98 | 23 | BuildRequires: glib2-devel >= 1:2.44 |
4c353993 | 24 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
c408edc1 | 25 | BuildRequires: gtk-doc >= 1.15 |
4baa78bc | 26 | BuildRequires: libxslt-progs |
f0522f98 JB |
27 | BuildRequires: meson >= 0.46.0 |
28 | BuildRequires: ninja | |
4e60aced | 29 | BuildRequires: pkgconfig |
4bad0b4d | 30 | BuildRequires: polkit-devel >= 0.102 |
224e728c | 31 | BuildRequires: rpmbuild(macros) >= 1.641 |
f0522f98 JB |
32 | BuildRequires: sed >= 4.0 |
33 | %{?with_systemd:BuildRequires: systemd-devel >= 1:186} | |
79fe1c6a | 34 | BuildRequires: tar >= 1:1.22 |
4baa78bc | 35 | BuildRequires: xmlto |
79fe1c6a | 36 | BuildRequires: xz |
02295a42 | 37 | Requires(post,preun,postun): systemd-units >= 1:186 |
81ef5f4a | 38 | Requires: %{name}-libs = %{version}-%{release} |
4bad0b4d | 39 | Requires: polkit >= 0.102 |
224e728c | 40 | Requires: systemd-units >= 0.38 |
79fe1c6a | 41 | Suggests: ConsoleKit |
23ef61da | 42 | Obsoletes: accountsservice-systemd |
74ad9d2e | 43 | Obsoletes: vala-accountsservice |
4baa78bc AF |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
4e60aced | 47 | The AccountsService project provides: |
48 | - A set of D-Bus interfaces for querying and manipulating user account | |
49 | information. | |
50 | - An implementation of these interfaces based on the usermod(8), | |
51 | useradd(8) and userdel(8) commands. | |
4baa78bc | 52 | |
7a647270 ŁK |
53 | %description -l pl.UTF-8 |
54 | Projekt AccountsService dostarcza: | |
55 | - Zbiór interfejsów D-Bus do odpytywania i manipulowania informacjami | |
56 | o kontach użytkowników. | |
57 | - Implementacje tych interfejsów oparte o komendy usermod(8), | |
58 | useradd(8) i userdel(8). | |
59 | ||
81ef5f4a JB |
60 | %package libs |
61 | Summary: Shared accountsservice library | |
62 | Summary(pl.UTF-8): Biblioteka współdzielona accountsservice | |
63 | Group: Libraries | |
f0522f98 | 64 | Requires: glib2 >= 1:2.44 |
02295a42 | 65 | Requires: systemd-libs >= 1:186 |
81ef5f4a JB |
66 | Conflicts: accountsservice < 0.6.39 |
67 | ||
68 | %description libs | |
69 | Shared accountsservice library. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Biblioteka współdzielona accountsservice. | |
73 | ||
4baa78bc | 74 | %package devel |
81ef5f4a JB |
75 | Summary: Development files for accountsservice |
76 | Summary(pl.UTF-8): Pliki programistyczne biblioteki accountsservice | |
4baa78bc | 77 | Group: Development/Libraries |
81ef5f4a | 78 | Requires: %{name}-libs = %{version}-%{release} |
f0522f98 | 79 | Requires: glib2-devel >= 1:2.44 |
4baa78bc AF |
80 | |
81 | %description devel | |
81ef5f4a JB |
82 | Development files for accountsservice (headers, GObject API, D-Bus |
83 | interface description). | |
4baa78bc AF |
84 | |
85 | %description devel -l pl.UTF-8 | |
81ef5f4a JB |
86 | Pliki programistyczne biblioteki accountsservice (pliki nagłówkowe, |
87 | API GObject, opis interfejsu D-Bus). | |
4baa78bc AF |
88 | |
89 | %package static | |
90 | Summary: accountsservice static library | |
91 | Summary(pl.UTF-8): Statyczna biblioteka accountsservice | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-devel = %{version}-%{release} | |
94 | ||
95 | %description static | |
96 | accountsservice static library. | |
97 | ||
98 | %description static -l pl.UTF-8 | |
99 | Statyczna biblioteka accountsservice. | |
100 | ||
81ef5f4a JB |
101 | %package apidocs |
102 | Summary: API documentation for accountsservice | |
103 | Summary(pl.UTF-8): Dokumentacja API accountsservice | |
104 | Group: Documentation | |
105 | Requires: gtk-doc-common | |
4c7f8ac1 | 106 | BuildArch: noarch |
81ef5f4a JB |
107 | |
108 | %description apidocs | |
109 | API documentation for accountsservice. | |
110 | ||
111 | %description apidocs -l pl.UTF-8 | |
112 | Dokumentacja API accountsservice. | |
113 | ||
4baa78bc AF |
114 | %prep |
115 | %setup -q | |
116 | ||
f0522f98 JB |
117 | %if %{with static_libs} |
118 | %{__sed} -i -e 's/shared_library/library/' src/libaccountsservice/meson.build | |
119 | %endif | |
120 | ||
4baa78bc | 121 | %build |
f0522f98 JB |
122 | %meson build \ |
123 | -Dadmin_group=wheel \ | |
124 | -Ddocbook=true \ | |
125 | %{?with_elogind:-Delogind=true} \ | |
126 | -Dgtk_doc=true \ | |
127 | %{?with_systemd:-Dsystemd=true} \ | |
128 | -Dsystemdsystemunitdir=%{systemdunitdir} \ | |
129 | ||
130 | %meson_build -C build | |
4baa78bc AF |
131 | |
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
b1882a45 JP |
134 | install -d $RPM_BUILD_ROOT%{_datadir}/accountsservice/interfaces |
135 | ||
f0522f98 | 136 | %meson_install -C build |
4baa78bc | 137 | |
4baa78bc AF |
138 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/accountsservice/spec/AccountsService.html |
139 | ||
140 | %find_lang accounts-service | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
224e728c | 145 | %post |
fc7cea7f | 146 | %systemd_post accounts-daemon.service |
cf4130a7 | 147 | |
224e728c | 148 | %preun |
cf4130a7 AF |
149 | %systemd_preun accounts-daemon.service |
150 | ||
224e728c | 151 | %postun |
fc7cea7f | 152 | %systemd_reload |
cf4130a7 | 153 | |
224e728c JR |
154 | %triggerpostun -- accountsservice < 0.6.15-5 |
155 | %systemd_trigger accounts-daemon.service | |
156 | ||
81ef5f4a JB |
157 | %post libs -p /sbin/ldconfig |
158 | %postun libs -p /sbin/ldconfig | |
159 | ||
4baa78bc AF |
160 | %files -f accounts-service.lang |
161 | %defattr(644,root,root,755) | |
f0522f98 | 162 | %doc AUTHORS NEWS README.md TODO build/doc/dbus/AccountsService.html |
4c353993 | 163 | %attr(755,root,root) %{_libexecdir}/accounts-daemon |
4c353993 | 164 | /etc/dbus-1/system.d/org.freedesktop.Accounts.conf |
224e728c | 165 | %{systemdunitdir}/accounts-daemon.service |
b1882a45 JP |
166 | %dir %{_datadir}/accountsservice |
167 | %dir %{_datadir}/accountsservice/interfaces | |
4baa78bc AF |
168 | %{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service |
169 | %{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy | |
607cec3c MB |
170 | %dir /var/lib/AccountsService |
171 | %dir /var/lib/AccountsService/icons | |
172 | %dir /var/lib/AccountsService/users | |
4baa78bc | 173 | |
81ef5f4a JB |
174 | %files libs |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_libdir}/libaccountsservice.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libaccountsservice.so.0 | |
178 | %{_libdir}/girepository-1.0/AccountsService-1.0.typelib | |
179 | ||
4baa78bc AF |
180 | %files devel |
181 | %defattr(644,root,root,755) | |
4baa78bc AF |
182 | %attr(755,root,root) %{_libdir}/libaccountsservice.so |
183 | %{_includedir}/accountsservice-1.0 | |
4c353993 MB |
184 | %{_pkgconfigdir}/accountsservice.pc |
185 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml | |
186 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml | |
187 | %{_datadir}/gir-1.0/AccountsService-1.0.gir | |
4baa78bc | 188 | |
f0522f98 | 189 | %if %{with static_libs} |
4baa78bc AF |
190 | %files static |
191 | %defattr(644,root,root,755) | |
192 | %{_libdir}/libaccountsservice.a | |
f0522f98 | 193 | %endif |
81ef5f4a JB |
194 | |
195 | %files apidocs | |
196 | %defattr(644,root,root,755) | |
197 | %{_gtkdocdir}/libaccountsservice |