]>
Commit | Line | Data |
---|---|---|
85d27e4f JB |
1 | Summary: System daemon that is a D-Bus abstraction layer for package management |
2 | Summary(pl.UTF-8): Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami | |
a2d83637 | 3 | Name: PackageKit |
08c67dac | 4 | Version: 0.3.12 |
8a975372 | 5 | Release: 1 |
a2d83637 | 6 | License: GPL v2+ |
85d27e4f | 7 | Group: Applications/System |
58e98be4 | 8 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.gz |
08c67dac | 9 | # Source0-md5: e6189d0882812744b87aecef25a4ac08 |
ba46b0f2 | 10 | Patch0: %{name}-ac.patch |
a2d83637 MB |
11 | URL: http://www.packagekit.org/ |
12 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
6808f644 | 13 | BuildRequires: PolicyKit-devel >= 0.8 |
a2d83637 MB |
14 | BuildRequires: autoconf >= 2.52 |
15 | BuildRequires: automake | |
6808f644 | 16 | BuildRequires: dbus-devel >= 1.2.0 |
f5f5e3ff | 17 | BuildRequires: dbus-glib-devel >= 0.76 |
c26aaa93 | 18 | BuildRequires: docbook-to-man |
a2d83637 | 19 | BuildRequires: gettext-devel |
6808f644 | 20 | BuildRequires: glib2-devel >= 1:2.16.1 |
a2d83637 | 21 | BuildRequires: gtk-doc >= 1.9 |
78293e06 | 22 | BuildRequires: libarchive-devel |
a2d83637 MB |
23 | BuildRequires: libtool |
24 | BuildRequires: pkgconfig | |
78293e06 | 25 | BuildRequires: poldek-devel >= 0.30-0.20080820.23.2 |
a2d83637 | 26 | BuildRequires: python-devel |
55709353 | 27 | BuildRequires: rpm-devel |
a2d83637 | 28 | BuildRequires: rpm-pythonprov |
85d27e4f | 29 | BuildRequires: rpmbuild(macros) >= 1.311 |
a2d83637 | 30 | BuildRequires: sqlite3-devel |
fcd0bc5c | 31 | Requires(post,postun): shared-mime-info |
a2d83637 | 32 | Requires: %{name}-libs = %{version}-%{release} |
6808f644 | 33 | Requires: PolicyKit >= 0.8 |
8d48627e | 34 | Requires: crondaemon |
78293e06 | 35 | Requires: poldek >= 0.30-0.20080820.23.2 |
a2d83637 MB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | PackageKit is a D-Bus abstraction layer that allows the session user | |
40 | to manage packages in a secure way using a cross-distro, | |
41 | cross-architecture API. | |
42 | ||
85d27e4f JB |
43 | %description -l pl.UTF-8 |
44 | PackageKit to warstwa abstrakcji D-Bus pozwalająca użytkownikowi | |
45 | sesyjnemu w bezpieczny sposob zarządzać pakietami przy użyciu API | |
46 | zgodnego z wieloma dystrybucjami i architekturami. | |
47 | ||
a2d83637 MB |
48 | %package libs |
49 | Summary: PackageKit library | |
50 | Summary(pl.UTF-8): Biblioteka PackageKit | |
51 | Group: Libraries | |
52 | ||
53 | %description libs | |
54 | PackageKit library. | |
55 | ||
56 | %description libs -l pl.UTF-8 | |
57 | Biblioteka PackageKit. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for PackageKit | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PackageKit | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-libs = %{version}-%{release} | |
6808f644 | 64 | Requires: glib2-devel >= 1:2.16.1 |
a2d83637 MB |
65 | |
66 | %description devel | |
67 | Header files for PackageKit library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki PackageKit. | |
71 | ||
72 | %package static | |
73 | Summary: Static PackageKit library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka PackageKit | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static PackageKit library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka PackageKit. | |
83 | ||
84 | %package apidocs | |
85 | Summary: PackageKit library API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
89 | ||
90 | %description apidocs | |
91 | PackageKit library API documentation. | |
92 | ||
93 | %description apidocs -l pl.UTF-8 | |
94 | Dokumentacja API biblioteki PackageKit. | |
95 | ||
96 | %package -n bash-completion-packagekit | |
97 | Summary: bash-completion for PackageKit | |
98 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla PackageKit | |
99 | Group: Applications/Shells | |
100 | Requires: bash-completion | |
101 | ||
102 | %description -n bash-completion-packagekit | |
103 | This package provides bash-completion for PackageKit. | |
104 | ||
105 | %description -n bash-completion-packagekit -l pl.UTF-8 | |
106 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla PackageKit. | |
107 | ||
108 | %package -n pm-utils-packagekit | |
109 | Summary: PackageKit script for pm-utils | |
85d27e4f | 110 | Summary(pl.UTF-8): Skrypt PackageKit dla pm-utils |
a2d83637 MB |
111 | Group: Applications/System |
112 | Requires: pm-utils | |
113 | ||
114 | %description -n pm-utils-packagekit | |
115 | PackageKit script for pm-utils. | |
116 | ||
85d27e4f JB |
117 | %description -n pm-utils-packagekit -l pl.UTF-8 |
118 | Skrypt PackageKit dla pm-utils. | |
119 | ||
a2d83637 MB |
120 | %package -n python-packagekit |
121 | Summary: PackageKit Python bindings | |
122 | Summary(pl.UTF-8): Wiązania PackageKit dla Pythona | |
123 | Group: Development/Languages/Python | |
124 | Requires: python-dbus | |
125 | Requires: python-pygobject | |
126 | ||
127 | %description -n python-packagekit | |
128 | PackageKit Python bindings. | |
129 | ||
130 | %description -n python-packagekit | |
131 | Wiązania PackageKit dla Pythona. | |
132 | ||
133 | %prep | |
134 | %setup -q | |
ba46b0f2 | 135 | %patch0 -p0 |
a2d83637 MB |
136 | |
137 | %build | |
58e98be4 | 138 | %{__intltoolize} |
a2d83637 MB |
139 | %{__libtoolize} |
140 | %{__aclocal} | |
141 | %{__autoconf} | |
142 | %{__autoheader} | |
143 | %{__automake} | |
144 | %configure \ | |
145 | --enable-poldek \ | |
fcd0bc5c MB |
146 | --with-html-dir=%{_gtkdocdir} \ |
147 | --with-default-backend=poldek | |
a2d83637 MB |
148 | %{__make} |
149 | ||
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %{__make} install \ | |
154 | DESTDIR=$RPM_BUILD_ROOT | |
155 | ||
156 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} | |
157 | ||
08c67dac | 158 | %if "%{_lib}" != "lib" |
159 | mv $RPM_BUILD_ROOT/{lib,%{_lib}} | |
160 | %endif | |
6808f644 | 161 | |
a2d83637 MB |
162 | %py_postclean |
163 | ||
6808f644 MB |
164 | %find_lang %{name} |
165 | ||
a2d83637 MB |
166 | %clean |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
fcd0bc5c MB |
169 | %post |
170 | %update_mime_database | |
171 | ||
172 | %postun | |
173 | %update_mime_database | |
174 | ||
85d27e4f | 175 | %post libs -p /sbin/ldconfig |
a2d83637 MB |
176 | %postun libs -p /sbin/ldconfig |
177 | ||
6808f644 | 178 | %files -f %{name}.lang |
a2d83637 MB |
179 | %defattr(644,root,root,755) |
180 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
181 | %attr(755,root,root) %{_bindir}/packagekit-bugreport.sh | |
a2d83637 | 182 | %attr(755,root,root) %{_bindir}/pkcon |
78293e06 | 183 | %attr(755,root,root) %{_bindir}/pkgenpack |
a2d83637 | 184 | %attr(755,root,root) %{_bindir}/pkmon |
8d48627e | 185 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
a2d83637 MB |
186 | %dir %{_libdir}/packagekit-backend |
187 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
188 | %attr(755,root,root) %{_sbindir}/packagekitd | |
189 | %dir %{_sysconfdir}/PackageKit | |
190 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
55709353 | 191 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
08c67dac | 192 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/PackageKit/Vendor.conf |
193 | ||
55709353 | 194 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf |
57472eb9 | 195 | %{_datadir}/PolicyKit/policy/org.freedesktop.packagekit.policy |
a2d83637 | 196 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
08c67dac | 197 | %{_datadir}/mime/packages/packagekit-package-list.xml |
198 | %{_datadir}/mime/packages/packagekit-servicepack.xml | |
fcd0bc5c | 199 | %{_datadir}/mime/packages/packagekit-catalog.xml |
a2d83637 | 200 | %{_mandir}/man1/pkcon.1* |
78293e06 MB |
201 | %{_mandir}/man1/pkgenpack.1* |
202 | %{_mandir}/man1/pkmon.1* | |
203 | %dir /var/cache/PackageKit | |
204 | %dir /var/cache/PackageKit/downloads | |
a2d83637 MB |
205 | %dir /var/lib/PackageKit |
206 | %ghost /var/lib/PackageKit/transactions.db | |
08c67dac | 207 | %ghost /var/lib/PackageKit/job_count.dat |
208 | ||
a2d83637 | 209 | %dir /var/run/PackageKit |
6808f644 | 210 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/51-packagekit-firmware.rules |
08c67dac | 211 | %attr(755,root,root) /%{_lib}/udev/packagekit-firmware.sh |
a2d83637 MB |
212 | |
213 | %files libs | |
214 | %defattr(644,root,root,755) | |
08c67dac | 215 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so |
216 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib.so.11 | |
218 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so | |
219 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so.*.*.* | |
220 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-qt.so.11 | |
221 | ||
a2d83637 MB |
222 | |
223 | %files devel | |
224 | %defattr(644,root,root,755) | |
08c67dac | 225 | %{_includedir}/PackageKit |
226 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.la | |
227 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.la | |
228 | %{_pkgconfigdir}/packagekit-glib.pc | |
229 | %{_pkgconfigdir}/packagekit-qt.pc | |
230 | ||
a2d83637 MB |
231 | |
232 | %files static | |
233 | %defattr(644,root,root,755) | |
08c67dac | 234 | %{_libdir}/libpackagekit-glib.a |
235 | %{_libdir}/libpackagekit-qt.a | |
a2d83637 MB |
236 | |
237 | %files apidocs | |
238 | %defattr(644,root,root,755) | |
239 | %{_gtkdocdir}/PackageKit | |
240 | ||
241 | %files -n bash-completion-packagekit | |
242 | %defattr(644,root,root,755) | |
243 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
244 | ||
245 | %files -n pm-utils-packagekit | |
246 | %defattr(644,root,root,755) | |
247 | %{_libdir}/pm-utils/sleep.d/95packagekit | |
248 | ||
249 | %files -n python-packagekit | |
250 | %defattr(644,root,root,755) | |
251 | %dir %{py_sitescriptdir}/packagekit | |
252 | %{py_sitescriptdir}/packagekit/*.py[co] |