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