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