]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | Summary: ConsoleKit for PolicyKit |
2 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
3 | Name: ConsoleKit | |
95657918 | 4 | Version: 0.2.3 |
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 |
95657918 | 9 | # Source0-md5: dc4b3194ec583b03747ffc909a5571da |
d9995fc0 | 10 | Source1: %{name}.init |
95657918 MB |
11 | URL: http://www.freedesktop.org/wiki/Software/ConsoleKit |
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 | ||
104 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit | |
105 | ||
713c701a JB |
106 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.{a,la} |
107 | ||
d9995fc0 | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
112 | /sbin/chkconfig --add ConsoleKit | |
113 | %service ConsoleKit restart | |
114 | ||
115 | %preun | |
116 | if [ "$1" = "0" ]; then | |
117 | %service -q ConsoleKit stop | |
118 | /sbin/chkconfig --del ConsoleKit | |
119 | fi | |
120 | ||
121 | %post libs -p /sbin/ldconfig | |
122 | %postun libs -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
713c701a | 126 | %doc AUTHORS ChangeLog NEWS README TODO |
d9995fc0 | 127 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
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 |
8725aca6 | 132 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
d9995fc0 | 133 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf |
95657918 MB |
134 | %dir %{_sysconfdir}/ConsoleKit |
135 | %dir %{_sysconfdir}/ConsoleKit/seats.d | |
136 | %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat | |
d9995fc0 | 137 | %attr(754,root,root) /etc/rc.d/init.d/* |
138 | %{_mandir}/man8/pam_ck_connector* | |
139 | ||
140 | %files libs | |
141 | %defattr(644,root,root,755) | |
d9995fc0 | 142 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
d9995fc0 | 143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
713c701a JB |
146 | %attr(755,root,root) %{_libdir}/libck-connector.so |
147 | %{_libdir}/libck-connector.la | |
d9995fc0 | 148 | %dir %{_includedir}/ConsoleKit |
149 | %dir %{_includedir}/ConsoleKit/ck-connector | |
150 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
151 | %{_pkgconfigdir}/ck-connector.pc | |
152 | ||
153 | %files static | |
154 | %defattr(644,root,root,755) | |
713c701a | 155 | %{_libdir}/libck-connector.a |