Meego Wiki
Views

User:Fvennetier/OBS Light Create new package

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "= How to create a new package using spectacle and a SPEC file ? = Official documentation: Spectacle == Requirements == * An archive of your program, named like <tt>program-ve...")
Line 2: Line 2:
Official documentation: [[Spectacle]]
Official documentation: [[Spectacle]]
== Requirements ==
== Requirements ==
 +
* A project on an OBS server where you have maintainer rights (for example your home project)
 +
* OBS Light [[ObsLightDeliverable | already installed on your computer]]
* An archive of your program, named like <tt>program-version.tar.gz</tt> (<tt>tar.bz2</tt> is OK)
* An archive of your program, named like <tt>program-version.tar.gz</tt> (<tt>tar.bz2</tt> is OK)
* A SPEC file, <tt>program.spec</tt>
* A SPEC file, <tt>program.spec</tt>
 +
== Round-trip the SPEC file ==
== Round-trip the SPEC file ==
Line 12: Line 15:
  specify mypackage.yaml
  specify mypackage.yaml
* Now check the SPEC file, especially the script section. Your old scripts should have been surrounded by "'''# >> '''" and "'''# << '''" tags. '''%if''' macros have been removed.
* Now check the SPEC file, especially the script section. Your old scripts should have been surrounded by "'''# >> '''" and "'''# << '''" tags. '''%if''' macros have been removed.
 +
 +
== Create the package on OBS ==
 +
[[OBS Light]] cannot create new packages at the moment. You have to use the web UI, or ''osc''.
 +
 +
* Using the web UI, go to the project you want to add your package to, go to ''Packages'' tab and click ''Create package''. Give a name to the package (we recommend the same name as your program, in lower-case), a title and a description (optional but recommended).
 +
* Now you should be able to import this package in [[OBS Light]].

Revision as of 16:34, 22 March 2012

Contents

How to create a new package using spectacle and a SPEC file ?

Official documentation: Spectacle

Requirements

  • A project on an OBS server where you have maintainer rights (for example your home project)
  • OBS Light already installed on your computer
  • An archive of your program, named like program-version.tar.gz (tar.bz2 is OK)
  • A SPEC file, program.spec


Round-trip the SPEC file

  • First you have to generate a YAML file:
spec2spectacle mypackage.spec
  • Edit the generated YAML file, mypackage.yaml. You may have to complete some fields, for example the source file, which should look like %{name}-%{version}.tar.gz.
  • Re-generate the SPEC file
specify mypackage.yaml
  • Now check the SPEC file, especially the script section. Your old scripts should have been surrounded by "# >> " and "# << " tags. %if macros have been removed.

Create the package on OBS

OBS Light cannot create new packages at the moment. You have to use the web UI, or osc.

  • Using the web UI, go to the project you want to add your package to, go to Packages tab and click Create package. Give a name to the package (we recommend the same name as your program, in lower-case), a title and a description (optional but recommended).
  • Now you should be able to import this package in OBS Light.
Personal tools