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