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