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