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
Prepare 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
Procedure is there