source: projects/specs/trunk/P/PackageKit/PackageKit-vl.spec @ 11983

Revision 11983, 7.8 KB checked in by tomop, 4 years ago (diff)

PackageKit?-1.1.12-1 and requirements

Line 
1%define _unpackaged_files_terminate_build 1
2
3# Basic Information
4Name:           PackageKit
5Version:        1.1.12
6Release:        1%{?_dist_release}
7License:        GPLv2
8Group:          Applications/System
9Source0:        http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
10Source100:      filter-requires-%{name}.sh
11# from autoconf-archive-2018.03.13
12# https://www.gnu.org/software/autoconf-archive/
13Source1000: ax_cxx_compile_stdcxx.m4
14Source1001: ax_cxx_compile_stdcxx_11.m4
15Source1002: ax_cxx_compile_stdcxx_14.m4
16
17
18# for VineLinux
19Patch100:       PackageKit-0.7.1-backend-aptcc-vine.patch
20
21Vendor:         Project Vine
22Distribution:   Vine Linux
23Packager:       yasumichi, Takemikaduchi
24
25Summary:        A DBUS packaging abstraction layer
26Summary(ja):    DBUS のパッケージング抽象レイヤ
27
28BuildRoot:      %{_tmppath}/%{name}-%{version}-root
29
30# Dependency
31BuildRequires:  glib2-devel
32BuildRequires:  dbus-devel
33BuildRequires:  dbus-glib-devel
34BuildRequires:  libgudev1-devel
35BuildRequires:  pm-utils-devel
36BuildRequires:  polkit-devel
37BuildRequires:  NetworkManager-devel
38BuildRequires:  sqlite3-devel
39BuildRequires:  gtk3-devel
40BuildRequires:  gtk2-devel
41BuildRequires:  gobject-introspection-devel
42BuildRequires:  gstreamer1-devel
43BuildRequires:  gstreamer1-plugins-base-devel
44BuildRequires:  apt-devel
45BuildRequires:  gtk-doc
46BuildRequires:  python
47BuildRequires:  bash-completion
48
49# Don't depend on Debconf::Client::ConfModule
50%define __perl_requires %{SOURCE100}
51
52%description
53PackageKit is a DBUS abstraction layer that allows the session user to
54manage packages in a secure way using a cross-distro, cross-architecture
55API.
56
57For more information, please see http://www.packagekit.org
58
59%description -l ja
60PackageKit は、安全な方法でセッションのユーザーにパッケージ管理を許可する
61DBUS の抽象レイヤです。ディストリビューションやアーキテクチャーをまたいだ
62API を利用しています。
63
64より詳しい情報は、 http://www.packagekit.org をご覧ください。
65
66%package devel
67Summary:        Development enviroment for PackageKit
68Summary(ja):    PackageKit の開発環境
69Group:          Development/Libraries
70Requires:       %{name} = %{version}-%{release}
71Requires:       glib2-devel
72Requires:       dbus-devel
73Requires:       sqlite3-devel
74Requires:       pkgconfig
75
76%description devel
77Header file and libraries for developping PackageKit.
78
79%description -l ja devel
80PackageKit で開発を行うためのヘッダファイルとライブラリ
81
82%package doc
83Summary:        Documants of PackageKit
84Summary(ja):    PackageKit のドキュメント
85Group:          Applications/Documentation
86
87%description doc
88HTML documents of PackageKit
89
90%description -l ja doc
91PackageKit の HTML ドキュメント
92
93%prep
94%setup -q
95#%patch100 -p1 -b .vine
96
97cp -f \
98  %{SOURCE1000} \
99  %{SOURCE1001} \
100  %{SOURCE1002} \
101  m4/
102
103%build
104autoreconf -if
105%configure \
106        --disable-static \
107        --disable-systemd \
108        --disable-qt \
109        --disable-systemd \
110        --disable-systemd-updates
111#       --enable-aptcc \
112#       --with-default-backend=aptcc
113%{__make} %{?_smp_mflags}
114
115%install
116%{__rm} -rf ${RPM_BUILD_ROOT}
117%{__make} install DESTDIR=${RPM_BUILD_ROOT}
118
119%find_lang %{name}
120
121find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
122find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
123
124mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/app-info/{icons,xmls}
125
126touch $RPM_BUILD_ROOT%{_localstatedir}/cache/PackageKit/groups.sqlite
127
128# create a link that GStreamer will recognise
129pushd ${RPM_BUILD_ROOT}%{_libexecdir} > /dev/null
130ln -s pk-gstreamer-install gst-install-plugins-helper
131popd > /dev/null
132
133# create a link that from the comps icons to PK, as PackageKit frontends
134# cannot add /usr/share/pixmaps/comps to the icon search path as some distros
135# do not use comps. Patching this in the frontend is not a good idea, as there
136# are multiple frontends in multiple programming languages.
137pushd ${RPM_BUILD_ROOT}%{_datadir}/PackageKit > /dev/null
138ln -s ../pixmaps/comps icons
139popd > /dev/null
140
141%find_lang %name
142
143%clean
144%{__rm} -rf ${RPM_BUILD_ROOT}
145
146%post -p /sbin/ldconfig
147
148%postun -p /sbin/ldconfig
149
150
151%files -f %{name}.lang
152%defattr(-,root,root)
153%license COPYING
154%doc AUTHORS COPYING HACKING MAINTAINERS NEWS README
155%dir %{_datadir}/PackageKit
156%dir %{_datadir}/PackageKit/helpers
157%dir %{_sysconfdir}/PackageKit
158%dir %{_localstatedir}/lib/PackageKit
159%dir %{_localstatedir}/cache/app-info
160%dir %{_localstatedir}/cache/app-info/icons
161%dir %{_localstatedir}/cache/app-info/xmls
162%dir %{_localstatedir}/cache/PackageKit
163%ghost %verify(not md5 size mtime) %{_localstatedir}/cache/PackageKit/groups.sqlite
164%{_datadir}/bash-completion/completions/pkcon
165%dir %{_libdir}/packagekit-backend
166%config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf
167%config(noreplace) %{_sysconfdir}/PackageKit/Vendor.conf
168%config %{_sysconfdir}/dbus-1/system.d/*
169%dir %{_datadir}/PackageKit/helpers/test_spawn
170%{_datadir}/PackageKit/icons
171%{_datadir}/PackageKit/helpers/test_spawn/*
172%{_datadir}/man/man1/pkcon.1.gz
173%{_datadir}/man/man1/pkmon.1.gz
174%{_datadir}/polkit-1/actions/*.policy
175%{_datadir}/polkit-1/rules.d/*
176%{_datadir}/PackageKit/pk-upgrade-distro.sh
177%{_libexecdir}/packagekitd
178%{_libexecdir}/packagekit-direct
179%{_bindir}/pkmon
180%{_bindir}/pkcon
181%{_libdir}/packagekit-backend/libpk_backend_dummy.so
182%{_libdir}/packagekit-backend/libpk_backend_test_*.so
183%if 0%{?bundled_libdnf}
184%{_libdir}/PackageKit/
185%endif
186%ghost %verify(not md5 size mtime) %{_localstatedir}/lib/PackageKit/transactions.db
187%{_datadir}/dbus-1/system-services/*.service
188%{_datadir}/dbus-1/interfaces/*.xml
189#%{_unitdir}/packagekit-offline-update.service
190#%{_unitdir}/packagekit.service
191#%{_unitdir}/system-update.target.wants/
192#%{_libexecdir}/pk-*offline-update
193#%{_libdir}/packagekit-backend/libpk_backend_dnf.so
194#
195%{_libdir}/*packagekit-glib2.so.*
196%{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib
197#
198%config %{_sysconfdir}/cron.daily/packagekit-background.cron
199%config(noreplace) %{_sysconfdir}/sysconfig/packagekit-background
200#
201%{_libexecdir}/pk-gstreamer-install
202%{_libexecdir}/gst-install-plugins-helper
203#
204%{_libdir}/gtk-2.0/modules/*.so
205%{_libdir}/gtk-3.0/modules/*.so
206%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/*.desktop
207#
208%{_sysconfdir}/profile.d/*
209%{_libexecdir}/pk-command-not-found
210%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf
211
212%files devel
213%defattr(-, root, root)
214%{_libdir}/libpackagekit-glib2.so
215%{_libdir}/pkgconfig/packagekit-glib2.pc
216%dir %{_includedir}/PackageKit
217%dir %{_includedir}/PackageKit/packagekit-glib2
218%{_includedir}/PackageKit/packagekit-glib*/*.h
219%{_datadir}/gir-1.0/PackageKitGlib-1.0.gir
220%{_datadir}/gtk-doc/html/PackageKit
221%{_datadir}/vala/vapi/packagekit-glib2.vapi
222
223%files doc
224%defattr(-, root, root)
225%{_datadir}/gtk-doc/html/PackageKit
226
227%changelog
228* Mon Dec 10 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.12-1
229- new upstream release.
230
231* Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.17-1
232- new upstream release
233
234* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.15-1
235- new upstream release
236- add configure option (--disable-systemd, --disable-systemd-updates)
237
238* Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.8-1
239- new upstream release
240- add BuildRequires: bash-completion
241
242* Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.6-1
243- new upstream release
244
245* Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.5-1
246- new upstream release
247
248* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.3-1
249- new upstream release
250- drop Patch100
251- add BuildRequires: gtk2-devel
252
253* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-3
254- rebuild with python-2.7.2
255
256* Mon Jan 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-2
257- add Patch100 (PackageKit-0.7.1-backend-aptcc-vine.patch)
258- add Source100 (filter-requires-PackageKit.sh)
259- add BuildRequires: apt-devel
260
261* Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
262- new upstream release
263- add BuildRequires libgudev1-devel, pm-utils-devel
264
265* Sat Sep 17 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.7.0-1
266- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.