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