日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

spice server dpkg-buildpackage 打包编译备忘

發布時間:2025/3/21 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 spice server dpkg-buildpackage 打包编译备忘 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一般我們會通過configure,make 編譯.但是為了替換版本的方便需要把他編譯成deb的包,而且還需要自定義下包名.下面就記錄下我的修改過程.

注:前面關于spice server的編譯過程掠過

1.下載源碼包.

  http://packages.ubuntu.com/yakkety/libspice-server-dev    上邊下載spice_0.12.8-1.debian.tar.xz和spice_0.12.8.orig.tar.bz2.

2.解壓

  tar xvf? spice_0.12.8-1.debian.tar.xz 和? tar xvf spice_0.12.8.orig.tar.bz2.

  之后將解壓之后的debian/ 放入 spice-0.12.8/中.

?3.編譯

  dpkg-buildpackage -uc -b -j8 (參數自定)

最終在你的spice-0.12.8/的上層目錄就會出現libspice-server-dev_0.12.8-1_amd64.deb,libspice-server1-dbg_0.12.8-1_amd64.deb,

libspice-server1_0.12.8-1_amd64.deb這三個deb的可直接安裝的包了.

?

但是如果想使用自己定義的包名的話就要修改 debian/下的內容了,假如我想將生成的包名改為dh-libspice-server*

就需要做如下修改:

1.修改debian/下的

libspice-server-dev.install,libspice-server1.install,libspice-server1.symbols這三個文件的文件名,例如:mv?

一般我們會通過configure,make 編譯.但是為了替換版本的方便需要把他編譯成deb的包,而且還需要自定義下包名.下面就記錄下我的修改過程.

1.下載源碼包.

  http://packages.ubuntu.com/yakkety/libspice-server-dev    上邊下載spice_0.12.8-1.debian.tar.xz和spice_0.12.8.orig.tar.bz2.

2.解壓

  tar xvf? spice_0.12.8-1.debian.tar.xz 和? tar xvf spice_0.12.8.orig.tar.bz2.

  之后將解壓之后的debian/ 放入 spice-0.12.8/中.

?3.編譯

  dpkg-buildpackage -uc -b -j8 (參數自定)

最終在你的spice-0.12.8/的上層目錄就會出現libspice-server-dev_0.12.8-1_amd64.deb,libspice-server1-dbg_0.12.8-1_amd64.deb,

libspice-server1_0.12.8-1_amd64.deb這三個deb的可直接安裝的包了.

?

但是如果想使用自己定義的包名的話就要修改 debian/下的內容了,假如我想將生成的包名改為dh-libspice-server*

就需要做如下修改:

1.修改debian/下的

libspice-server-dev.install,libspice-server1.install,libspice-server1.symbols這三個文件的文件名,

例如:mv libspice-server1.symbols? dh-libspice-server1.symbols

2.修改debian/下的rules文件

#!/usr/bin/make -f

%:
?? ?dh $@ --parallel --with autoreconf

override_dh_auto_configure:
?? ?dh_auto_configure --? --disable-celt051 --disable-silent-rules \
?? ??? ?--enable-smartcard
# remove Requires.private defs from .pc file -- we're not building static libs
?? ?sed -i '/^Requires\.private:/D' spice-server.pc

override_dh_strip:
?? ?dh_strip -pdh-libspice-server1 --dbg-package=dh-libspice-server1-dbg
?? ?dh_strip -Ndh-libspice-server1

override_dh_installdocs:
?? ?dh_installdocs -pdh-libspice-server1-dbg --link-doc=dh-libspice-server1
?? ?dh_installdocs -Ndh-libspice-server1-dbg
3.修改debian/下的control文件

Source: spice
Section: misc
Priority: optional
Maintainer: Liang Guo <guoliang@debian.org>
Uploaders: Michael Tokarev <mjt@tls.msk.ru>
Build-Depends: debhelper (>= 9), pkg-config,
?dh-autoreconf,
?python, python-six,
?libspice-protocol-dev (>= 0.12.10~),
?libopus-dev (>= 0.9.14),
?libpixman-1-dev (>= 0.17.7~),
?libasound2-dev,
?libssl-dev,
?libsasl2-dev,
?libjpeg-dev,
?python-pyparsing,
?libglib2.0-dev (>= 2.22~),
?libcacard-dev,
Standards-Version: 3.9.8
Homepage: http://spice-space.org/
Vcs-Git: https://anonscm.debian.org/git/collab-maint/spice.git
Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/spice.git

Package: dh-libspice-server1
Section: libs
Architecture: i386 amd64
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: spice-client-gtk (<= 0.12-2), python-spice-client-gtk (<= 0.12-2),
?libspice-client-glib-2.0-1 (<= 0.12-2), libspice-client-gtk-2.0-1 (<= 0.12-2),
?libspice-client-gtk-3.0-1 (<= 0.12-2)
Description: Implements the server side of the SPICE protocol
?The Simple Protocol for Independent Computing Environments (SPICE) is
?a remote display system built for virtual environments which allows
?you to view a computing 'desktop' environment not only on the machine
?where it is running, but from anywhere on the Internet and from a wide
?variety of machine architectures.
?.
?This package contains the run-time libraries for any application that
?wishes to be a SPICE server.

Package: dh-libspice-server1-dbg
Section: debug
Architecture: i386 amd64
Priority: extra
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends:dh-libspice-server1 (= ${binary:Version}), ${misc:Depends}
Description: Debugging symbols for libspice-server1
?The Simple Protocol for Independent Computing Environments (SPICE) is
?a remote display system built for virtual environments which allows
?you to view a computing 'desktop' environment not only on the machine
?where it is running, but from anywhere on the Internet and from a wide
?variety of machine architectures.
?.
?This package contains the debugging symbols for the libspice-server1
?library.

Package: dh-libspice-server-dev
Section: libdevel
Architecture: i386 amd64
Depends: dh-libspice-server1 (= ${binary:Version}), ${misc:Depends}, libspice-protocol-dev (>= 0.12.10~)
Suggests: pkg-config
Description: Header files and development documentation for spice-server
?The Simple Protocol for Independent Computing Environments (SPICE) is
?a remote display system built for virtual environments which allows
?you to view a computing 'desktop' environment not only on the machine
?where it is running, but from anywhere on the Internet and from a wide
?variety of machine architectures.
?.
?This package contains the header files, static libraries and development
?documentation for spice-server.

修改內容不多主要是修改包名.

之后在通過dpkg-buildpackage 命令編譯之后就會出現dh-libspice-server-dev_0.12.8-1_amd64.deb,dh-libspice-server1-dbg_0.12.8-1_amd64.deb

dh-libspice-server1_0.12.8-1_amd64.deb.

轉載于:https://www.cnblogs.com/aili03/p/6069492.html

總結

以上是生活随笔為你收集整理的spice server dpkg-buildpackage 打包编译备忘的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。