From Fedora Project Wiki
No edit summary
No edit summary
Line 25: Line 25:
Go follow those instructions now.  When you're done, you should have a user named <code>makerpm</code> with a directory in your homedir named <code>rpmbuild</code> that looks something like this:
Go follow those instructions now.  When you're done, you should have a user named <code>makerpm</code> with a directory in your homedir named <code>rpmbuild</code> that looks something like this:


<code>
<pre>
[makerpm@localhost rpmbuild]$ pwd
[makerpm@localhost rpmbuild]$ pwd
/home/makerpm/rpmbuild
/home/makerpm/rpmbuild
[makerpm@localhost rpmbuild]$ ls
[makerpm@localhost rpmbuild]$ ls
BUILD  RPMS  SOURCES  SPECS  SRPMS
BUILD  RPMS  SOURCES  SPECS  SRPMS
</code>
</pre>


= LESSON: Creating a Package =
== LESSON: Creating a Package ==


Let's start by packaging a Sugar activity that has already been packaged.  That way, we can compare your package to the end result, and see how well we did.
Let's start by packaging a Sugar activity that has already been packaged.  That way, we can compare your package to the end result, and see how well we did.

Revision as of 18:02, 12 December 2008

DRAFT

THIS DOCUMENT IS A WORK IN PROGRESS. DO NOT RELY UPON IT, FOR IT WILL EAT YOUR BABIES.

Introduction

This is a simple, step-by-step lesson plan for becoming an effective Sugar activities packager for Fedora. There are a lot of steps involved, which makes the process look intimidating -- but really, it's pretty simple, and this lesson plan will take you through it. Follow these steps and you'll be an ace packager in no time at all.

We assume basic familiarity with Linux, understand how to install and uninstall RPM packages, familiarity with command-line usage, and basic scripting, programming, and sysadmin skills.

Background Reading

Estimated time: 30 minutes

It's a really great idea to read through the Creating a Package Howto before you get started. It's a big document, but that's okay; read through it once to get familiar with the ideas, and then we'll go through everything step by step here.

Packaging Your First Sugar Activity

LESSON 1: Setting Up Your System

Estimated time: 15 minutes

In order to create an RPM package, it's customary to set up a separate user on your Linux system called "makerpm", and then configuring an RPM build environment in that user's home directory. Instructions on how do that that can be found in the Creating a Package Howto.

Go follow those instructions now. When you're done, you should have a user named makerpm with a directory in your homedir named rpmbuild that looks something like this:

[makerpm@localhost rpmbuild]$ pwd
/home/makerpm/rpmbuild
[makerpm@localhost rpmbuild]$ ls
BUILD  RPMS  SOURCES  SPECS  SRPMS

LESSON: Creating a Package

Let's start by packaging a Sugar activity that has already been packaged. That way, we can compare your package to the end result, and see how well we did.

HOMEWORK: Creating a Package

Now that you've been through