]>
Commit | Line | Data |
---|---|---|
8b69dc65 SS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without examples | |
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 |
28bf57a8 | 8 | Version: 0.9 |
f23b16fa | 9 | Release: 1 |
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 |
28bf57a8 | 13 | # Source0-md5: 68374b04289ce99d95a9df19d6217344 |
76100e07 | 14 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
28bf57a8 MB |
15 | BuildRequires: GConf2-devel |
16 | BuildRequires: PolicyKit-devel >= 0.9 | |
8b69dc65 | 17 | %{?with_examples:BuildRequires: PolicyKit} |
76100e07 JB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake >= 1:1.9 | |
20 | BuildRequires: dbus-glib-devel >= 0.71 | |
28bf57a8 | 21 | BuildRequires: gettext-devel |
76100e07 | 22 | BuildRequires: gnome-common >= 2.0 |
28bf57a8 | 23 | BuildRequires: gnome-doc-utils |
69b7dddb JB |
24 | BuildRequires: gnome-vfs2-devel >= 2.4 |
25 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
26 | BuildRequires: gtk-doc >= 1.3 | |
4e96e2a3 | 27 | BuildRequires: intltool >= 0.35.0 |
76100e07 | 28 | BuildRequires: libgnomeui-devel >= 2.14.0 |
69b7dddb | 29 | BuildRequires: libsexy-devel >= 0.1.11 |
76100e07 JB |
30 | BuildRequires: libtool |
31 | BuildRequires: pkgconfig | |
28bf57a8 | 32 | Requires(post,preun): GConf2 |
69b7dddb | 33 | Requires: %{name}-libs = %{version}-%{release} |
76100e07 JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
70d60b45 MB |
37 | PolicyKit-gnome provides a D-BUS session bus service that is used to |
38 | bring up authentication dialogs used for obtaining privileges. | |
76100e07 JB |
39 | |
40 | %description -l pl.UTF-8 | |
4e11cd41 JB |
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ń. | |
76100e07 | 44 | |
69b7dddb JB |
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 | |
28bf57a8 | 49 | Requires: PolicyKit-libs >= 0.9 |
69b7dddb JB |
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 | |
033ad8eb | 61 | Group: X11/Development/Libraries |
69b7dddb | 62 | Requires: %{name}-libs = %{version}-%{release} |
28bf57a8 | 63 | Requires: PolicyKit-devel >= 0.9 |
69b7dddb JB |
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 | |
033ad8eb | 77 | Group: X11/Development/Libraries |
69b7dddb JB |
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 | ||
28bf57a8 MB |
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 | ||
70d60b45 MB |
98 | %package demo |
99 | Summary: Demo application for PolicyKit-gnome | |
4e11cd41 | 100 | Summary(pl.UTF-8): Aplikacja demonstracyjna dla pakietu PolicyKit-gnome |
70d60b45 MB |
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 | ||
4e11cd41 JB |
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 | ||
76100e07 JB |
114 | %prep |
115 | %setup -q | |
116 | ||
117 | %build | |
4e96e2a3 | 118 | %{__intltoolize} |
76100e07 JB |
119 | %{__libtoolize} |
120 | %{__aclocal} | |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
033ad8eb | 124 | %configure \ |
8b69dc65 | 125 | %{!?with_examples:--disable-examples} \ |
033ad8eb | 126 | --with-html-dir=%{_gtkdocdir} |
76100e07 JB |
127 | %{__make} |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
4e96e2a3 MB |
135 | %find_lang %{name} |
136 | ||
76100e07 JB |
137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
28bf57a8 MB |
140 | %post |
141 | %gconf_schemas_install polkit-gnome.schemas | |
142 | ||
143 | %preun | |
144 | %gconf_schemas_uninstall polkit-gnome.schemas | |
145 | ||
a03a1f92 MB |
146 | %post libs -p /sbin/ldconfig |
147 | %postun libs -p /sbin/ldconfig | |
148 | ||
4e96e2a3 | 149 | %files -f %{name}.lang |
76100e07 | 150 | %defattr(644,root,root,755) |
69b7dddb | 151 | %doc AUTHORS ChangeLog NEWS TODO |
033ad8eb | 152 | %attr(755,root,root) %{_bindir}/polkit-gnome-authorization |
70d60b45 | 153 | %attr(755,root,root) %{_libdir}/polkit-gnome-manager |
28bf57a8 | 154 | %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas |
70d60b45 | 155 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.service |
69b7dddb JB |
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 | |
69b7dddb JB |
171 | |
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libpolkit-gnome.a | |
70d60b45 | 175 | |
28bf57a8 MB |
176 | %files apidocs |
177 | %defattr(644,root,root,755) | |
178 | %{_gtkdocdir}/polkit-gnome | |
179 | ||
8b69dc65 | 180 | %if %{?with_examples} |
70d60b45 MB |
181 | %files demo |
182 | %defattr(644,root,root,755) | |
76100e07 | 183 | %attr(755,root,root) %{_bindir}/polkit-gnome-example |
28bf57a8 | 184 | %{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy |
8b69dc65 | 185 | %endif |