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