dmpop / sonnenhut

Simple dashboard for photographers
GNU General Public License v3.0
5 stars 0 forks source link

Create an RPM package in OBS #17

Closed tomschr closed 7 years ago

tomschr commented 7 years ago

We would like to have an RPM package which can be nicely installed under openSUSE.

What you need

In your Git working repo:

  1. Create a new release branch (git flow release start VERSION)
  2. Update the Changelog.rst file.
  3. Do whatever else is needed for your release.
  4. Raise the version number with bumpversion.
  5. Create the new release with: git flow release finish
  6. Create a tarball with ./setup.py sdist. Find the archive under the dist/ directory.

In your OBS working repo:

  1. Setup OBS and osc accordingly.
  2. Create a new package directory with: osc mkpac sonnenhut
  3. Create a new spec file in this directory.
  4. Copy the archive from your dist directory to the OBS directory.
  5. Check weather the version number in the filename and in the spec file are the same.
  6. Create a .changes file with: osc vc and add a meaningful message.
  7. Add all the files (sonnenhut.changes, sonnenhut.spec, and the tarball) to the repo with osc add *
  8. Build the package locally with: osc build -j4 openSUSE_Leap_42.2 x86_64 sonnenhut.spec
  9. Check, if the build was successful. If not, fix the errors.
  10. Commit the package with: osc ci

Your done! Congratulations! 👍

dmpop commented 7 years ago

https://build.opensuse.org/package/show/home:dpopov/sonnenhut