From the course: Building, Maintaining, and Distributing RPM Packages
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Write a spec file to compile and distribute executables
From the course: Building, Maintaining, and Distributing RPM Packages
Write a spec file to compile and distribute executables
- [Tutor] Now let's shift our focus to making a binary package that involves compiling some source code. Often, as a packager, we'll get, or we'll hope to get, an archive of source code, including a Makefile, from our developers. A Makefile is a file that describes how the system should handle source code, including both compiling the software, and what the system should do with the results. Having a Makefile helps to smooth out the process for us, so we don't have to provide all of the steps to build software ourselves. If we don't have a Makefile, we'll either need to create one, or write out the steps for building the software in our spec file, and then handle installation tasks there as well. Because we're focusing on the role of the packager, not of the developer, we'll start out here with some source code and a Makefile we'll imagine our developers provided to us. Let's take a look at both of these briefly. This is a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Creating a binary package1m 41s
-
Write a spec file to distribute regular files7m 58s
-
Build a binary package to distribute regular files2m 51s
-
Write a spec file to compile and distribute executables5m 39s
-
Build a binary package to distribute executables1m 44s
-
Building for different architectures2m 8s
-
-
-
-
-