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