]>
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 | |
37 | I totally don't know what this does, as it has no homepage. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Totalnie nei wiem, co ta paczka robi, bo nie ma strony domowej. | |
41 | ||
42 | %package libs | |
43 | Summary: ConsoleKit libraries | |
44 | Summary(pl.UTF-8):Biblioteki ConsoleKit | |
45 | License: AFL v2.1 or GPL v2 | |
46 | Group: Libraries | |
8725aca6 | 47 | Requires: dbus-libs >= 0.30 |
d9995fc0 | 48 | Conflicts: ConsoleKit < 0.1-0.20061203.6 |
49 | ||
50 | %description libs | |
51 | ConsoleKit libraries. | |
52 | ||
53 | %description libs -l pl.UTF-8 | |
54 | Biblioteki ConsoleKit. | |
55 | ||
56 | %package devel | |
57 | Summary: Header files for ConsoleKit | |
58 | Summary(pl.UTF-8):Pliki nagłówkowe ConsoleKit | |
59 | License: AFL v2.1 or GPL v2 | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-libs = %{version}-%{release} | |
8725aca6 | 62 | Requires: dbus-devel >= 0.30 |
d9995fc0 | 63 | |
64 | %description devel | |
65 | Header files for ConsoleKit. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe ConsoleKit. | |
69 | ||
70 | %package static | |
71 | Summary: Static ConsoleKit libraries | |
72 | Summary(pl.UTF-8):Statyczne biblioteki ConsoleKit | |
73 | License: AFL v2.1 or GPL v2 | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | Static ConsoleKit libraries. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Statyczne biblioteki ConsoleKit. | |
82 | ||
83 | %prep | |
84 | %setup -q -n %{name}-%{snap} | |
85 | %ifarch %{x8664} | |
86 | %patch0 -p1 | |
87 | %endif | |
88 | ||
89 | %build | |
90 | %{__libtoolize} | |
91 | %{__aclocal} | |
92 | %{__autoconf} | |
93 | %{__autoheader} | |
94 | %{__automake} | |
95 | %configure \ | |
96 | --enable-pam-module \ | |
97 | --enable-docbook-docs | |
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
112 | /sbin/chkconfig --add ConsoleKit | |
113 | %service ConsoleKit restart | |
114 | ||
115 | %preun | |
116 | if [ "$1" = "0" ]; then | |
117 | %service -q ConsoleKit stop | |
118 | /sbin/chkconfig --del ConsoleKit | |
119 | fi | |
120 | ||
121 | %post libs -p /sbin/ldconfig | |
122 | %postun libs -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_bindir}/ck-list-sessions | |
127 | %attr(755,root,root) %{_sbindir}/console-kit-daemon | |
128 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
129 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
8725aca6 | 130 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
d9995fc0 | 131 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf |
132 | %attr(754,root,root) /etc/rc.d/init.d/* | |
133 | %{_mandir}/man8/pam_ck_connector* | |
134 | ||
135 | %files libs | |
136 | %defattr(644,root,root,755) | |
d9995fc0 | 137 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
d9995fc0 | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_libdir}/libck-connector*.so | |
142 | %{_libdir}/libck-connector.la | |
143 | %dir %{_includedir}/ConsoleKit | |
144 | %dir %{_includedir}/ConsoleKit/ck-connector | |
145 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
146 | %{_pkgconfigdir}/ck-connector.pc | |
147 | ||
148 | %files static | |
149 | %defattr(644,root,root,755) | |
150 | %{_libdir}/libck-connector.a |