From compiling and packaging scim-python learning and packaging deb
Source: Internet
Author: User
From compiling and packaging scim-python to learning and packaging deb -- Linux Release Technology-Debian information, the following is a detailed description. References: New Maintenance Personnel Manual for Debian. For details not covered in this document, refer to this document.
First, install the necessary packages for compilation and packaging:
$ Sudo apt-get install dpkg-dev file gcc g + + libc6-dev make patch perl autoconf automake dh-make debhelper devscripts fakeroot gnupg g77 gpc xutils lintian pbuilder
Then, download the source code. For example, what we download now is: scim-python-0.1.13rc1.tar.gz. Create a directory named SCIM, put the source code package into the directory, and decompress the source code package. (If the source code package is not named properly, you must first standardize the source code package name, for details, refer to the new maintenance manual of Debian, hereinafter referred to as the manual) to the current directory. Now there will be scim-python-0.1.13rc1.tar.gz files and scim-python-0.1.13rc1 folders in scim-python-0.1.13rc1.tar.gz.
Next, open the relevant documents to find out the packages on which scim-python is compiled and install them. Here, scim requires the following packages:
$ Sudo apt-get install g ++ libgtk2.0-dev python-gtk2-dev scim-dev
Open the terminal and enter the scim-python-0.1.13rc1 folder
First Debian:
$ Dh_make-e your@your.cn-f ../scim-python-0.1.13rc1.tar.gz
Dashes your mailbox name. This command creates a new debian folder under the scim-python-0.1.13rc1 folder and creates some files needed for packaging.
You can modify some files as per your personal needs (see the manual for details). For example, here we can modify the last part of the control and add the previous introduction.
Description: scim-python 0.1.13rc1
Scim-python input
Of course, the general packaging basically does not need to modify other files. If you need more packaging control, refer to the manual.
Finally, complete the packaging:
$ Dpkg-buildpackage-rfakeroot
This will generate a deb package for your platform under the scim directory.
If any problem is found, modify the file as appropriate and then package it quickly.
$ Fakeroot debian/rules binary
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service