diff options
author | Louie Shprung <lshprung@scu.edu> | 2022-12-24 09:11:46 -0800 |
---|---|---|
committer | Louie Shprung <lshprung@scu.edu> | 2022-12-24 09:11:46 -0800 |
commit | 2a11c862ddce9fb0b44ae74e84befb372b502935 (patch) | |
tree | 676b220c575bdddf714cc7f349257e31adf6659d /README | |
parent | fefdaea916c5fd4aa55437d7db181f0a57ac002c (diff) |
Improved README detail and added instructions for building rpm
Diffstat (limited to 'README')
-rw-r--r-- | README | 38 |
1 files changed, 35 insertions, 3 deletions
@@ -7,9 +7,41 @@ $ make The resulting binary will be created in src/ --- Creating binary deb package -- +-- Creating deb package -- -Rename working directory to PACKAGE-VERSION: something like "simple-snake-0.1" +Build the dist archive, and move it up one directory. ARCHIVE will be something like `simple-snake-0.1.tar.gz` + +$ ./configure +$ make dist +$ mv ARCHIVE .. + +Rename the project directory to match the ARCHIVE (i.e., if ARCHIVE is `simple-snake-0.1.tar.gz`, rename the project directory to `simple-snake-0.1`) + +Now, update the `debian` directory and build $ debmake -e EMAIL -f FULLNAME -$ dpkg-buildpackage -b +$ debuild + +The resulting package will be created in the same directory as ARCHIVE was placed + +-- Creating rpm package -- + +If this is your first time building an rpm package: + +$ rpmdev-setuptree + +Now, build the dist archive, and move it to SOURCES. ARCHIVE will be something like `simple-snake-0.1.tar.gz` + +$ ./configure +$ make dist +$ mv ARCHIVE ~/rpmbuild/SOURCES + +Copy the spec file to SPECS + +$ cp simple-snake.spec ~/rpmbuild/SPECS + +Build the package + +$ rpmbuild -ba ~/rpmbuild/SPECS/simple-snake.spec + +The resulting package will be created under `~/rpmbuild/RPMS` |