Browse Source

fix aptcc backend for Vine

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5382 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi 13 years ago
parent
commit
650e9c30ba
1 changed files with 19 additions and 3 deletions
  1. 19 3
      P/PackageKit/PackageKit-vl.spec

+ 19 - 3
P/PackageKit/PackageKit-vl.spec

@@ -1,11 +1,14 @@
 # Basic Information
 Name:		PackageKit
 Version:	0.7.1
-Release:	1%{?_dist_release}
+Release:	2%{?_dist_release}
 License:	GPLv2
 Group:		Applications/System
 Source0:	http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+Source100:	filter-requires-%{name}.sh
+
+# for VineLinux
+Patch100:	PackageKit-0.7.1-backend-aptcc-vine.patch
 
 Vendor:		Project Vine
 Distribution:	Vine Linux
@@ -14,6 +17,8 @@ Packager:	yasumichi
 Summary:	A DBUS packaging abstraction layer
 Summary(ja):	DBUS のパッケージング抽象レイヤ
 
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
 # Dependency
 BuildRequires:	glib2-devel
 BuildRequires:	dbus-devel
@@ -25,9 +30,13 @@ BuildRequires:	NetworkManager-devel
 BuildRequires:	sqlite3-devel
 BuildRequires:	gtk3-devel
 BuildRequires:	gstreamer-plugins-base-devel
+BuildRequires:	apt-devel
 BuildRequires:	gtk-doc
 BuildRequires:	python
 
+# Don't depend on Debconf::Client::ConfModule
+%define __perl_requires %{SOURCE100}
+
 %description
 PackageKit is a DBUS abstraction layer that allows the session user to
 manage packages in a secure way using a cross-distro, cross-architecture
@@ -71,11 +80,12 @@ PackageKit の HTML ドキュメント
 
 %prep
 %setup -q
+%patch100 -p1 -b .vine
 
 %build
 sed -i 's|2.7|2.6|g' configure.ac
 autoreconf -if
-%configure --disable-static --enable-dummy --disable-qt --with-default-backend=dummy
+%configure --disable-static --enable-aptcc --disable-qt --with-default-backend=aptcc
 %{__make} %{?_smp_mflags}
 
 %install
@@ -108,6 +118,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
 %defattr(-,root,root)
 %doc AUTHORS COPYING HACKING MAINTAINERS NEWS README TODO
 %{_sysconfdir}/PackageKit
+%{_sysconfdir}/apt/apt.conf.d/20packagekit
 %{_sysconfdir}/bash_completion.d/pk-completion.bash
 %{_sysconfdir}/cron.daily/packagekit-background.cron
 %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
@@ -164,6 +175,11 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
 %{_datadir}/PackageKit/website
 
 %changelog
+* Mon Jan 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-2
+- add Patch100 (PackageKit-0.7.1-backend-aptcc-vine.patch)
+- add Source100 (filter-requires-PackageKit.sh)
+- add BuildRequires: apt-devel
+
 * Tue Jan 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
 - new upstream release
 - add BuildRequires libgudev1-devel, pm-utils-devel