]>
Commit | Line | Data |
---|---|---|
6727d68f AM |
1 | # TODO: |
2 | # - add init scripts | |
3 | %define snap 20061203 | |
4 | Summary: A framework for defining policy for system-wide components | |
5 | Name: PolicyKit | |
6 | Version: 0.1 | |
7 | Release: 0.%{snap}.1 | |
8 | Group: Libraries | |
9 | URL: http://webcvs.freedesktop.org/hal/ | |
10 | Source0: %{name}-%{snap}.tar.gz | |
11 | # Source0-md5: 3eca471796753a36ee46495907d41525 | |
12 | License: GPL | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: dbus-devel >= 0.60 | |
16 | BuildRequires: glib2-devel | |
17 | BuildRequires: gtk-doc | |
18 | BuildRequires: libtool | |
19 | BuildRequires: pam-devel >= 0.80 | |
20 | BuildRequires: xmlto | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | PolicyKit is a framework for defining policy for system-wide | |
25 | components and for desktop pieces to configure it. It is used by HAL. | |
26 | ||
27 | %package devel | |
28 | Summary: Devel package for %{name} | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | PolicyKit is a framework for defining policy for system-wide | |
34 | components and for desktop pieces to configure it. It is used by HAL. | |
35 | ||
36 | This package contains header files need for development. | |
37 | ||
38 | %package static | |
39 | Summary: Static libraries package for %{name} | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | PolicyKit is a framework for defining policy for system-wide | |
45 | components and for desktop pieces to configure it. It is used by HAL. | |
46 | ||
47 | This package contains static libraries and header files need for | |
48 | development. | |
49 | ||
50 | ||
51 | %prep | |
52 | %setup -q -n %{name} | |
53 | ||
54 | %build | |
55 | ./autogen.sh | |
56 | %configure \ | |
57 | --with-pam-module-dir=/%{_lib}/security | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | install -d $RPM_BUILD_ROOT%{_var}/run/polkit-console | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc AUTHORS README doc/spec/*.{html,png,dia} doc/TODO | |
77 | %attr(755,root,root) %{_bindir}/polkit-* | |
78 | %attr(755,root,root) %{_sbindir}/polkitd | |
79 | %{_sysconfdir}/PolicyKit | |
80 | %{_sysconfdir}/dbus-1/system.d/PolicyKit.conf | |
81 | /etc/pam.d/policy-kit | |
82 | %attr(755,root,root) /%{_lib}/security/pam_polkit_console.* | |
83 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so.* | |
84 | %attr(755,root,root) %{_libdir}/libpolkit.so.* | |
85 | %dir %{_var}/run/polkit-console | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_includedir}/libpolkit | |
90 | %{_pkgconfigdir}/*.pc | |
91 | %{_libdir}/libpol*.la | |
92 | %attr(755,root,root) %{_libdir}/libpol*.so | |
93 | ||
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libpol*.a |