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