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