]>
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 |
e4672b83 | 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 |
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 |
e4672b83 | 36 | %if "%{pld_release}" == "ti" |
37 | Requires: udev-core >= 1:124-3 | |
38 | %else | |
af5efbd7 | 39 | Requires: udev-core >= 1:127 |
e4672b83 | 40 | %endif |
a2d83637 MB |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | PackageKit is a D-Bus abstraction layer that allows the session user | |
45 | to manage packages in a secure way using a cross-distro, | |
46 | cross-architecture API. | |
47 | ||
85d27e4f JB |
48 | %description -l pl.UTF-8 |
49 | PackageKit to warstwa abstrakcji D-Bus pozwalająca użytkownikowi | |
50 | sesyjnemu w bezpieczny sposob zarządzać pakietami przy użyciu API | |
51 | zgodnego z wieloma dystrybucjami i architekturami. | |
52 | ||
a2d83637 MB |
53 | %package libs |
54 | Summary: PackageKit library | |
55 | Summary(pl.UTF-8): Biblioteka PackageKit | |
56 | Group: Libraries | |
57 | ||
58 | %description libs | |
59 | PackageKit library. | |
60 | ||
61 | %description libs -l pl.UTF-8 | |
62 | Biblioteka PackageKit. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files for PackageKit | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PackageKit | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-libs = %{version}-%{release} | |
6808f644 | 69 | Requires: glib2-devel >= 1:2.16.1 |
a2d83637 MB |
70 | |
71 | %description devel | |
72 | Header files for PackageKit library. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki PackageKit. | |
76 | ||
77 | %package static | |
78 | Summary: Static PackageKit library | |
79 | Summary(pl.UTF-8): Statyczna biblioteka PackageKit | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | Static PackageKit library. | |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Statyczna biblioteka PackageKit. | |
88 | ||
89 | %package apidocs | |
90 | Summary: PackageKit library API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
92 | Group: Documentation | |
93 | Requires: gtk-doc-common | |
94 | ||
95 | %description apidocs | |
96 | PackageKit library API documentation. | |
97 | ||
98 | %description apidocs -l pl.UTF-8 | |
99 | Dokumentacja API biblioteki PackageKit. | |
100 | ||
101 | %package -n bash-completion-packagekit | |
102 | Summary: bash-completion for PackageKit | |
103 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla PackageKit | |
104 | Group: Applications/Shells | |
105 | Requires: bash-completion | |
106 | ||
107 | %description -n bash-completion-packagekit | |
108 | This package provides bash-completion for PackageKit. | |
109 | ||
110 | %description -n bash-completion-packagekit -l pl.UTF-8 | |
111 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla PackageKit. | |
112 | ||
113 | %package -n pm-utils-packagekit | |
114 | Summary: PackageKit script for pm-utils | |
85d27e4f | 115 | Summary(pl.UTF-8): Skrypt PackageKit dla pm-utils |
a2d83637 MB |
116 | Group: Applications/System |
117 | Requires: pm-utils | |
118 | ||
119 | %description -n pm-utils-packagekit | |
120 | PackageKit script for pm-utils. | |
121 | ||
85d27e4f JB |
122 | %description -n pm-utils-packagekit -l pl.UTF-8 |
123 | Skrypt PackageKit dla pm-utils. | |
124 | ||
a2d83637 MB |
125 | %package -n python-packagekit |
126 | Summary: PackageKit Python bindings | |
127 | Summary(pl.UTF-8): Wiązania PackageKit dla Pythona | |
128 | Group: Development/Languages/Python | |
129 | Requires: python-dbus | |
130 | Requires: python-pygobject | |
131 | ||
132 | %description -n python-packagekit | |
133 | PackageKit Python bindings. | |
134 | ||
135 | %description -n python-packagekit | |
136 | Wiązania PackageKit dla Pythona. | |
137 | ||
138 | %prep | |
139 | %setup -q | |
ba46b0f2 | 140 | %patch0 -p0 |
a2d83637 MB |
141 | |
142 | %build | |
58e98be4 | 143 | %{__intltoolize} |
a2d83637 MB |
144 | %{__libtoolize} |
145 | %{__aclocal} | |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
149 | %configure \ | |
150 | --enable-poldek \ | |
fcd0bc5c MB |
151 | --with-html-dir=%{_gtkdocdir} \ |
152 | --with-default-backend=poldek | |
a2d83637 MB |
153 | %{__make} |
154 | ||
155 | %install | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %{__make} install \ | |
159 | DESTDIR=$RPM_BUILD_ROOT | |
160 | ||
161 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} | |
162 | ||
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 |
a2d83637 MB |
187 | %dir %{_libdir}/packagekit-backend |
188 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
189 | %attr(755,root,root) %{_sbindir}/packagekitd | |
190 | %dir %{_sysconfdir}/PackageKit | |
191 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
af5efbd7 | 192 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Vendor.conf |
55709353 SP |
193 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
194 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf | |
af5efbd7 JB |
195 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/51-packagekit-firmware.rules |
196 | %attr(755,root,root) /lib/udev/packagekit-firmware.sh | |
57472eb9 | 197 | %{_datadir}/PolicyKit/policy/org.freedesktop.packagekit.policy |
a2d83637 | 198 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
08c67dac | 199 | %{_datadir}/mime/packages/packagekit-package-list.xml |
200 | %{_datadir}/mime/packages/packagekit-servicepack.xml | |
fcd0bc5c | 201 | %{_datadir}/mime/packages/packagekit-catalog.xml |
a2d83637 | 202 | %{_mandir}/man1/pkcon.1* |
78293e06 MB |
203 | %{_mandir}/man1/pkgenpack.1* |
204 | %{_mandir}/man1/pkmon.1* | |
205 | %dir /var/cache/PackageKit | |
206 | %dir /var/cache/PackageKit/downloads | |
a2d83637 MB |
207 | %dir /var/lib/PackageKit |
208 | %ghost /var/lib/PackageKit/transactions.db | |
08c67dac | 209 | %ghost /var/lib/PackageKit/job_count.dat |
a2d83637 | 210 | %dir /var/run/PackageKit |
a2d83637 MB |
211 | |
212 | %files libs | |
213 | %defattr(644,root,root,755) | |
08c67dac | 214 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so.*.*.* |
215 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib.so.11 | |
08c67dac | 216 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so.*.*.* |
217 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-qt.so.11 | |
218 | ||
a2d83637 MB |
219 | %files devel |
220 | %defattr(644,root,root,755) | |
404651ec | 221 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so |
404651ec | 222 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so |
af5efbd7 JB |
223 | %{_libdir}/libpackagekit-glib.la |
224 | %{_libdir}/libpackagekit-qt.la | |
225 | %{_includedir}/PackageKit | |
08c67dac | 226 | %{_pkgconfigdir}/packagekit-glib.pc |
227 | %{_pkgconfigdir}/packagekit-qt.pc | |
228 | ||
a2d83637 MB |
229 | %files static |
230 | %defattr(644,root,root,755) | |
08c67dac | 231 | %{_libdir}/libpackagekit-glib.a |
232 | %{_libdir}/libpackagekit-qt.a | |
a2d83637 MB |
233 | |
234 | %files apidocs | |
235 | %defattr(644,root,root,755) | |
236 | %{_gtkdocdir}/PackageKit | |
237 | ||
238 | %files -n bash-completion-packagekit | |
239 | %defattr(644,root,root,755) | |
240 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
241 | ||
242 | %files -n pm-utils-packagekit | |
243 | %defattr(644,root,root,755) | |
244 | %{_libdir}/pm-utils/sleep.d/95packagekit | |
245 | ||
246 | %files -n python-packagekit | |
247 | %defattr(644,root,root,755) | |
248 | %dir %{py_sitescriptdir}/packagekit | |
249 | %{py_sitescriptdir}/packagekit/*.py[co] |