]>
Commit | Line | Data |
---|---|---|
8b69dc65 SS |
1 | # |
2 | # Conditional build: | |
3c7cd94d | 3 | %bcond_without examples # don't build example |
8b69dc65 | 4 | # |
70d60b45 | 5 | Summary: GNOME dialogs for PolicyKit |
4e11cd41 | 6 | Summary(pl.UTF-8): Okna dialogowe GNOME dla pakietu PolicyKit |
76100e07 | 7 | Name: PolicyKit-gnome |
aa9bf8cd | 8 | Version: 0.9.2 |
696ec421 | 9 | Release: 5 |
69b7dddb | 10 | License: LGPL v2+ (polkit-gnome library), GPL v2+ (D-Bus service) |
76100e07 | 11 | Group: X11/Applications |
944b7184 | 12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2 |
aa9bf8cd | 13 | # Source0-md5: fc478b168d0c926a9766b0b415ff4bbf |
72e2c3a7 | 14 | Patch0: %{name}-fix-clickable-buttons.patch |
f3169cc4 | 15 | Patch1: %{name}-desktop.patch |
76100e07 | 16 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
28bf57a8 MB |
17 | BuildRequires: GConf2-devel |
18 | BuildRequires: PolicyKit-devel >= 0.9 | |
8b69dc65 | 19 | %{?with_examples:BuildRequires: PolicyKit} |
76100e07 JB |
20 | BuildRequires: autoconf >= 2.50 |
21 | BuildRequires: automake >= 1:1.9 | |
22 | BuildRequires: dbus-glib-devel >= 0.71 | |
663d7870 | 23 | BuildRequires: docbook-dtd412-xml |
28bf57a8 | 24 | BuildRequires: gettext-devel |
76100e07 | 25 | BuildRequires: gnome-common >= 2.0 |
28bf57a8 | 26 | BuildRequires: gnome-doc-utils |
aa9bf8cd | 27 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
69b7dddb | 28 | BuildRequires: gtk-doc >= 1.3 |
4e96e2a3 | 29 | BuildRequires: intltool >= 0.35.0 |
76100e07 JB |
30 | BuildRequires: libgnomeui-devel >= 2.14.0 |
31 | BuildRequires: libtool | |
32 | BuildRequires: pkgconfig | |
28bf57a8 | 33 | Requires(post,preun): GConf2 |
69b7dddb | 34 | Requires: %{name}-libs = %{version}-%{release} |
76100e07 JB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
70d60b45 MB |
38 | PolicyKit-gnome provides a D-BUS session bus service that is used to |
39 | bring up authentication dialogs used for obtaining privileges. | |
76100e07 JB |
40 | |
41 | %description -l pl.UTF-8 | |
4e11cd41 JB |
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ń. | |
76100e07 | 45 | |
69b7dddb JB |
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 | |
28bf57a8 | 50 | Requires: PolicyKit-libs >= 0.9 |
69b7dddb JB |
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 | |
033ad8eb | 62 | Group: X11/Development/Libraries |
69b7dddb | 63 | Requires: %{name}-libs = %{version}-%{release} |
28bf57a8 | 64 | Requires: PolicyKit-devel >= 0.9 |
69b7dddb | 65 | Requires: dbus-devel >= 1.0 |
aa9bf8cd | 66 | Requires: gtk+2-devel >= 2:2.14.0 |
69b7dddb JB |
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 | |
033ad8eb | 78 | Group: X11/Development/Libraries |
69b7dddb JB |
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 | ||
28bf57a8 MB |
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 | ||
70d60b45 MB |
99 | %package demo |
100 | Summary: Demo application for PolicyKit-gnome | |
4e11cd41 | 101 | Summary(pl.UTF-8): Aplikacja demonstracyjna dla pakietu PolicyKit-gnome |
70d60b45 MB |
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 | ||
4e11cd41 JB |
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 | ||
76100e07 JB |
115 | %prep |
116 | %setup -q | |
72e2c3a7 | 117 | %patch0 -p1 |
f3169cc4 | 118 | %patch1 -p1 |
76100e07 JB |
119 | |
120 | %build | |
4e96e2a3 | 121 | %{__intltoolize} |
76100e07 JB |
122 | %{__libtoolize} |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %{__autoheader} | |
126 | %{__automake} | |
033ad8eb | 127 | %configure \ |
8b69dc65 | 128 | %{!?with_examples:--disable-examples} \ |
033ad8eb | 129 | --with-html-dir=%{_gtkdocdir} |
76100e07 JB |
130 | %{__make} |
131 | ||
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %{__make} install \ | |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
4e96e2a3 MB |
138 | %find_lang %{name} |
139 | ||
76100e07 JB |
140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
28bf57a8 | 143 | %post |
83bc6693 | 144 | %gconf_schema_install polkit-gnome.schemas |
28bf57a8 MB |
145 | |
146 | %preun | |
83bc6693 | 147 | %gconf_schema_uninstall polkit-gnome.schemas |
28bf57a8 | 148 | |
a03a1f92 MB |
149 | %post libs -p /sbin/ldconfig |
150 | %postun libs -p /sbin/ldconfig | |
151 | ||
4e96e2a3 | 152 | %files -f %{name}.lang |
76100e07 | 153 | %defattr(644,root,root,755) |
69b7dddb | 154 | %doc AUTHORS ChangeLog NEWS TODO |
033ad8eb | 155 | %attr(755,root,root) %{_bindir}/polkit-gnome-authorization |
70d60b45 | 156 | %attr(755,root,root) %{_libdir}/polkit-gnome-manager |
28bf57a8 | 157 | %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas |
70d60b45 | 158 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.service |
69b7dddb JB |
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 | |
69b7dddb JB |
174 | |
175 | %files static | |
176 | %defattr(644,root,root,755) | |
177 | %{_libdir}/libpolkit-gnome.a | |
70d60b45 | 178 | |
28bf57a8 MB |
179 | %files apidocs |
180 | %defattr(644,root,root,755) | |
181 | %{_gtkdocdir}/polkit-gnome | |
182 | ||
3c7cd94d | 183 | %if %{with examples} |
70d60b45 MB |
184 | %files demo |
185 | %defattr(644,root,root,755) | |
76100e07 | 186 | %attr(755,root,root) %{_bindir}/polkit-gnome-example |
28bf57a8 | 187 | %{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy |
8b69dc65 | 188 | %endif |