]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without examples | |
4 | # | |
5 | Summary: GNOME dialogs for PolicyKit | |
6 | Summary(pl.UTF-8): Okna dialogowe GNOME dla pakietu PolicyKit | |
7 | Name: PolicyKit-gnome | |
8 | Version: 0.9 | |
9 | Release: 2 | |
10 | License: LGPL v2+ (polkit-gnome library), GPL v2+ (D-Bus service) | |
11 | Group: X11/Applications | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: 68374b04289ce99d95a9df19d6217344 | |
14 | URL: http://people.freedesktop.org/~david/polkit-spec.html | |
15 | BuildRequires: GConf2-devel | |
16 | BuildRequires: PolicyKit-devel >= 0.9 | |
17 | %{?with_examples:BuildRequires: PolicyKit} | |
18 | BuildRequires: autoconf >= 2.50 | |
19 | BuildRequires: automake >= 1:1.9 | |
20 | BuildRequires: dbus-glib-devel >= 0.71 | |
21 | BuildRequires: gettext-devel | |
22 | BuildRequires: gnome-common >= 2.0 | |
23 | BuildRequires: gnome-doc-utils | |
24 | BuildRequires: gnome-vfs2-devel >= 2.4 | |
25 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
26 | BuildRequires: gtk-doc >= 1.3 | |
27 | BuildRequires: intltool >= 0.35.0 | |
28 | BuildRequires: libgnomeui-devel >= 2.14.0 | |
29 | BuildRequires: libsexy-devel >= 0.1.11 | |
30 | BuildRequires: libtool | |
31 | BuildRequires: pkgconfig | |
32 | Requires(post,preun): GConf2 | |
33 | Requires: %{name}-libs = %{version}-%{release} | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | PolicyKit-gnome provides a D-BUS session bus service that is used to | |
38 | bring up authentication dialogs used for obtaining privileges. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Pakiet PolicyKit-gnome udostępnia usługę magistrali sesji D-BUS | |
42 | służącą do wyświetlania okien dialogowych uwierzytelniania w celu | |
43 | uzyskania uprawnień. | |
44 | ||
45 | %package libs | |
46 | Summary: PolicyKit add-on library for GNOME | |
47 | Summary(pl.UTF-8): Dodatkowa biblioteka PolicyKit dla GNOME | |
48 | Group: X11/Libraries | |
49 | Requires: PolicyKit-libs >= 0.9 | |
50 | Requires: gtk+2 >= 2:2.12.0 | |
51 | ||
52 | %description libs | |
53 | PolicyKit add-on library for GNOME. | |
54 | ||
55 | %description libs -l pl.UTF-8 | |
56 | Dodatkowa biblioteka PolicyKit dla GNOME. | |
57 | ||
58 | %package devel | |
59 | Summary: Header files for polkit-gnome library | |
60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki polkit-gnome | |
61 | Group: X11/Development/Libraries | |
62 | Requires: %{name}-libs = %{version}-%{release} | |
63 | Requires: PolicyKit-devel >= 0.9 | |
64 | Requires: dbus-devel >= 1.0 | |
65 | Requires: gtk+2-devel >= 2:2.12.0 | |
66 | Requires: libselinux-devel >= 1.30 | |
67 | ||
68 | %description devel | |
69 | Header files for polkit-gnome library. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Pliki nagłówkowe biblioteki polkit-gnome. | |
73 | ||
74 | %package static | |
75 | Summary: Static polkit-gnome library | |
76 | Summary(pl.UTF-8): Statyczna biblioteka polkit-gnome | |
77 | Group: X11/Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
81 | Static polkit-gnome library. | |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Statyczna biblioteka polkit-gnome. | |
85 | ||
86 | %package apidocs | |
87 | Summary: polkit-gnome library API documentation | |
88 | Summary(pl.UTF-8): Dokumentacja API biblioteki polkit-gnome | |
89 | Group: Documentation | |
90 | Requires: gtk-doc-common | |
91 | ||
92 | %description apidocs | |
93 | polkit-gnome library API documentation. | |
94 | ||
95 | %description apidocs -l pl.UTF-8 | |
96 | Dokumentacja API biblioteki polkit-gnome. | |
97 | ||
98 | %package demo | |
99 | Summary: Demo application for PolicyKit-gnome | |
100 | Summary(pl.UTF-8): Aplikacja demonstracyjna dla pakietu PolicyKit-gnome | |
101 | Group: X11/Applications | |
102 | Requires: %{name} = %{version}-%{release} | |
103 | ||
104 | %description demo | |
105 | PolicyKit-gnome-demo provides a sample application that demonstrates | |
106 | the features of both PolicyKit and PolicyKit-gnome. You normally don't | |
107 | want to have this package installed. | |
108 | ||
109 | %description demo -l pl.UTF-8 | |
110 | Pakiet PolicyKit-gnome-demo zawiera przykładową aplikację | |
111 | demonstrującą możliwości pakietów PolicyKit i PolicyKit-gnome. Zwykle | |
112 | ten pakiet nie powinien być instalowany. | |
113 | ||
114 | %prep | |
115 | %setup -q | |
116 | ||
117 | %build | |
118 | %{__intltoolize} | |
119 | %{__libtoolize} | |
120 | %{__aclocal} | |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
124 | %configure \ | |
125 | %{!?with_examples:--disable-examples} \ | |
126 | --with-html-dir=%{_gtkdocdir} | |
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
135 | %find_lang %{name} | |
136 | ||
137 | %clean | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %post | |
141 | %gconf_schema_install polkit-gnome.schemas | |
142 | ||
143 | %preun | |
144 | %gconf_schema_uninstall polkit-gnome.schemas | |
145 | ||
146 | %post libs -p /sbin/ldconfig | |
147 | %postun libs -p /sbin/ldconfig | |
148 | ||
149 | %files -f %{name}.lang | |
150 | %defattr(644,root,root,755) | |
151 | %doc AUTHORS ChangeLog NEWS TODO | |
152 | %attr(755,root,root) %{_bindir}/polkit-gnome-authorization | |
153 | %attr(755,root,root) %{_libdir}/polkit-gnome-manager | |
154 | %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas | |
155 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.service | |
156 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.AuthorizationManager.service | |
157 | %{_datadir}/dbus-1/services/gnome-org.freedesktop.PolicyKit.AuthenticationAgent.service | |
158 | %{_desktopdir}/polkit-gnome-authorization.desktop | |
159 | ||
160 | %files libs | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{_libdir}/libpolkit-gnome.so.*.*.* | |
163 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gnome.so.0 | |
164 | ||
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/libpolkit-gnome.so | |
168 | %{_libdir}/libpolkit-gnome.la | |
169 | %{_includedir}/PolicyKit/polkit-gnome | |
170 | %{_pkgconfigdir}/polkit-gnome.pc | |
171 | ||
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libpolkit-gnome.a | |
175 | ||
176 | %files apidocs | |
177 | %defattr(644,root,root,755) | |
178 | %{_gtkdocdir}/polkit-gnome | |
179 | ||
180 | %if %{?with_examples} | |
181 | %files demo | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_bindir}/polkit-gnome-example | |
184 | %{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy | |
185 | %endif |