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