]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | # TODO: |
d9995fc0 | 2 | # - generally check all |
3 | %define snap 20070314 | |
4 | Summary: ConsoleKit for PolicyKit | |
5 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
6 | Name: ConsoleKit | |
7 | Version: 0.1.3 | |
8 | Release: 0.%{snap}.1 | |
9 | License: GPL v2 | |
10 | Group: Libraries | |
11 | Source0: %{name}-%{snap}.tar.bz2 | |
12 | # Source0-md5: b4f5ce06f5d137ea559afc0461c58a73 | |
13 | Source1: %{name}.init | |
14 | Patch0: %{name}-pam64.patch | |
15 | URL: http://webcvs.freedesktop.org/hal/ | |
16 | BuildRequires: PolicyKit-devel | |
8725aca6 JB |
17 | BuildRequires: autoconf >= 2.54 |
18 | BuildRequires: automake >= 1:1.7 | |
19 | BuildRequires: dbus-glib-devel >= 0.30 | |
20 | BuildRequires: glib2-devel >= 1:2.8.0 | |
d9995fc0 | 21 | BuildRequires: gtk-doc >= 1.3 |
8725aca6 JB |
22 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
23 | BuildRequires: libtool >= 1.4 | |
d9995fc0 | 24 | BuildRequires: pam-devel >= 0.80 |
25 | BuildRequires: pkgconfig | |
26 | BuildRequires: rpmbuild(macros) >= 1.268 | |
27 | BuildRequires: xmlto | |
28 | Requires(post,preun): /sbin/chkconfig | |
29 | Requires: %{name}-libs = %{version}-%{release} | |
30 | Requires: PolicyKit | |
8725aca6 JB |
31 | Requires: dbus-glib >= 0.30 |
32 | Requires: glib2 >= 1:2.8.0 | |
d9995fc0 | 33 | Requires: rc-scripts |
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 | |
b836baae JB |
41 | ConsoleKit to szkielet do definiowania i śledzenia użytkowników, |
42 | sesji 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 | |
86 | %setup -q -n %{name}-%{snap} | |
87 | %ifarch %{x8664} | |
88 | %patch0 -p1 | |
89 | %endif | |
90 | ||
91 | %build | |
92 | %{__libtoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | %configure \ | |
98 | --enable-pam-module \ | |
99 | --enable-docbook-docs | |
100 | %{__make} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post | |
114 | /sbin/chkconfig --add ConsoleKit | |
115 | %service ConsoleKit restart | |
116 | ||
117 | %preun | |
118 | if [ "$1" = "0" ]; then | |
119 | %service -q ConsoleKit stop | |
120 | /sbin/chkconfig --del ConsoleKit | |
121 | fi | |
122 | ||
123 | %post libs -p /sbin/ldconfig | |
124 | %postun libs -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
b836baae | 128 | %doc AUTHORS NEWS README TODO |
d9995fc0 | 129 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
130 | %attr(755,root,root) %{_sbindir}/console-kit-daemon | |
131 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
132 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
8725aca6 | 133 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
d9995fc0 | 134 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf |
135 | %attr(754,root,root) /etc/rc.d/init.d/* | |
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.*.*.* |
d9995fc0 | 141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libck-connector*.so | |
145 | %{_libdir}/libck-connector.la | |
146 | %dir %{_includedir}/ConsoleKit | |
147 | %dir %{_includedir}/ConsoleKit/ck-connector | |
148 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
149 | %{_pkgconfigdir}/ck-connector.pc | |
150 | ||
151 | %files static | |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libck-connector.a |