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