一般我们会通过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.

spice server dpkg-buildpackage 打包编译备忘的更多相关文章

  1. opencv-2.4.11编译备忘

    编译完成后,想测试example中例子,但是由于没有sudo权限,不能运行pkg-config查看opencv的--cflags和--libs. 记录一下,备忘: pkg-config --libs ...

  2. UE4 window打包ios备忘

    1.生成SHH key 2.安装证书 *.cer,*.p12 以下转自:http://wangjie.rocks/2017/11/30/ue4-ios-build-on-windows/ 问题一 12 ...

  3. SQL server数据库备份还原问题备忘(亲测有效)

    问题一:SQL server数据库备份还原方法 http://www.cnblogs.com/zgqys1980/archive/2012/07/04/2576382.html 问题二:无法执行 BA ...

  4. SQL Server 并发死锁解决案例备忘

    SET @sql = ' SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; SET DEADLOCK_PRIORITY 10 BEGIN TRAN DE ...

  5. Bonobo Git Server (Simple git server for Windows.) 测试备忘

    Bonobo Git Server是一款Windows上的Git Server,它使用IIS即可,走的是Http协议,只要简单的安装就能使用,但是因为我的项目大小有1.35GB在 push 的时候一直 ...

  6. SQL Server修改标识列方法(备忘)

    原文:SQL Server修改标识列方法(备忘) SQL Server修改标识列方法 ----允许对系统表进行更新 exec sp_configure 'allow updates',1 reconf ...

  7. Nmap备忘单:从探索到漏洞利用(Part 5)

    这是备忘单的最后一部分,在这里主要讲述漏洞评估和渗透测试. 数据库审计 列出数据库名称 nmap -sV --script=mysql-databases 192.168.195.130 上图并没有显 ...

  8. Nmap备忘单:从探索到漏洞利用(Part 2)

    这是我们的第二期NMAP备忘单(第一期在此).基本上,我们将讨论一些高级NMAP扫描的技术,我们将进行一个中间人攻击(MITM).现在,游戏开始了. TCP SYN扫描 SYN扫描是默认的且最流行的扫 ...

  9. Socket网络通讯开发总结之:Java 与 C进行Socket通讯 + [备忘] Java和C之间的通讯

    Socket网络通讯开发总结之:Java 与 C进行Socket通讯 http://blog.sina.com.cn/s/blog_55934df80100i55l.html (2010-04-08 ...

随机推荐

  1. jieba中文分词的.NET版本:jieba.NET

    简介 平时经常用Python写些小程序.在做文本分析相关的事情时免不了进行中文分词,于是就遇到了用Python实现的结巴中文分词.jieba使用起来非常简单,同时分词的结果也令人印象深刻,有兴趣的可以 ...

  2. Laravel5.0学习--03 Artisan命令

    本文以laravel5.0.22为例. 简介 Artisan 是 Laravel 内置的命令行接口.它提供了一些有用的命令协助您开发,它是由强大的 Symfony Console 组件所驱动.利用它, ...

  3. 王宝强新片P2P风波持续发酵,互金真的前途未卜?

    王宝强离婚风波还未完全结束,一波未平一波又起,新片又引来话题爆点,其自导自演的电影<大闹天竺>陷P2P平台集资的新闻占据各大媒体头条. 该P2P平台为湖北武汉一家P2P互联网金融理财平台& ...

  4. easyui 日期显示

    { field: 'UpdateDatetime', title: '更新时间', width: 100, align: 'left', sortable: true , formatter: fun ...

  5. LINQ系列:Linq to Object限制操作符

    1. Where 限制操作符Where用于过滤序列,按照提供的逻辑对序列中的数据进行过滤.Where可以出现多次. 1.1 原型定义 public static IEnumerable<TSou ...

  6. 前端学PHP之面向对象系列第四篇——关键字

    × 目录 [1]public [2]protected [3]private[4]final[5]static[6]const[7]this[8]self[9]parent 前面的话 php实现面向对 ...

  7. 为 Neutron 准备物理基础设施(I) - 每天5分钟玩转 OpenStack(75)

    前面讨论了 Neutron 的架构和基础知识,接下来就要通过实验深入学习和实践了. 第一步就是准备实验用的物理环境,考虑如下几个问题: 需要几个节点? 如何分配节点的角色? 节点上部署哪些服务? 配几 ...

  8. IDDD 实现领域驱动设计-一个简单的 CQRS 示例

    上一篇:<IDDD 实现领域驱动设计-CQRS(命令查询职责分离)和 EDA(事件驱动架构)> 学习架构知识,需要有一些功底和经验,要不然你会和我一样吃力,CQRS.EDA.ES.Saga ...

  9. 【记录】Install-Package : “Unity”已拥有为“CommonServiceLocator”定义的依赖项。

    在使用 NuGet 安装 Unity 的时候,安装命令:install-package unity. 但是会莫名奇妙的报如下错误: “Unity”已拥有为“CommonServiceLocator”定 ...

  10. Spring 4 + Reactor Integration Example--转

    原文地址:http://www.concretepage.com/spring-4/spring-4-reactor-integration-example Reactor is a framewor ...