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