]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | Summary: ConsoleKit for PolicyKit |
2 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
3 | Name: ConsoleKit | |
5a45cbfd | 4 | Version: 0.2.10 |
632471ba | 5 | Release: 1 |
99ac7ab9 | 6 | License: GPL v2+ |
d9995fc0 | 7 | Group: Libraries |
632471ba | 8 | Source0: http://people.freedesktop.org/~mccann/dist/%{name}-%{version}.tar.gz |
5a45cbfd | 9 | # Source0-md5: b85c2333a8fe31c0d3f29caa14716634 |
95657918 | 10 | URL: http://www.freedesktop.org/wiki/Software/ConsoleKit |
5a45cbfd | 11 | BuildRequires: PolicyKit-devel >= 0.7 |
95657918 | 12 | BuildRequires: autoconf >= 2.60 |
99ac7ab9 | 13 | BuildRequires: automake >= 1:1.7 |
8725aca6 JB |
14 | BuildRequires: dbus-glib-devel >= 0.30 |
15 | BuildRequires: glib2-devel >= 1:2.8.0 | |
99ac7ab9 JB |
16 | # for <sys/inotify.h> |
17 | BuildRequires: glibc-devel >= 6:2.4 | |
8725aca6 | 18 | BuildRequires: libtool >= 1.4 |
d9995fc0 | 19 | BuildRequires: pam-devel >= 0.80 |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: rpmbuild(macros) >= 1.268 | |
22 | BuildRequires: xmlto | |
99ac7ab9 | 23 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 |
d9995fc0 | 24 | Requires(post,preun): /sbin/chkconfig |
25 | Requires: %{name}-libs = %{version}-%{release} | |
8725aca6 JB |
26 | Requires: dbus-glib >= 0.30 |
27 | Requires: glib2 >= 1:2.8.0 | |
d9995fc0 | 28 | Requires: rc-scripts |
99ac7ab9 | 29 | Requires: xorg-lib-libX11 >= 1.0.0 |
d9995fc0 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
b836baae JB |
33 | ConsoleKit is a framework for defining and tracking users, login |
34 | sessions, and seats. | |
d9995fc0 | 35 | |
36 | %description -l pl.UTF-8 | |
aeef95d1 | 37 | ConsoleKit to szkielet do definiowania i śledzenia użytkowników, sesji |
38 | logowania i siedzib. | |
d9995fc0 | 39 | |
40 | %package libs | |
b836baae JB |
41 | Summary: ConsoleKit library |
42 | Summary(pl.UTF-8): Biblioteka ConsoleKit | |
d9995fc0 | 43 | License: AFL v2.1 or GPL v2 |
44 | Group: Libraries | |
8725aca6 | 45 | Requires: dbus-libs >= 0.30 |
d9995fc0 | 46 | Conflicts: ConsoleKit < 0.1-0.20061203.6 |
47 | ||
48 | %description libs | |
b836baae | 49 | ConsoleKit library. |
d9995fc0 | 50 | |
51 | %description libs -l pl.UTF-8 | |
b836baae | 52 | Biblioteka ConsoleKit. |
d9995fc0 | 53 | |
54 | %package devel | |
55 | Summary: Header files for ConsoleKit | |
b836baae | 56 | Summary(pl.UTF-8): Pliki nagłówkowe ConsoleKit |
d9995fc0 | 57 | License: AFL v2.1 or GPL v2 |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-libs = %{version}-%{release} | |
8725aca6 | 60 | Requires: dbus-devel >= 0.30 |
d9995fc0 | 61 | |
62 | %description devel | |
63 | Header files for ConsoleKit. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe ConsoleKit. | |
67 | ||
68 | %package static | |
b836baae JB |
69 | Summary: Static ConsoleKit library |
70 | Summary(pl.UTF-8): Statyczna biblioteka ConsoleKit | |
d9995fc0 | 71 | License: AFL v2.1 or GPL v2 |
72 | Group: Development/Libraries | |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
b836baae | 76 | Static ConsoleKit library. |
d9995fc0 | 77 | |
78 | %description static -l pl.UTF-8 | |
b836baae | 79 | Statyczna biblioteka ConsoleKit. |
d9995fc0 | 80 | |
81 | %prep | |
632471ba | 82 | %setup -q |
d9995fc0 | 83 | |
84 | %build | |
85 | %{__libtoolize} | |
86 | %{__aclocal} | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
90 | %configure \ | |
91 | --enable-pam-module \ | |
632471ba | 92 | --enable-docbook-docs \ |
93 | --enable-static \ | |
95657918 MB |
94 | --with-pam-module-dir=/%{_lib}/security \ |
95 | --with-pid-file=/var/run/console-kit-daemon.pid | |
d3e024a3 | 96 | %{__make} -j1 |
d9995fc0 | 97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
713c701a JB |
104 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.{a,la} |
105 | ||
d9995fc0 | 106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
8ceb59b9 JB |
109 | # use triggerun not triggerpostun - old init script is needed to stop service |
110 | %triggerun -- ConsoleKit < 0.2.4 | |
111 | %service -q ConsoleKit stop | |
112 | /sbin/chkconfig --del ConsoleKit | |
113 | ||
d9995fc0 | 114 | %post libs -p /sbin/ldconfig |
115 | %postun libs -p /sbin/ldconfig | |
116 | ||
117 | %files | |
118 | %defattr(644,root,root,755) | |
713c701a | 119 | %doc AUTHORS ChangeLog NEWS README TODO |
f700983e | 120 | %attr(755,root,root) %{_bindir}/ck-history |
5a45cbfd | 121 | %attr(755,root,root) %{_bindir}/ck-launch-session |
d9995fc0 | 122 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
5a45cbfd | 123 | %attr(755,root,root) %{_sbindir}/ck-log-system-restart |
dac56869 | 124 | %attr(755,root,root) %{_sbindir}/ck-log-system-start |
5a45cbfd | 125 | %attr(755,root,root) %{_sbindir}/ck-log-system-stop |
d9995fc0 | 126 | %attr(755,root,root) %{_sbindir}/console-kit-daemon |
127 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
128 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
95657918 | 129 | %attr(755,root,root) %{_libdir}/ck-get-x11-display-device |
f700983e | 130 | %dir %{_libdir}/ConsoleKit |
64670671 | 131 | %dir %{_libdir}/ConsoleKit/run-session.d |
f700983e PZ |
132 | %dir %{_libdir}/ConsoleKit/scripts |
133 | %attr(755,root,root) %{_libdir}/ConsoleKit/scripts/* | |
8725aca6 | 134 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
f700983e PZ |
135 | %{_datadir}/PolicyKit/policy/ConsoleKit.policy |
136 | %{_datadir}/dbus-1/system-services/org.freedesktop.ConsoleKit.service | |
d9995fc0 | 137 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf |
95657918 | 138 | %dir %{_sysconfdir}/ConsoleKit |
7b0cf9b9 | 139 | %dir %{_sysconfdir}/ConsoleKit/run-session.d |
64670671 | 140 | %dir %{_sysconfdir}/ConsoleKit/seats.d |
95657918 | 141 | %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat |
d9995fc0 | 142 | %{_mandir}/man8/pam_ck_connector* |
7b0cf9b9 | 143 | %dir /var/run/ConsoleKit |
5a45cbfd | 144 | %attr(750,root,root) %dir /var/log/ConsoleKit |
d9995fc0 | 145 | |
146 | %files libs | |
147 | %defattr(644,root,root,755) | |
d9995fc0 | 148 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
dac56869 | 149 | %attr(755,root,root) %ghost %{_libdir}/libck-connector.so.0 |
d9995fc0 | 150 | |
151 | %files devel | |
152 | %defattr(644,root,root,755) | |
713c701a JB |
153 | %attr(755,root,root) %{_libdir}/libck-connector.so |
154 | %{_libdir}/libck-connector.la | |
d9995fc0 | 155 | %dir %{_includedir}/ConsoleKit |
156 | %dir %{_includedir}/ConsoleKit/ck-connector | |
157 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
158 | %{_pkgconfigdir}/ck-connector.pc | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
713c701a | 162 | %{_libdir}/libck-connector.a |