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