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