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