]>
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 | 23 | BuildRequires: python-devel |
d6b734e5 | 24 | BuildRequires: readline-devel |
a2d83637 MB |
25 | BuildRequires: rpm-pythonprov |
26 | BuildRequires: sqlite3-devel | |
27 | Requires: %{name}-libs = %{version}-%{release} | |
6808f644 | 28 | Requires: PolicyKit >= 0.8 |
8d48627e | 29 | Requires: crondaemon |
6808f644 | 30 | Requires: poldek >= 0.30-0.20080225.00.7 |
a2d83637 MB |
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} | |
6808f644 | 54 | Requires: glib2-devel >= 1:2.16.1 |
a2d83637 MB |
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 | |
a2d83637 MB |
121 | |
122 | %build | |
123 | %{__libtoolize} | |
124 | %{__aclocal} | |
125 | %{__autoconf} | |
126 | %{__autoheader} | |
127 | %{__automake} | |
128 | %configure \ | |
129 | --enable-poldek \ | |
130 | --with-html-dir=%{_gtkdocdir} | |
131 | %{__make} | |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
139 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} | |
140 | ||
6808f644 MB |
141 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no_nb,nb} |
142 | ||
37e3f12f ER |
143 | %if "%{_lib}" != "lib" |
144 | mv $RPM_BUILD_ROOT/{lib,%{_lib}} | |
145 | %endif | |
5cdd08c4 | 146 | |
a2d83637 MB |
147 | %py_postclean |
148 | ||
6808f644 MB |
149 | %find_lang %{name} |
150 | ||
a2d83637 MB |
151 | %clean |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %post libs -p /sbin/ldconfig | |
155 | %postun libs -p /sbin/ldconfig | |
156 | ||
6808f644 | 157 | %files -f %{name}.lang |
a2d83637 MB |
158 | %defattr(644,root,root,755) |
159 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
160 | %attr(755,root,root) %{_bindir}/packagekit-bugreport.sh | |
a2d83637 MB |
161 | %attr(755,root,root) %{_bindir}/pkcon |
162 | %attr(755,root,root) %{_bindir}/pkmon | |
8d48627e | 163 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
8f66d5fe PZ |
164 | %attr(755,root,root) %{_libexecdir}/pk-import-desktop |
165 | %attr(755,root,root) %{_libexecdir}/pk-import-specspo | |
a2d83637 MB |
166 | %dir %{_libdir}/packagekit-backend |
167 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
168 | %attr(755,root,root) %{_sbindir}/packagekitd | |
169 | %dir %{_sysconfdir}/PackageKit | |
170 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
8d48627e | 171 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysconfig/packagekit-background |
a2d83637 | 172 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf |
57472eb9 | 173 | %{_datadir}/PolicyKit/policy/org.freedesktop.packagekit.policy |
a2d83637 MB |
174 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
175 | %{_mandir}/man1/pkmon.1* | |
176 | %{_mandir}/man1/pkcon.1* | |
177 | %dir /var/lib/PackageKit | |
178 | %ghost /var/lib/PackageKit/transactions.db | |
179 | %dir /var/run/PackageKit | |
180 | %ghost /var/run/PackageKit/job_count.dat | |
6808f644 MB |
181 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/51-packagekit-firmware.rules |
182 | %attr(755,root,root) /%{_lib}/udev/packagekit-firmware.sh | |
a2d83637 MB |
183 | |
184 | %files libs | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libpackagekit.so.*.*.* | |
187 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit.so.3 | |
188 | ||
189 | %files devel | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/libpackagekit.so | |
192 | %{_libdir}/libpackagekit.la | |
193 | %{_pkgconfigdir}/packagekit.pc | |
194 | %{_includedir}/packagekit | |
195 | %{_includedir}/packagekit-backend | |
196 | ||
197 | %files static | |
198 | %defattr(644,root,root,755) | |
199 | %{_libdir}/libpackagekit.a | |
200 | ||
201 | %files apidocs | |
202 | %defattr(644,root,root,755) | |
203 | %{_gtkdocdir}/PackageKit | |
204 | ||
205 | %files -n bash-completion-packagekit | |
206 | %defattr(644,root,root,755) | |
207 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
208 | ||
209 | %files -n pm-utils-packagekit | |
210 | %defattr(644,root,root,755) | |
211 | %{_libdir}/pm-utils/sleep.d/95packagekit | |
212 | ||
213 | %files -n python-packagekit | |
214 | %defattr(644,root,root,755) | |
215 | %dir %{py_sitescriptdir}/packagekit | |
216 | %{py_sitescriptdir}/packagekit/*.py[co] |