TAILIEUCHUNG - Beginning Linux Programming Third Edition phần 6

Giải mã các phím này là một vấn đề khó khăn trên hầu hết các thiết bị đầu cuối, vì họ thường gửi một chuỗi ký tự, bắt đầu với nhân vật chạy thoát. Không chỉ ứng dụng có vấn đề phân biệt giữa báo chí duy nhất của phím Escape và một chuỗi ký tự gây ra | Development Tools This directory is specific to Red Hat Linux. Other Linux distributions will use other directories such as usr src packages. Once we have gathered the sources for your RPM package the next step is to create a spec file the file that describes to the rpmbuild command exactly how to build our package. Creating an RPM Spec File Creating a spec file can be daunting given that the RPM system supports thousands of options. Luckily the RPM system provides reasonable defaults for most options. You can follow the simple example in this section which should suffice for most packages you will build. In addition you can copy commands from other spec files. Good sources for spec file examples are other RPM packages. Look at source RPMs which are stored in files ending in .. Install these RPMs and look through the spec files. You should find more complicated examples than you will ever need. Interesting spec files include those for anonftp telnet vnc and sendmail. In addition the designers of the RPM system wisely decided not to try to replace common build tools such as make or configure. The RPM system contains many shorthand features to take advantage of makefiles and configure scripts. In this example we will create a spec file for the simple myapp application. Name your spec file . Start the spec file with a set of definitions of the name version number and other information about your package. For example Vendor Wrox Press Distribution Any Name myapp Version Release 1 Packager neil@ License Copyright 2003 by Wrox Press Group Applications Media This section of an RPM spec file is often called a preamble. In our preamble the most important settings are the Name Version and Release. This example sets the name to myapp the version number to and the release of the RPM package at 1 our first attempt at making an RPM package. The Group setting is used to help graphical installation programs sort the thousands of Linux .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.