]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | # TODO: |
2 | # - check library deps (it seems to link with some X11 libs) | |
3 | # - generally check all | |
4 | %define snap 20070314 | |
5 | Summary: ConsoleKit for PolicyKit | |
6 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
7 | Name: ConsoleKit | |
8 | Version: 0.1.3 | |
9 | Release: 0.%{snap}.1 | |
10 | License: GPL v2 | |
11 | Group: Libraries | |
12 | Source0: %{name}-%{snap}.tar.bz2 | |
13 | # Source0-md5: b4f5ce06f5d137ea559afc0461c58a73 | |
14 | Source1: %{name}.init | |
15 | Patch0: %{name}-pam64.patch | |
16 | URL: http://webcvs.freedesktop.org/hal/ | |
17 | BuildRequires: PolicyKit-devel | |
18 | BuildRequires: autoconf >= 2.57 | |
19 | BuildRequires: automake | |
20 | BuildRequires: dbus-devel >= 0.60 | |
21 | BuildRequires: glib2-devel >= 1:2.6.0 | |
22 | BuildRequires: gtk-doc >= 1.3 | |
23 | BuildRequires: libtool | |
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 | |
31 | Requires: dbus-libs >= 0.60 | |
32 | Requires: glib2 >= 1:2.6.0 | |
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 | |
47 | Conflicts: ConsoleKit < 0.1-0.20061203.6 | |
48 | ||
49 | %description libs | |
50 | ConsoleKit libraries. | |
51 | ||
52 | %description libs -l pl.UTF-8 | |
53 | Biblioteki ConsoleKit. | |
54 | ||
55 | %package devel | |
56 | Summary: Header files for ConsoleKit | |
57 | Summary(pl.UTF-8):Pliki nagłówkowe ConsoleKit | |
58 | License: AFL v2.1 or GPL v2 | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-libs = %{version}-%{release} | |
61 | ||
62 | %description devel | |
63 | Header files for ConsoleKit. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe ConsoleKit. | |
67 | ||
68 | %package static | |
69 | Summary: Static ConsoleKit libraries | |
70 | Summary(pl.UTF-8):Statyczne biblioteki ConsoleKit | |
71 | License: AFL v2.1 or GPL v2 | |
72 | Group: Development/Libraries | |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static ConsoleKit libraries. | |
77 | ||
78 | %description static -l pl.UTF-8 | |
79 | Statyczne biblioteki ConsoleKit. | |
80 | ||
81 | %prep | |
82 | %setup -q -n %{name}-%{snap} | |
83 | %ifarch %{x8664} | |
84 | %patch0 -p1 | |
85 | %endif | |
86 | ||
87 | %build | |
88 | %{__libtoolize} | |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
93 | %configure \ | |
94 | --enable-pam-module \ | |
95 | --enable-docbook-docs | |
96 | %{__make} | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
104 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post | |
110 | /sbin/chkconfig --add ConsoleKit | |
111 | %service ConsoleKit restart | |
112 | ||
113 | %preun | |
114 | if [ "$1" = "0" ]; then | |
115 | %service -q ConsoleKit stop | |
116 | /sbin/chkconfig --del ConsoleKit | |
117 | fi | |
118 | ||
119 | %post libs -p /sbin/ldconfig | |
120 | %postun libs -p /sbin/ldconfig | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_bindir}/ck-list-sessions | |
125 | %attr(755,root,root) %{_sbindir}/console-kit-daemon | |
126 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
127 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
128 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so* | |
129 | %{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf | |
130 | %attr(754,root,root) /etc/rc.d/init.d/* | |
131 | %{_mandir}/man8/pam_ck_connector* | |
132 | ||
133 | %files libs | |
134 | %defattr(644,root,root,755) | |
135 | %doc COPYING | |
136 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* | |
137 | /%{_lib}/security/pam* | |
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 |