Meego Wiki
Views

User:Fvennetier/OBS Light Create new package

From MeeGo wiki
Jump to: navigation, search

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