]>
Commit | Line | Data |
---|---|---|
7a09d427 | 1 | # TODO: |
3bbc773a | 2 | # - polkit user/group (in the future, as they are not used for anything now) |
6727d68f AM |
3 | %define snap 20061203 |
4 | Summary: A framework for defining policy for system-wide components | |
ec26c0e8 | 5 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych |
6727d68f | 6 | Name: PolicyKit |
3bbc773a JB |
7 | Version: 0.2 |
8 | Release: 0.%{snap}.1 | |
928b0ef1 | 9 | License: GPL v2 |
6727d68f | 10 | Group: Libraries |
6727d68f AM |
11 | Source0: %{name}-%{snap}.tar.gz |
12 | # Source0-md5: 3eca471796753a36ee46495907d41525 | |
9cb32733 | 13 | Source1: %{name}.init |
ec5ba23e | 14 | Patch0: %{name}-conf.patch |
df978f17 | 15 | URL: http://webcvs.freedesktop.org/hal/ |
7a09d427 | 16 | BuildRequires: autoconf >= 2.57 |
6727d68f AM |
17 | BuildRequires: automake |
18 | BuildRequires: dbus-devel >= 0.60 | |
7a09d427 JB |
19 | BuildRequires: glib2-devel >= 1:2.6.0 |
20 | BuildRequires: gtk-doc >= 1.3 | |
6727d68f AM |
21 | BuildRequires: libtool |
22 | BuildRequires: pam-devel >= 0.80 | |
7a09d427 JB |
23 | BuildRequires: pkgconfig |
24 | BuildRequires: rpmbuild(macros) >= 1.268 | |
6727d68f | 25 | BuildRequires: xmlto |
9cb32733 | 26 | Requires(post,preun): /sbin/chkconfig |
4342a6d9 | 27 | Requires: %{name}-libs = %{version}-%{release} |
7a09d427 JB |
28 | Requires: dbus-libs >= 0.60 |
29 | Requires: glib2 >= 1:2.6.0 | |
30 | Requires: rc-scripts | |
6727d68f AM |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | PolicyKit is a framework for defining policy for system-wide | |
35 | components and for desktop pieces to configure it. It is used by HAL. | |
36 | ||
6678f48b JR |
37 | %description -l pl.UTF-8 |
38 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
39 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
40 | używany przez HAL-a. | |
df978f17 | 41 | |
4342a6d9 JB |
42 | %package libs |
43 | Summary: PolicyKit libraries | |
ec26c0e8 | 44 | Summary(pl.UTF-8): Biblioteki PolicyKit |
928b0ef1 | 45 | License: AFL v2.1 or GPL v2 |
4342a6d9 JB |
46 | Group: Libraries |
47 | Conflicts: PolicyKit < 0.1-0.20061203.6 | |
48 | ||
49 | %description libs | |
50 | PolicyKit libraries. | |
51 | ||
6678f48b | 52 | %description libs -l pl.UTF-8 |
4342a6d9 JB |
53 | Biblioteki PolicyKit. |
54 | ||
6727d68f | 55 | %package devel |
df978f17 | 56 | Summary: Header files for PolicyKit |
ec26c0e8 | 57 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit |
928b0ef1 | 58 | License: AFL v2.1 or GPL v2 |
6727d68f | 59 | Group: Development/Libraries |
4342a6d9 | 60 | Requires: %{name}-libs = %{version}-%{release} |
6727d68f AM |
61 | |
62 | %description devel | |
df978f17 | 63 | Header files for PolicyKit. |
6727d68f | 64 | |
6678f48b JR |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe PolicyKit. | |
6727d68f AM |
67 | |
68 | %package static | |
df978f17 | 69 | Summary: Static PolicyKit libraries |
ec26c0e8 | 70 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit |
928b0ef1 | 71 | License: AFL v2.1 or GPL v2 |
6727d68f AM |
72 | Group: Development/Libraries |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
df978f17 | 76 | Static PolicyKit libraries. |
6727d68f | 77 | |
6678f48b | 78 | %description static -l pl.UTF-8 |
df978f17 | 79 | Statyczne biblioteki PolicyKit. |
6727d68f AM |
80 | |
81 | %prep | |
82 | %setup -q -n %{name} | |
ec5ba23e | 83 | %patch0 -p1 |
6727d68f AM |
84 | |
85 | %build | |
4342a6d9 JB |
86 | %{__libtoolize} |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
6727d68f | 91 | %configure \ |
7a09d427 | 92 | --with-html-dir=%{_gtkdocdir} \ |
6727d68f AM |
93 | --with-pam-module-dir=/%{_lib}/security |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
9cb32733 PZ |
102 | install -d $RPM_BUILD_ROOT{%{_var}/run/polkit-console,/etc/rc.d/init.d} |
103 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/PolicyKit | |
6727d68f | 104 | |
7a09d427 JB |
105 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.{la,a} |
106 | ||
6727d68f AM |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
4342a6d9 JB |
110 | %post |
111 | /sbin/chkconfig --add PolicyKit | |
112 | %service PolicyKit restart | |
113 | ||
9cb32733 PZ |
114 | %preun |
115 | if [ "$1" = "0" ]; then | |
116 | %service -q PolicyKit stop | |
117 | /sbin/chkconfig --del PolicyKit | |
118 | fi | |
119 | ||
4342a6d9 JB |
120 | %post libs -p /sbin/ldconfig |
121 | %postun libs -p /sbin/ldconfig | |
6727d68f AM |
122 | |
123 | %files | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS README doc/spec/*.{html,png,dia} doc/TODO | |
126 | %attr(755,root,root) %{_bindir}/polkit-* | |
127 | %attr(755,root,root) %{_sbindir}/polkitd | |
df978f17 | 128 | %attr(755,root,root) /%{_lib}/security/pam_polkit_console.so* |
6727d68f AM |
129 | %{_sysconfdir}/PolicyKit |
130 | %{_sysconfdir}/dbus-1/system.d/PolicyKit.conf | |
df978f17 | 131 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/policy-kit |
6727d68f | 132 | %dir %{_var}/run/polkit-console |
9cb32733 | 133 | %attr(754,root,root) /etc/rc.d/init.d/* |
6727d68f | 134 | |
4342a6d9 JB |
135 | %files libs |
136 | %defattr(644,root,root,755) | |
928b0ef1 | 137 | %doc COPYING |
4342a6d9 JB |
138 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so.*.*.* |
139 | %attr(755,root,root) %{_libdir}/libpolkit.so.*.*.* | |
140 | ||
6727d68f AM |
141 | %files devel |
142 | %defattr(644,root,root,755) | |
4342a6d9 JB |
143 | %attr(755,root,root) %{_libdir}/libpolkit*.so |
144 | %{_libdir}/libpolkit*.la | |
6727d68f | 145 | %{_includedir}/libpolkit |
4342a6d9 | 146 | %{_pkgconfigdir}/polkit.pc |
7a09d427 | 147 | %{_gtkdocdir}/polkit |
6727d68f AM |
148 | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
4342a6d9 | 151 | %{_libdir}/libpolkit*.a |