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