16129
|
1 |
#
|
|
2 |
# spec file for package ConsoleKit
|
|
3 |
#
|
19974
|
4 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
16129
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
20107
|
8 |
%define owner yippi
|
17242
|
9 |
# bugdb: bugs.freedesktop.org
|
16129
|
10 |
#
|
17354
|
11 |
%define OSR 10394:3.0
|
16129
|
12 |
|
|
13 |
Name: ConsoleKit
|
20052
|
14 |
License: GPL v2+, MIT, BSD
|
16129
|
15 |
Group: Libraries
|
20041
|
16 |
Version: 0.4.2
|
16129
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17851
|
19 |
Vendor: Freedesktop.org
|
16129
|
20 |
Summary: Framework for tracking users, login sessions, and seats.
|
|
21 |
URL: http://www.freedesktop.org/wiki/Software/ConsoleKit
|
|
22 |
Source: http://www.freedesktop.org/software/ConsoleKit/dist/%{name}-%{version}.tar.bz2
|
20109
|
23 |
# date:2008-12-30 owner:yippi type:bug bugzilla:19333
|
16486
|
24 |
Patch1: ConsoleKit-01-ck-dynamic.diff
|
20109
|
25 |
# date:2009-07-23 owner:yippi type:branding
|
16486
|
26 |
Patch2: ConsoleKit-02-add-sunray-type.diff
|
20109
|
27 |
# date:2009-07-23 owner:yippi type:branding
|
16486
|
28 |
Patch3: ConsoleKit-03-sol-novt.diff
|
20109
|
29 |
# date:2009-11-03 owner:yippi type:branding doo:12395
|
20041
|
30 |
Patch4: ConsoleKit-04-sol-xserver.diff
|
16937
|
31 |
# date:2009-11-10 owner:jedy type:bug bugzilla:24749
|
20041
|
32 |
Patch5: ConsoleKit-05-fastreboot.diff
|
20109
|
33 |
# date:2009-12-04 owner:yippi type:bug bugzilla:25436
|
20041
|
34 |
Patch6: ConsoleKit-06-ck-history.diff
|
20109
|
35 |
# date:2010-01-15 owner:yippi type:bug bugzilla:28598 bugster:6951766
|
20041
|
36 |
Patch7: ConsoleKit-07-cores-srss.diff
|
16129
|
37 |
|
|
38 |
BuildRequires: PolicyKit-devel >= 0.7
|
|
39 |
BuildRequires: autoconf >= 2.60
|
|
40 |
BuildRequires: automake >= 1:1.9
|
|
41 |
BuildRequires: dbus-glib-devel >= 0.30
|
|
42 |
BuildRequires: gettext-devel
|
|
43 |
BuildRequires: glib2-devel >= 1:2.8.0
|
|
44 |
# for <sys/inotify.h>
|
|
45 |
BuildRequires: glibc-devel >= 6:2.4
|
|
46 |
BuildRequires: libtool >= 1.4
|
|
47 |
BuildRequires: pam-devel >= 0.80
|
|
48 |
BuildRequires: pkgconfig
|
|
49 |
BuildRequires: rpmbuild(macros) >= 1.268
|
|
50 |
BuildRequires: xmlto
|
|
51 |
BuildRequires: xorg-lib-libX11-devel >= 1.0.0
|
|
52 |
BuildRequires: zlib-devel
|
|
53 |
Requires: /sbin/chkconfig
|
|
54 |
Requires: %{name}-libs = %{version}-%{release}
|
|
55 |
Requires: dbus-glib >= 0.30
|
|
56 |
Requires: glib2 >= 1:2.8.0
|
|
57 |
Requires: rc-scripts
|
|
58 |
Requires: xorg-lib-libX11 >= 1.0.0
|
|
59 |
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|
60 |
|
|
61 |
%description
|
|
62 |
ConsoleKit is a framework for defining and tracking users, login
|
|
63 |
sessions, and seats.
|
|
64 |
|
|
65 |
%package libs
|
|
66 |
Summary: ConsoleKit library
|
|
67 |
Summary(pl.UTF-8): Biblioteka ConsoleKit
|
|
68 |
License: AFL v2.1 or GPL v2
|
|
69 |
Group: Libraries
|
|
70 |
Requires: dbus-libs >= 0.30
|
|
71 |
Conflicts: ConsoleKit < 0.1-0.20061203.6
|
|
72 |
|
|
73 |
%description libs
|
|
74 |
ConsoleKit library.
|
|
75 |
|
|
76 |
%package devel
|
|
77 |
Summary: Header files for ConsoleKit
|
|
78 |
Summary(pl.UTF-8): Pliki nagłówkowe ConsoleKit
|
|
79 |
License: AFL v2.1 or GPL v2
|
|
80 |
Group: Development/Libraries
|
|
81 |
Requires: %{name}-libs = %{version}-%{release}
|
|
82 |
Requires: dbus-devel >= 0.30
|
|
83 |
|
|
84 |
%description devel
|
|
85 |
Header files for ConsoleKit.
|
|
86 |
|
|
87 |
%package static
|
|
88 |
Summary: Static ConsoleKit library
|
|
89 |
Summary(pl.UTF-8): Statyczna biblioteka ConsoleKit
|
|
90 |
License: AFL v2.1 or GPL v2
|
|
91 |
Group: Development/Libraries
|
|
92 |
Requires: %{name}-devel = %{version}-%{release}
|
|
93 |
|
|
94 |
%description static
|
|
95 |
Static ConsoleKit library.
|
|
96 |
|
|
97 |
%prep
|
|
98 |
%setup -q
|
|
99 |
%patch1 -p1
|
|
100 |
%patch2 -p1
|
|
101 |
%patch3 -p1
|
|
102 |
%patch4 -p1
|
16770
|
103 |
%patch5 -p1
|
16911
|
104 |
%patch6 -p1
|
|
105 |
%patch7 -p1
|
16129
|
106 |
|
|
107 |
%build
|
|
108 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
109 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
110 |
CPUS=1
|
|
111 |
fi
|
|
112 |
|
|
113 |
glib-gettextize -f
|
|
114 |
libtoolize --copy --force
|
|
115 |
aclocal $ACLOCAL_FLAGS
|
|
116 |
autoheader
|
|
117 |
automake -a -c -f
|
|
118 |
autoconf
|
|
119 |
|
|
120 |
./configure --prefix=%{_prefix} \
|
|
121 |
--libdir=%{_libdir} \
|
|
122 |
--libexecdir=%{_libexecdir} \
|
|
123 |
--localstatedir=%{_localstatedir} \
|
|
124 |
--sysconfdir=%{_sysconfdir} \
|
|
125 |
--mandir=%{_mandir} \
|
|
126 |
%if %build_pam_module
|
|
127 |
--enable-pam-module \
|
|
128 |
--with-pam-module-dir=%{_libdir}/security \
|
|
129 |
%endif
|
|
130 |
--enable-rbac-shutdown=solaris.system.shutdown
|
|
131 |
make -j$CPUS
|
|
132 |
|
|
133 |
%install
|
|
134 |
rm -rf $RPM_BUILD_ROOT
|
|
135 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
136 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
137 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
138 |
%if %build_pam_module
|
|
139 |
%else
|
|
140 |
# delete useless directory /usr/man/man8 which stores pam_ck_connector.8
|
|
141 |
#
|
|
142 |
rm -rf $RPM_BUILD_ROOT/%{_mandir}
|
|
143 |
%endif
|
|
144 |
|
|
145 |
# The /var/run directory should not be included with the packages.
|
|
146 |
# ConsoleKit will create it at run-time.
|
|
147 |
#
|
|
148 |
rmdir $RPM_BUILD_ROOT/var/run/ConsoleKit
|
|
149 |
rmdir $RPM_BUILD_ROOT/var/run
|
|
150 |
|
|
151 |
%clean
|
|
152 |
rm -rf $RPM_BUILD_ROOT
|
|
153 |
|
|
154 |
%post libs -p /sbin/ldconfig
|
|
155 |
%postun libs -p /sbin/ldconfig
|
|
156 |
|
|
157 |
%files
|
|
158 |
%defattr(-,root,root)
|
|
159 |
%doc AUTHORS ChangeLog NEWS README TODO
|
|
160 |
%attr(755,root,root) %{_bindir}/ck-history
|
|
161 |
%attr(755,root,root) %{_bindir}/ck-launch-session
|
|
162 |
%attr(755,root,root) %{_bindir}/ck-list-sessions
|
|
163 |
%attr(755,root,root) %{_sbindir}/ck-log-system-restart
|
|
164 |
%attr(755,root,root) %{_sbindir}/ck-log-system-start
|
|
165 |
%attr(755,root,root) %{_sbindir}/ck-log-system-stop
|
|
166 |
%attr(755,root,root) %{_sbindir}/console-kit-daemon
|
|
167 |
%attr(755,root,root) %{_libdir}/ck-collect-session-info
|
|
168 |
%attr(755,root,root) %{_libdir}/ck-get-x11-server-pid
|
|
169 |
%attr(755,root,root) %{_libdir}/ck-get-x11-display-device
|
|
170 |
%dir %{_prefix}/lib/ConsoleKit/scripts
|
|
171 |
%attr(755,root,root) %{_prefix}/lib/ConsoleKit/scripts/*
|
|
172 |
%attr(755,root,root) /%{_lib}/security/pam_ck_connector.so
|
|
173 |
%{_datadir}/PolicyKit/policy/org.freedesktop.consolekit.policy
|
|
174 |
%{_datadir}/dbus-1/system-services/org.freedesktop.ConsoleKit.service
|
|
175 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml
|
|
176 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml
|
|
177 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml
|
|
178 |
%{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf
|
|
179 |
%dir %{_sysconfdir}/ConsoleKit
|
|
180 |
%dir %{_sysconfdir}/ConsoleKit/run-session.d
|
|
181 |
%dir %{_sysconfdir}/ConsoleKit/seats.d
|
|
182 |
%{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat
|
|
183 |
%{_mandir}/man8/pam_ck_connector.8*
|
|
184 |
%dir %{_localstatedir}/run/ConsoleKit
|
|
185 |
%dir %{_localstatedir}/log/ConsoleKit
|
|
186 |
|
|
187 |
%files libs
|
|
188 |
%defattr(644,root,root,755)
|
|
189 |
%attr(755,root,root) %{_libdir}/libck-connector.so.*.*.*
|
|
190 |
%attr(755,root,root) %ghost %{_libdir}/libck-connector.so.0
|
|
191 |
|
|
192 |
%files devel
|
|
193 |
%defattr(644,root,root,755)
|
|
194 |
%attr(755,root,root) %{_libdir}/libck-connector.so
|
|
195 |
%{_libdir}/libck-connector.la
|
|
196 |
%dir %{_includedir}/ConsoleKit
|
|
197 |
%dir %{_includedir}/ConsoleKit/ck-connector
|
|
198 |
%{_includedir}/ConsoleKit/ck-connector/*.h
|
|
199 |
%{_libdir}/pkgconfig/ck-connector.pc
|
|
200 |
|
|
201 |
%files static
|
|
202 |
%defattr(644,root,root,755)
|
|
203 |
%{_libdir}/libck-connector.a
|
|
204 |
|
|
205 |
%changelog
|
20041
|
206 |
* Tue Sep 07 2010 - [email protected]
|
|
207 |
- Bump to 0.4.2.
|
18143
|
208 |
* Fri Jun 18 2010 - [email protected]
|
|
209 |
- Add patch -cores-srss.diff to fix bugzilla #28598, bugster #6951766.
|
17756
|
210 |
* Fri Mar 26 2010 - [email protected]
|
|
211 |
- Remove patch -actual-vt-on-switch.diff because we this issue fix
|
|
212 |
inside GDM code base instead.
|
|
213 |
* Fri Jan 15 2010 - [email protected]
|
17354
|
214 |
- Add patch -sol-vtdaemon.diff to fix bugzilla #26055.
|
17112
|
215 |
* Fri Dec 04 2009 - [email protected]
|
17354
|
216 |
- Add patch -ck-history.diff to fix bugzilla #25436.
|
17052
|
217 |
* Mon Nov 30 2009 - [email protected]
|
17354
|
218 |
- Add patch -actual-vt-on-switch.diff to fix doo #12563.
|
16937
|
219 |
* Tue Nov 10 2009 - [email protected]
|
17354
|
220 |
- Add patch fastreboot.diff to fix bugzilla #24749.
|
|
221 |
* Tue Nov 10 2009 - [email protected]
|
|
222 |
- Add patch can-stop.diff to fix bugzilla #24992.
|
16935
|
223 |
* Thu Nov 05 2009 - [email protected]
|
17354
|
224 |
- Add patch sol-xserver.diff to fix doo #12395.
|
|
225 |
- Add patch sol-vt-major.diff to fix doo #12322.
|
16770
|
226 |
* Thu Oct 15 2009 - [email protected]
|
17354
|
227 |
- Add patch sol-sigpoll.diff to fix doo #11612.
|
16651
|
228 |
* Fri Sep 25 2009 - [email protected]
|
|
229 |
- Add patch sol-tty.diff to correct return value of
|
|
230 |
/usr/lib/ck-get-x11-display-device after VT is integrated
|
|
231 |
- Remove tempory patch dev-console.diff
|
16647
|
232 |
* Thu Sep 24 2009 - [email protected]
|
|
233 |
- Bump to 0.4.1
|
|
234 |
- Remove upstreamed patch close-fp.diff
|
16486
|
235 |
* Mon Sep 07 2009 - [email protected]
|
|
236 |
- Remove obsoleted patch 01-ck-history.diff and reorder
|
16475
|
237 |
* Fri Sep 04 2009 - [email protected]
|
|
238 |
- Rework 02-ck-dynamic to fix console-kit-daemon core dump when
|
|
239 |
second time login. Get more information from branch multi-seat.
|
16232
|
240 |
* Tue Aug 11 2009 - [email protected]
|
|
241 |
- Remove obsoleted patches: dynamic-tty.diff and solaris-vtdaemon.diff
|
|
242 |
- Add sun branding patch sol-novt.diff
|
|
243 |
- Reorder patches
|
16129
|
244 |
* Mon Jul 27 2009 - [email protected]
|
|
245 |
- New from SFEconsolekit.spec
|