]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | Summary: ConsoleKit for PolicyKit |
2 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
3 | Name: ConsoleKit | |
632471ba | 4 | Version: 0.2.1 |
5 | Release: 1 | |
d9995fc0 | 6 | License: GPL v2 |
7 | Group: Libraries | |
632471ba | 8 | Source0: http://people.freedesktop.org/~mccann/dist/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 8bf5e83931a8a3c2abcd541781e1554c | |
d9995fc0 | 10 | Source1: %{name}.init |
aeef95d1 | 11 | Patch0: %{name}-SIGINT.patch |
632471ba | 12 | URL: http://gitweb.freedesktop.org/?p=ConsoleKit.git |
d9995fc0 | 13 | BuildRequires: PolicyKit-devel |
8725aca6 JB |
14 | BuildRequires: autoconf >= 2.54 |
15 | BuildRequires: automake >= 1:1.7 | |
16 | BuildRequires: dbus-glib-devel >= 0.30 | |
17 | BuildRequires: glib2-devel >= 1:2.8.0 | |
8725aca6 | 18 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
aeef95d1 | 19 | BuildRequires: gtk-doc >= 1.3 |
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 | |
25 | Requires(post,preun): /sbin/chkconfig | |
26 | Requires: %{name}-libs = %{version}-%{release} | |
27 | Requires: PolicyKit | |
8725aca6 JB |
28 | Requires: dbus-glib >= 0.30 |
29 | Requires: glib2 >= 1:2.8.0 | |
d9995fc0 | 30 | Requires: rc-scripts |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
b836baae JB |
34 | ConsoleKit is a framework for defining and tracking users, login |
35 | sessions, and seats. | |
d9995fc0 | 36 | |
37 | %description -l pl.UTF-8 | |
aeef95d1 | 38 | ConsoleKit to szkielet do definiowania i śledzenia użytkowników, sesji |
39 | logowania i siedzib. | |
d9995fc0 | 40 | |
41 | %package libs | |
b836baae JB |
42 | Summary: ConsoleKit library |
43 | Summary(pl.UTF-8): Biblioteka ConsoleKit | |
d9995fc0 | 44 | License: AFL v2.1 or GPL v2 |
45 | Group: Libraries | |
8725aca6 | 46 | Requires: dbus-libs >= 0.30 |
d9995fc0 | 47 | Conflicts: ConsoleKit < 0.1-0.20061203.6 |
48 | ||
49 | %description libs | |
b836baae | 50 | ConsoleKit library. |
d9995fc0 | 51 | |
52 | %description libs -l pl.UTF-8 | |
b836baae | 53 | Biblioteka ConsoleKit. |
d9995fc0 | 54 | |
55 | %package devel | |
56 | Summary: Header files for ConsoleKit | |
b836baae | 57 | Summary(pl.UTF-8): Pliki nagłówkowe ConsoleKit |
d9995fc0 | 58 | License: AFL v2.1 or GPL v2 |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-libs = %{version}-%{release} | |
8725aca6 | 61 | Requires: dbus-devel >= 0.30 |
d9995fc0 | 62 | |
63 | %description devel | |
64 | Header files for ConsoleKit. | |
65 | ||
66 | %description devel -l pl.UTF-8 | |
67 | Pliki nagłówkowe ConsoleKit. | |
68 | ||
69 | %package static | |
b836baae JB |
70 | Summary: Static ConsoleKit library |
71 | Summary(pl.UTF-8): Statyczna biblioteka ConsoleKit | |
d9995fc0 | 72 | License: AFL v2.1 or GPL v2 |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
b836baae | 77 | Static ConsoleKit library. |
d9995fc0 | 78 | |
79 | %description static -l pl.UTF-8 | |
b836baae | 80 | Statyczna biblioteka ConsoleKit. |
d9995fc0 | 81 | |
82 | %prep | |
632471ba | 83 | %setup -q |
d9995fc0 | 84 | %patch0 -p1 |
d9995fc0 | 85 | |
86 | %build | |
87 | %{__libtoolize} | |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | --enable-pam-module \ | |
632471ba | 94 | --enable-docbook-docs \ |
95 | --enable-static \ | |
96 | --with-pam-module-dir=/%{_lib}/security | |
d3e024a3 | 97 | %{__make} -j1 |
d9995fc0 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit | |
106 | ||
713c701a JB |
107 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.{a,la} |
108 | ||
d9995fc0 | 109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post | |
113 | /sbin/chkconfig --add ConsoleKit | |
114 | %service ConsoleKit restart | |
115 | ||
116 | %preun | |
117 | if [ "$1" = "0" ]; then | |
118 | %service -q ConsoleKit stop | |
119 | /sbin/chkconfig --del ConsoleKit | |
120 | fi | |
121 | ||
122 | %post libs -p /sbin/ldconfig | |
123 | %postun libs -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
713c701a | 127 | %doc AUTHORS ChangeLog NEWS README TODO |
d9995fc0 | 128 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
129 | %attr(755,root,root) %{_sbindir}/console-kit-daemon | |
130 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
131 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
8725aca6 | 132 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
d9995fc0 | 133 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf |
134 | %attr(754,root,root) /etc/rc.d/init.d/* | |
135 | %{_mandir}/man8/pam_ck_connector* | |
136 | ||
137 | %files libs | |
138 | %defattr(644,root,root,755) | |
d9995fc0 | 139 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
d9995fc0 | 140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
713c701a JB |
143 | %attr(755,root,root) %{_libdir}/libck-connector.so |
144 | %{_libdir}/libck-connector.la | |
d9995fc0 | 145 | %dir %{_includedir}/ConsoleKit |
146 | %dir %{_includedir}/ConsoleKit/ck-connector | |
147 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
148 | %{_pkgconfigdir}/ck-connector.pc | |
149 | ||
150 | %files static | |
151 | %defattr(644,root,root,755) | |
713c701a | 152 | %{_libdir}/libck-connector.a |