1 | %define dbus_version 1.2 |
---|
2 | %define dbus_glib_version 0.80 |
---|
3 | %define gtk2_version 2.16 |
---|
4 | %define gnome_vfs2_version 2.24 |
---|
5 | %define libsexy_version 0.1.11 |
---|
6 | %define gnome_doc_utils_version 0.3.2 |
---|
7 | %define polkit_version 0.9 |
---|
8 | %define intltool_version 0.35 |
---|
9 | |
---|
10 | Summary: PolicyKit integration for the GNOME desktop |
---|
11 | Name: PolicyKit-gnome |
---|
12 | Version: 0.9.2 |
---|
13 | Release: 2%{?_dist_release} |
---|
14 | License: GPLv2+ |
---|
15 | Group: System Environment/Libraries |
---|
16 | URL: http://gitweb.freedesktop.org/?p=users/david/PolicyKit-gnome.git;a=summary |
---|
17 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2 |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
19 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
20 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
21 | BuildRequires: dbus-glib >= %{dbus_glib_version} |
---|
22 | BuildRequires: gtk2-devel >= %{gtk2_version} |
---|
23 | BuildRequires: gnome-vfs2-devel >= %{gnome_vfs2_version} |
---|
24 | BuildRequires: libsexy-devel >= %{libsexy_version} |
---|
25 | BuildRequires: PolicyKit-devel >= %{polkit_version} |
---|
26 | BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version} |
---|
27 | BuildRequires: intltool >= %{intltool_version} |
---|
28 | BuildRequires: gettext |
---|
29 | BuildRequires: desktop-file-utils |
---|
30 | Requires: dbus >= %{dbus_version} |
---|
31 | Requires: dbus-glib >= %{dbus_glib_version} |
---|
32 | Requires: gtk2 >= %{gtk2_version} |
---|
33 | Requires: gnome-vfs2 >= %{gnome_vfs2_version} |
---|
34 | Requires: PolicyKit >= %{polkit_version} |
---|
35 | Requires: libsexy >= %{libsexy_version} |
---|
36 | |
---|
37 | Patch0: PolicyKit-gnome-0.9.2-dont-spawn-when-running-under-gdm.patch |
---|
38 | Patch1: PolicyKit-gnome-0.9.2-fix-clickable-buttons.patch |
---|
39 | |
---|
40 | %description |
---|
41 | PolicyKit-gnome provides a GNOME integration library and tools for |
---|
42 | PolicyKit including an Authentication Agent that matches the look and |
---|
43 | feel of the GNOME desktop. |
---|
44 | |
---|
45 | %package demo |
---|
46 | License: GPLv2+ |
---|
47 | Summary: Demo application for PolicyKit-gnome |
---|
48 | Group: Development/Libraries |
---|
49 | Requires: %{name} = %{version}-%{release} |
---|
50 | |
---|
51 | %description demo |
---|
52 | Policy-gnome-demo provides a sample application that demonstrates the |
---|
53 | features of both PolicyKit and PolicyKit-gnome. You normally don't |
---|
54 | want to have this package installed. |
---|
55 | |
---|
56 | %package libs |
---|
57 | License: LGPLv2+ |
---|
58 | Summary: PolicyKit-gnome libraries |
---|
59 | Group: Development/Libraries |
---|
60 | Requires: gtk2 >= %{gtk2_version} |
---|
61 | Requires: PolicyKit >= %{polkit_version} |
---|
62 | |
---|
63 | %description libs |
---|
64 | Libraries provided by PolicyKit-gnome |
---|
65 | |
---|
66 | %package devel |
---|
67 | License: LGPLv2+ |
---|
68 | Summary: Headers, libraries and API docs for PolicyKit-gnome |
---|
69 | Group: Development/Libraries |
---|
70 | Requires: %{name} = %{version}-%{release} |
---|
71 | Requires: pkgconfig |
---|
72 | Requires: PolicyKit-devel >= %{polkit_version} |
---|
73 | Requires: PolicyKit-docs >= %{polkit_version} |
---|
74 | |
---|
75 | %description devel |
---|
76 | This package provides headers, libraries and API docs for |
---|
77 | PolicyKit-gnome. |
---|
78 | |
---|
79 | %prep |
---|
80 | %setup -q |
---|
81 | %patch0 -p0 -b .no-spawning-under-gdm |
---|
82 | %patch1 -p0 -b .fix-clickable-buttons |
---|
83 | |
---|
84 | |
---|
85 | %build |
---|
86 | %configure |
---|
87 | make |
---|
88 | |
---|
89 | %install |
---|
90 | rm -rf $RPM_BUILD_ROOT |
---|
91 | |
---|
92 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
93 | |
---|
94 | desktop-file-install --delete-original \ |
---|
95 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
96 | --remove-only-show-in=GNOME \ |
---|
97 | $RPM_BUILD_ROOT%{_datadir}/applications/polkit-gnome-authorization.desktop |
---|
98 | |
---|
99 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
100 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
101 | |
---|
102 | %find_lang %{name} |
---|
103 | |
---|
104 | %clean |
---|
105 | rm -rf $RPM_BUILD_ROOT |
---|
106 | |
---|
107 | |
---|
108 | %post |
---|
109 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
110 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas >& /dev/null || : |
---|
111 | |
---|
112 | %pre |
---|
113 | if [ "$1" -gt 1 ]; then |
---|
114 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
115 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas >& /dev/null || : |
---|
116 | fi |
---|
117 | |
---|
118 | %preun |
---|
119 | if [ "$1" -eq 0 ]; then |
---|
120 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
121 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas >& /dev/null || : |
---|
122 | fi |
---|
123 | |
---|
124 | |
---|
125 | %files -f %{name}.lang |
---|
126 | %defattr(-,root,root,-) |
---|
127 | |
---|
128 | %doc README AUTHORS NEWS COPYING HACKING TODO |
---|
129 | |
---|
130 | %{_libexecdir}/polkit-gnome-manager |
---|
131 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.service |
---|
132 | %{_datadir}/dbus-1/services/org.gnome.PolicyKit.AuthorizationManager.service |
---|
133 | %{_datadir}/dbus-1/services/gnome-org.freedesktop.PolicyKit.AuthenticationAgent.service |
---|
134 | |
---|
135 | %{_bindir}/polkit-gnome-authorization |
---|
136 | %{_datadir}/applications/polkit-gnome-authorization.desktop |
---|
137 | %{_sysconfdir}/gconf/schemas/polkit-gnome.schemas |
---|
138 | |
---|
139 | %files libs |
---|
140 | |
---|
141 | %{_libdir}/lib*.so.* |
---|
142 | |
---|
143 | %files devel |
---|
144 | |
---|
145 | %{_libdir}/lib*.so |
---|
146 | %{_libdir}/pkgconfig/* |
---|
147 | %{_includedir}/* |
---|
148 | |
---|
149 | %dir %{_datadir}/gtk-doc/html/polkit-gnome |
---|
150 | %{_datadir}/gtk-doc/html/polkit-gnome/* |
---|
151 | |
---|
152 | %files demo |
---|
153 | %defattr(-,root,root,-) |
---|
154 | %{_bindir}/polkit-gnome-example |
---|
155 | %{_datadir}/PolicyKit/policy/*.policy |
---|
156 | |
---|
157 | %changelog |
---|
158 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.2-2 |
---|
159 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
160 | |
---|
161 | * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.2-1 |
---|
162 | - new upstream release |
---|
163 | |
---|
164 | * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9-1 |
---|
165 | - new upstream release |
---|
166 | |
---|
167 | * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8-6 |
---|
168 | - initial build for Vine Linux |
---|
169 | |
---|
170 | * Thu May 1 2008 David Zeuthen <davidz@redhat.com> - 0.8-5%{?dist} |
---|
171 | - Rebuild |
---|
172 | |
---|
173 | * Thu May 1 2008 David Zeuthen <davidz@redhat.com> - 0.8-4%{?dist} |
---|
174 | - Don't spawn stuff under gdm |
---|
175 | |
---|
176 | * Thu Apr 17 2008 David Zeuthen <davidz@redhat.com> - 0.8-3%{?dist} |
---|
177 | - Fix i18n (#442938) |
---|
178 | |
---|
179 | * Thu Apr 17 2008 Matthias Clasen <mclasen@redhat.com> - 0.8-2%{?dist} |
---|
180 | - Show the menu item in other desktops too (#442814) |
---|
181 | |
---|
182 | * Wed Apr 16 2008 David Zeuthen <davidz@redhat.com> - 0.8-1%{?dist} |
---|
183 | - Upstream release 0.8 |
---|
184 | |
---|
185 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7-3 |
---|
186 | - Autorebuild for GCC 4.3 |
---|
187 | |
---|
188 | * Tue Dec 18 2007 David Zeuthen <davidz@redhat.com> - 0.7-2%{?dist} |
---|
189 | - Avoid crashing when an authorization is blocked for a user without ~/.face |
---|
190 | |
---|
191 | * Thu Dec 6 2007 David Zeuthen <davidz@redhat.com> - 0.7-1%{?dist} |
---|
192 | - Update to latest upstream release |
---|
193 | |
---|
194 | * Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.6-2 |
---|
195 | - Rebuild against new dbus-glib |
---|
196 | |
---|
197 | * Thu Oct 11 2007 David Zeuthen <davidz@redhat.com> - 0.6-1%{?dist} |
---|
198 | - Update to latest upstream release |
---|
199 | |
---|
200 | * Tue Sep 25 2007 David Zeuthen <davidz@redhat.com> - 0.6-0.git20070925%{?dist} |
---|
201 | - Update to git snapshot |
---|
202 | |
---|
203 | * Mon Sep 3 2007 Matthias Clasen <mclasen@redhat.com> - 0.5-4 |
---|
204 | - Add gettext BR |
---|
205 | |
---|
206 | * Fri Aug 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-3%{?dist} |
---|
207 | - Rebuild |
---|
208 | |
---|
209 | * Fri Aug 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-2%{?dist} |
---|
210 | - Require newer PolicyKit release |
---|
211 | |
---|
212 | * Fri Aug 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-1%{?dist} |
---|
213 | - Upstream release 0.5 |
---|
214 | |
---|
215 | * Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731.4%{?dist} |
---|
216 | - Add BR for intltool |
---|
217 | |
---|
218 | * Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731.3%{?dist} |
---|
219 | - Add BR for gnome-doc-utils |
---|
220 | |
---|
221 | * Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731.2%{?dist} |
---|
222 | - Rebuild |
---|
223 | |
---|
224 | * Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731.1%{?dist} |
---|
225 | - Rebuild and require PolicyKit >= 0.5 |
---|
226 | |
---|
227 | * Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731%{?dist} |
---|
228 | - Update to git snapshot |
---|
229 | |
---|
230 | * Wed Jul 25 2007 David Zeuthen <davidz@redhat.com> - 0.4-1%{?dist} |
---|
231 | - Update to 0.4 |
---|
232 | |
---|
233 | * Tue Jun 19 2007 David Zeuthen <davidz@redhat.com> - 0.3-1%{?dist} |
---|
234 | - Initial build. |
---|
235 | |
---|