| 1 | # Basic Information |
|---|
| 2 | Name: PackageKit |
|---|
| 3 | Version: 0.7.1 |
|---|
| 4 | Release: 3%{?_dist_release} |
|---|
| 5 | License: GPLv2 |
|---|
| 6 | Group: Applications/System |
|---|
| 7 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz |
|---|
| 8 | Source100: filter-requires-%{name}.sh |
|---|
| 9 | |
|---|
| 10 | # for VineLinux |
|---|
| 11 | Patch100: PackageKit-0.7.1-backend-aptcc-vine.patch |
|---|
| 12 | |
|---|
| 13 | Vendor: Project Vine |
|---|
| 14 | Distribution: Vine Linux |
|---|
| 15 | Packager: yasumichi |
|---|
| 16 | |
|---|
| 17 | Summary: A DBUS packaging abstraction layer |
|---|
| 18 | Summary(ja): DBUS のパッケージング抽象レイヤ |
|---|
| 19 | |
|---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 21 | |
|---|
| 22 | # Dependency |
|---|
| 23 | BuildRequires: glib2-devel |
|---|
| 24 | BuildRequires: dbus-devel |
|---|
| 25 | BuildRequires: dbus-glib-devel |
|---|
| 26 | BuildRequires: libgudev1-devel |
|---|
| 27 | BuildRequires: pm-utils-devel |
|---|
| 28 | BuildRequires: polkit-devel |
|---|
| 29 | BuildRequires: NetworkManager-devel |
|---|
| 30 | BuildRequires: sqlite3-devel |
|---|
| 31 | BuildRequires: gtk3-devel |
|---|
| 32 | BuildRequires: gstreamer-plugins-base-devel |
|---|
| 33 | BuildRequires: apt-devel |
|---|
| 34 | BuildRequires: gtk-doc |
|---|
| 35 | BuildRequires: python |
|---|
| 36 | |
|---|
| 37 | # Don't depend on Debconf::Client::ConfModule |
|---|
| 38 | %define __perl_requires %{SOURCE100} |
|---|
| 39 | |
|---|
| 40 | %description |
|---|
| 41 | PackageKit is a DBUS abstraction layer that allows the session user to |
|---|
| 42 | manage packages in a secure way using a cross-distro, cross-architecture |
|---|
| 43 | API. |
|---|
| 44 | |
|---|
| 45 | For more information, please see http://www.packagekit.org |
|---|
| 46 | |
|---|
| 47 | %description -l ja |
|---|
| 48 | PackageKit は、安全な方法でセッションのユーザーにパッケージ管理を許可する |
|---|
| 49 | DBUS の抽象レイヤです。ディストリビューションやアーキテクチャーをまたいだ |
|---|
| 50 | API を利用しています。 |
|---|
| 51 | |
|---|
| 52 | より詳しい情報は、 http://www.packagekit.org をご覧ください。 |
|---|
| 53 | |
|---|
| 54 | %package devel |
|---|
| 55 | Summary: Development enviroment for PackageKit |
|---|
| 56 | Summary(ja): PackageKit の開発環境 |
|---|
| 57 | Group: Development/Libraries |
|---|
| 58 | Requires: %{name} = %{version}-%{release} |
|---|
| 59 | Requires: glib2-devel |
|---|
| 60 | Requires: dbus-devel |
|---|
| 61 | Requires: sqlite3-devel |
|---|
| 62 | Requires: pkgconfig |
|---|
| 63 | |
|---|
| 64 | %description devel |
|---|
| 65 | Header file and libraries for developping PackageKit. |
|---|
| 66 | |
|---|
| 67 | %description -l ja devel |
|---|
| 68 | PackageKit で開発を行うためのヘッダファイルとライブラリ |
|---|
| 69 | |
|---|
| 70 | %package doc |
|---|
| 71 | Summary: Documants of PackageKit |
|---|
| 72 | Summary(ja): PackageKit のドキュメント |
|---|
| 73 | Group: Applications/Documentation |
|---|
| 74 | |
|---|
| 75 | %description doc |
|---|
| 76 | HTML documents of PackageKit |
|---|
| 77 | |
|---|
| 78 | %description -l ja doc |
|---|
| 79 | PackageKit の HTML ドキュメント |
|---|
| 80 | |
|---|
| 81 | %prep |
|---|
| 82 | %setup -q |
|---|
| 83 | %patch100 -p1 -b .vine |
|---|
| 84 | |
|---|
| 85 | %build |
|---|
| 86 | autoreconf -if |
|---|
| 87 | %configure --disable-static --enable-aptcc --disable-qt --with-default-backend=aptcc |
|---|
| 88 | %{__make} %{?_smp_mflags} |
|---|
| 89 | |
|---|
| 90 | %install |
|---|
| 91 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 92 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 93 | |
|---|
| 94 | %find_lang %{name} |
|---|
| 95 | |
|---|
| 96 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
|---|
| 97 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
|---|
| 98 | |
|---|
| 99 | %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/glib-2.0/schemas/org.gnome.setttings-daemon.gtk-modules-packagekit.gschema.xml |
|---|
| 100 | |
|---|
| 101 | %clean |
|---|
| 102 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 103 | |
|---|
| 104 | %post -p /sbin/ldconfig |
|---|
| 105 | |
|---|
| 106 | %postun |
|---|
| 107 | /sbin/ldconfig |
|---|
| 108 | if [ $1 -eq 0 ]; then |
|---|
| 109 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
|---|
| 110 | fi |
|---|
| 111 | |
|---|
| 112 | %posttrans |
|---|
| 113 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | %files -f %{name}.lang |
|---|
| 117 | %defattr(-,root,root) |
|---|
| 118 | %doc AUTHORS COPYING HACKING MAINTAINERS NEWS README TODO |
|---|
| 119 | %{_sysconfdir}/PackageKit |
|---|
| 120 | %{_sysconfdir}/apt/apt.conf.d/20packagekit |
|---|
| 121 | %{_sysconfdir}/bash_completion.d/pk-completion.bash |
|---|
| 122 | %{_sysconfdir}/cron.daily/packagekit-background.cron |
|---|
| 123 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf |
|---|
| 124 | %{_sysconfdir}/profile.d/PackageKit.sh |
|---|
| 125 | %{_sysconfdir}/sysconfig/packagekit-background |
|---|
| 126 | %{_bindir}/packagekit-bugreport.sh |
|---|
| 127 | %{_bindir}/pk-debuginfo-install |
|---|
| 128 | %{_bindir}/pkcon |
|---|
| 129 | %{_bindir}/pkgenpack |
|---|
| 130 | %{_bindir}/pkmon |
|---|
| 131 | %{python_sitelib}/packagekit |
|---|
| 132 | %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
|---|
| 133 | %{_libdir}/girepository-1.0/PackageKitPlugin-1.0.typelib |
|---|
| 134 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop |
|---|
| 135 | %{_libdir}/gtk-3.0/modules/libpk-gtk-module.so |
|---|
| 136 | %{_libdir}/libpackagekit-glib2.so.* |
|---|
| 137 | %{_libdir}/packagekit-backend |
|---|
| 138 | %{_libdir}/packagekit-plugins |
|---|
| 139 | %{_libdir}/pm-utils/sleep.d/95packagekit |
|---|
| 140 | %{_libexecdir}/packagekitd |
|---|
| 141 | %{_libexecdir}/pk-command-not-found |
|---|
| 142 | %{_libexecdir}/pk-gstreamer-install |
|---|
| 143 | %{_sbindir}/pk-device-rebind |
|---|
| 144 | %{_datadir}/PackageKit |
|---|
| 145 | %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml |
|---|
| 146 | %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml |
|---|
| 147 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
|---|
| 148 | %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir |
|---|
| 149 | %{_datadir}/gir-1.0/PackageKitPlugin-1.0.gir |
|---|
| 150 | %{_mandir}/man1/pk-debuginfo-install.1* |
|---|
| 151 | %{_mandir}/man1/pk-device-rebind.1.gz |
|---|
| 152 | %{_mandir}/man1/pkcon.1* |
|---|
| 153 | %{_mandir}/man1/pkgenpack.1* |
|---|
| 154 | %{_mandir}/man1/pkmon.1* |
|---|
| 155 | %{_datadir}/mime/packages/packagekit-catalog.xml |
|---|
| 156 | %{_datadir}/mime/packages/packagekit-package-list.xml |
|---|
| 157 | %{_datadir}/mime/packages/packagekit-servicepack.xml |
|---|
| 158 | %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy |
|---|
| 159 | %{_localstatedir}/lib/PackageKit/transactions.db |
|---|
| 160 | |
|---|
| 161 | %exclude %{_datadir}/PackageKit/website |
|---|
| 162 | |
|---|
| 163 | %files devel |
|---|
| 164 | %defattr(-, root, root) |
|---|
| 165 | %{_includedir}/PackageKit |
|---|
| 166 | %{_libdir}/libpackagekit-glib2.so |
|---|
| 167 | %{_libdir}/pkgconfig/packagekit-glib2.pc |
|---|
| 168 | %{_libdir}/pkgconfig/packagekit-plugin.pc |
|---|
| 169 | |
|---|
| 170 | |
|---|
| 171 | %files doc |
|---|
| 172 | %defattr(-, root, root) |
|---|
| 173 | %{_datadir}/gtk-doc/html/PackageKit |
|---|
| 174 | %{_datadir}/PackageKit/website |
|---|
| 175 | |
|---|
| 176 | %changelog |
|---|
| 177 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-3 |
|---|
| 178 | - rebuild with python-2.7.2 |
|---|
| 179 | |
|---|
| 180 | * Mon Jan 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-2 |
|---|
| 181 | - add Patch100 (PackageKit-0.7.1-backend-aptcc-vine.patch) |
|---|
| 182 | - add Source100 (filter-requires-PackageKit.sh) |
|---|
| 183 | - add BuildRequires: apt-devel |
|---|
| 184 | |
|---|
| 185 | * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1 |
|---|
| 186 | - new upstream release |
|---|
| 187 | - add BuildRequires libgudev1-devel, pm-utils-devel |
|---|
| 188 | |
|---|
| 189 | * Sat Sep 17 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.7.0-1 |
|---|
| 190 | - initial build for Vine Linux |
|---|