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